@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,46 +0,0 @@
1
- import z from "zod";
2
- export declare const PromoCodeReadResponseSchema: z.ZodObject<{
3
- id: z.ZodNumber;
4
- value: z.ZodString;
5
- activated: z.ZodNumber;
6
- discountValue: z.ZodString;
7
- startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
8
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
9
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
10
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
11
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
12
- activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13
- activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
- type: z.ZodEnum<["USER", "AD", "SYSTEM"]>;
15
- status: z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>;
16
- }, "strip", z.ZodTypeAny, {
17
- value: string;
18
- type: "USER" | "AD" | "SYSTEM";
19
- status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
20
- id: number;
21
- discountValue: string;
22
- activated: number;
23
- createdAt?: Date | null | undefined;
24
- updatedAt?: Date | null | undefined;
25
- expiredAt?: Date | null | undefined;
26
- startedAt?: Date | null | undefined;
27
- deletedAt?: Date | null | undefined;
28
- activationLimit?: number | null | undefined;
29
- activationPerUserLimit?: number | null | undefined;
30
- }, {
31
- value: string;
32
- type: "USER" | "AD" | "SYSTEM";
33
- status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
34
- id: number;
35
- discountValue: string;
36
- activated: number;
37
- createdAt?: Date | null | undefined;
38
- updatedAt?: Date | null | undefined;
39
- expiredAt?: Date | null | undefined;
40
- startedAt?: Date | null | undefined;
41
- deletedAt?: Date | null | undefined;
42
- activationLimit?: number | null | undefined;
43
- activationPerUserLimit?: number | null | undefined;
44
- }>;
45
- export type PromoCodeReadResponse = z.infer<typeof PromoCodeReadResponseSchema>;
46
- //# sourceMappingURL=read.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../commands/promocodes/read.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EActC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -1,24 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PromoCodeReadResponseSchema = void 0;
7
- const zod_1 = __importDefault(require("zod"));
8
- const enums_1 = require("./enums");
9
- exports.PromoCodeReadResponseSchema = zod_1.default.object({
10
- id: zod_1.default.coerce.number().positive(),
11
- value: zod_1.default.string(),
12
- activated: zod_1.default.coerce.number(),
13
- discountValue: zod_1.default.string(),
14
- startedAt: zod_1.default.coerce.date().nullable().optional(),
15
- expiredAt: zod_1.default.coerce.date().nullable().optional(),
16
- createdAt: zod_1.default.coerce.date().nullable().optional(),
17
- deletedAt: zod_1.default.coerce.date().nullable().optional(),
18
- updatedAt: zod_1.default.coerce.date().nullable().optional(),
19
- activationLimit: zod_1.default.coerce.number().positive().nullable().optional(),
20
- activationPerUserLimit: zod_1.default.coerce.number().positive().nullable().optional(),
21
- type: enums_1.PromoCodeType,
22
- status: enums_1.PromoCodeStatus,
23
- });
24
- //# sourceMappingURL=read.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"read.js","sourceRoot":"","sources":["../../../commands/promocodes/read.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,mCAAyD;AAE5C,QAAA,2BAA2B,GAAG,aAAC,CAAC,MAAM,CAAC;IAChD,EAAE,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC5B,aAAa,EAAE,aAAC,CAAC,MAAM,EAAE;IACzB,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,eAAe,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACnE,sBAAsB,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1E,IAAI,EAAE,qBAAa;IACnB,MAAM,EAAE,uBAAe;CAC1B,CAAC,CAAC"}
@@ -1,34 +0,0 @@
1
- import { z } from "zod";
2
- export declare const PromoCodeUpdateSchema: z.ZodObject<{
3
- value: z.ZodOptional<z.ZodString>;
4
- discountValue: z.ZodOptional<z.ZodString>;
5
- startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
6
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
7
- activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8
- activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
10
- type: z.ZodOptional<z.ZodEnum<["USER", "AD", "SYSTEM"]>>;
11
- status: z.ZodOptional<z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>>;
12
- }, "strip", z.ZodTypeAny, {
13
- value?: string | undefined;
14
- type?: "USER" | "AD" | "SYSTEM" | undefined;
15
- status?: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED" | undefined;
16
- discountValue?: string | undefined;
17
- expiredAt?: Date | null | undefined;
18
- startedAt?: Date | null | undefined;
19
- deletedAt?: Date | null | undefined;
20
- activationLimit?: number | null | undefined;
21
- activationPerUserLimit?: number | null | undefined;
22
- }, {
23
- value?: string | undefined;
24
- type?: "USER" | "AD" | "SYSTEM" | undefined;
25
- status?: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED" | undefined;
26
- discountValue?: string | undefined;
27
- expiredAt?: Date | null | undefined;
28
- startedAt?: Date | null | undefined;
29
- deletedAt?: Date | null | undefined;
30
- activationLimit?: number | null | undefined;
31
- activationPerUserLimit?: number | null | undefined;
32
- }>;
33
- export type PromoCodeUpdate = z.infer<typeof PromoCodeUpdateSchema>;
34
- //# sourceMappingURL=update.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../commands/promocodes/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUhC,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PromoCodeUpdateSchema = void 0;
4
- const zod_1 = require("zod");
5
- const enums_1 = require("./enums");
6
- exports.PromoCodeUpdateSchema = zod_1.z.object({
7
- value: zod_1.z.string().optional(),
8
- discountValue: zod_1.z.string().optional(),
9
- startedAt: zod_1.z.coerce.date().nullable().optional(),
10
- expiredAt: zod_1.z.coerce.date().nullable().optional(),
11
- activationLimit: zod_1.z.coerce.number().positive().nullable().optional(),
12
- activationPerUserLimit: zod_1.z.coerce.number().positive().nullable().optional(),
13
- deletedAt: zod_1.z.coerce.date().nullable().optional(),
14
- type: enums_1.PromoCodeType.optional(),
15
- status: enums_1.PromoCodeStatus.optional(),
16
- });
17
- //# sourceMappingURL=update.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../commands/promocodes/update.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAAyD;AAE5C,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACnD,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7C,eAAe,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACnE,sBAAsB,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1E,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,IAAI,EAAE,qBAAa,CAAC,QAAQ,EAAE;IAC9B,MAAM,EAAE,uBAAe,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAA"}
@@ -1,25 +0,0 @@
1
- import { z } from "zod";
2
- export declare const RefreshSessionCreateSchema: z.ZodObject<{
3
- userId: z.ZodNumber;
4
- refreshToken: z.ZodString;
5
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
6
- status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
7
- IP: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
- UA: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
- }, "strip", z.ZodTypeAny, {
10
- status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
11
- userId: number;
12
- refreshToken: string;
13
- expiredAt?: Date | null | undefined;
14
- IP?: string | null | undefined;
15
- UA?: string | null | undefined;
16
- }, {
17
- status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
18
- userId: number;
19
- refreshToken: string;
20
- expiredAt?: Date | null | undefined;
21
- IP?: string | null | undefined;
22
- UA?: string | null | undefined;
23
- }>;
24
- export type RefreshSessionCreate = z.infer<typeof RefreshSessionCreateSchema>;
25
- //# sourceMappingURL=create.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../commands/refresh-sessions/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;EAOrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RefreshSessionCreateSchema = void 0;
4
- const zod_1 = require("zod");
5
- const enums_1 = require("./enums");
6
- exports.RefreshSessionCreateSchema = zod_1.z.object({
7
- userId: zod_1.z.number(),
8
- refreshToken: zod_1.z.string(),
9
- expiredAt: zod_1.z.coerce.date().nullable().optional(),
10
- status: enums_1.RefreshSessionStatus,
11
- IP: zod_1.z.string().nullable().optional(),
12
- UA: zod_1.z.string().nullable().optional(),
13
- });
14
- //# sourceMappingURL=create.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../commands/refresh-sessions/create.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAA+C;AAElC,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,MAAM,EAAE,4BAAoB;IAC5B,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACpC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC"}
@@ -1,216 +0,0 @@
1
- import { z } from "zod";
2
- export declare const RefreshSessionEndpoints: {
3
- create: {
4
- method: "POST";
5
- path: string;
6
- request: z.ZodObject<{
7
- userId: z.ZodNumber;
8
- refreshToken: z.ZodString;
9
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
10
- status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
11
- IP: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
- UA: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
- }, "strip", z.ZodTypeAny, {
14
- status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
15
- userId: number;
16
- refreshToken: string;
17
- expiredAt?: Date | null | undefined;
18
- IP?: string | null | undefined;
19
- UA?: string | null | undefined;
20
- }, {
21
- status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
22
- userId: number;
23
- refreshToken: string;
24
- expiredAt?: Date | null | undefined;
25
- IP?: string | null | undefined;
26
- UA?: string | null | undefined;
27
- }>;
28
- response: z.ZodObject<{
29
- id: z.ZodNumber;
30
- userId: z.ZodNumber;
31
- refreshToken: z.ZodString;
32
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
33
- status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
34
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
35
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
36
- }, "strip", z.ZodTypeAny, {
37
- status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
38
- id: number;
39
- userId: number;
40
- refreshToken: string;
41
- createdAt?: Date | null | undefined;
42
- updatedAt?: Date | null | undefined;
43
- expiredAt?: Date | null | undefined;
44
- }, {
45
- status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
46
- id: number;
47
- userId: number;
48
- refreshToken: string;
49
- createdAt?: Date | null | undefined;
50
- updatedAt?: Date | null | undefined;
51
- expiredAt?: Date | null | undefined;
52
- }>;
53
- };
54
- list: {
55
- method: "GET";
56
- path: string;
57
- request: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
58
- response: z.ZodArray<z.ZodObject<{
59
- id: z.ZodNumber;
60
- userId: z.ZodNumber;
61
- refreshToken: z.ZodString;
62
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
63
- status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
64
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
65
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
66
- }, "strip", z.ZodTypeAny, {
67
- status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
68
- id: number;
69
- userId: number;
70
- refreshToken: string;
71
- createdAt?: Date | null | undefined;
72
- updatedAt?: Date | null | undefined;
73
- expiredAt?: Date | null | undefined;
74
- }, {
75
- status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
76
- id: number;
77
- userId: number;
78
- refreshToken: string;
79
- createdAt?: Date | null | undefined;
80
- updatedAt?: Date | null | undefined;
81
- expiredAt?: Date | null | undefined;
82
- }>, "many">;
83
- };
84
- getById: {
85
- method: "GET";
86
- path: string;
87
- request: z.ZodObject<{
88
- id: z.ZodNumber;
89
- }, "strip", z.ZodTypeAny, {
90
- id: number;
91
- }, {
92
- id: number;
93
- }>;
94
- response: z.ZodObject<{
95
- id: z.ZodNumber;
96
- userId: z.ZodNumber;
97
- refreshToken: z.ZodString;
98
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
99
- status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
100
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
101
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
102
- }, "strip", z.ZodTypeAny, {
103
- status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
104
- id: number;
105
- userId: number;
106
- refreshToken: string;
107
- createdAt?: Date | null | undefined;
108
- updatedAt?: Date | null | undefined;
109
- expiredAt?: Date | null | undefined;
110
- }, {
111
- status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
112
- id: number;
113
- userId: number;
114
- refreshToken: string;
115
- createdAt?: Date | null | undefined;
116
- updatedAt?: Date | null | undefined;
117
- expiredAt?: Date | null | undefined;
118
- }>;
119
- };
120
- update: {
121
- method: "PATCH";
122
- path: string;
123
- request: z.ZodObject<{
124
- id: z.ZodNumber;
125
- body: z.ZodObject<{
126
- userId: z.ZodOptional<z.ZodNumber>;
127
- refreshToken: z.ZodOptional<z.ZodString>;
128
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
129
- status: z.ZodOptional<z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>>;
130
- IP: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
- UA: z.ZodOptional<z.ZodNullable<z.ZodString>>;
132
- }, "strip", z.ZodTypeAny, {
133
- status?: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED" | undefined;
134
- userId?: number | undefined;
135
- expiredAt?: Date | null | undefined;
136
- refreshToken?: string | undefined;
137
- IP?: string | null | undefined;
138
- UA?: string | null | undefined;
139
- }, {
140
- status?: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED" | undefined;
141
- userId?: number | undefined;
142
- expiredAt?: Date | null | undefined;
143
- refreshToken?: string | undefined;
144
- IP?: string | null | undefined;
145
- UA?: string | null | undefined;
146
- }>;
147
- }, "strip", z.ZodTypeAny, {
148
- id: number;
149
- body: {
150
- status?: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED" | undefined;
151
- userId?: number | undefined;
152
- expiredAt?: Date | null | undefined;
153
- refreshToken?: string | undefined;
154
- IP?: string | null | undefined;
155
- UA?: string | null | undefined;
156
- };
157
- }, {
158
- id: number;
159
- body: {
160
- status?: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED" | undefined;
161
- userId?: number | undefined;
162
- expiredAt?: Date | null | undefined;
163
- refreshToken?: string | undefined;
164
- IP?: string | null | undefined;
165
- UA?: string | null | undefined;
166
- };
167
- }>;
168
- response: z.ZodObject<{
169
- id: z.ZodNumber;
170
- userId: z.ZodNumber;
171
- refreshToken: z.ZodString;
172
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
173
- status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
174
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
175
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
176
- }, "strip", z.ZodTypeAny, {
177
- status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
178
- id: number;
179
- userId: number;
180
- refreshToken: string;
181
- createdAt?: Date | null | undefined;
182
- updatedAt?: Date | null | undefined;
183
- expiredAt?: Date | null | undefined;
184
- }, {
185
- status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
186
- id: number;
187
- userId: number;
188
- refreshToken: string;
189
- createdAt?: Date | null | undefined;
190
- updatedAt?: Date | null | undefined;
191
- expiredAt?: Date | null | undefined;
192
- }>;
193
- };
194
- revoke: {
195
- method: "DELETE";
196
- path: string;
197
- request: z.ZodObject<{
198
- id: z.ZodNumber;
199
- }, "strip", z.ZodTypeAny, {
200
- id: number;
201
- }, {
202
- id: number;
203
- }>;
204
- response: z.ZodObject<{
205
- success: z.ZodBoolean;
206
- }, "strip", z.ZodTypeAny, {
207
- success: boolean;
208
- }, {
209
- success: boolean;
210
- }>;
211
- };
212
- };
213
- export type RefreshSessionEndpointKey = keyof typeof RefreshSessionEndpoints;
214
- export type GetRefreshSessionRequest<K extends RefreshSessionEndpointKey> = z.infer<typeof RefreshSessionEndpoints[K]["request"]>;
215
- export type GetRefreshSessionResponse<K extends RefreshSessionEndpointKey> = z.infer<typeof RefreshSessionEndpoints[K]["response"]>;
216
- //# sourceMappingURL=endpoints.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../commands/refresh-sessions/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCQ,CAAC;AAE7C,MAAM,MAAM,yBAAyB,GAAG,MAAM,OAAO,uBAAuB,CAAC;AAE7E,MAAM,MAAM,wBAAwB,CAAC,CAAC,SAAS,yBAAyB,IACpE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAE1D,MAAM,MAAM,yBAAyB,CAAC,CAAC,SAAS,yBAAyB,IACrE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC"}
@@ -1,47 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RefreshSessionEndpoints = void 0;
4
- const zod_1 = require("zod");
5
- const create_1 = require("./create");
6
- const read_1 = require("./read");
7
- const update_1 = require("./update");
8
- exports.RefreshSessionEndpoints = {
9
- create: {
10
- method: "POST",
11
- path: "/refresh-sessions",
12
- request: create_1.RefreshSessionCreateSchema,
13
- response: read_1.RefreshSessionReadResponseSchema,
14
- },
15
- list: {
16
- method: "GET",
17
- path: "/refresh-sessions",
18
- request: zod_1.z.object({}),
19
- response: zod_1.z.array(read_1.RefreshSessionReadResponseSchema),
20
- },
21
- getById: {
22
- method: "GET",
23
- path: "/refresh-sessions/:id",
24
- request: zod_1.z.object({
25
- id: zod_1.z.coerce.number().positive(),
26
- }),
27
- response: read_1.RefreshSessionReadResponseSchema,
28
- },
29
- update: {
30
- method: "PATCH",
31
- path: "/refresh-sessions/:id",
32
- request: zod_1.z.object({
33
- id: zod_1.z.coerce.number().positive(),
34
- body: update_1.RefreshSessionUpdateSchema,
35
- }),
36
- response: read_1.RefreshSessionReadResponseSchema,
37
- },
38
- revoke: {
39
- method: "DELETE",
40
- path: "/refresh-sessions/:id",
41
- request: zod_1.z.object({
42
- id: zod_1.z.coerce.number().positive(),
43
- }),
44
- response: zod_1.z.object({ success: zod_1.z.boolean() }),
45
- },
46
- };
47
- //# sourceMappingURL=endpoints.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../../commands/refresh-sessions/endpoints.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,qCAAsD;AACtD,iCAA0D;AAC1D,qCAAsD;AAEzC,QAAA,uBAAuB,GAAG;IACnC,MAAM,EAAE;QACJ,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,mCAA0B;QACnC,QAAQ,EAAE,uCAAgC;KAC7C;IACD,IAAI,EAAE;QACF,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC;QACrB,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,uCAAgC,CAAC;KACtD;IACD,OAAO,EAAE;QACL,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,uBAAuB;QAC7B,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SACnC,CAAC;QACF,QAAQ,EAAE,uCAAgC;KAC7C;IACD,MAAM,EAAE;QACJ,MAAM,EAAE,OAAO;QACf,IAAI,EAAE,uBAAuB;QAC7B,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAChC,IAAI,EAAE,mCAA0B;SACnC,CAAC;QACF,QAAQ,EAAE,uCAAgC;KAC7C;IACD,MAAM,EAAE;QACJ,MAAM,EAAE,QAAQ;QAChB,IAAI,EAAE,uBAAuB;QAC7B,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SACnC,CAAC;QACF,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE,EAAE,CAAC;KAC/C;CACuC,CAAC"}
@@ -1,4 +0,0 @@
1
- import z from "zod";
2
- export declare const RefreshSessionStatus: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
3
- export type RefreshSessionStatus = z.infer<typeof RefreshSessionStatus>;
4
- //# sourceMappingURL=enums.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../commands/refresh-sessions/enums.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,oBAAoB,2DAAyD,CAAC;AAC3F,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.RefreshSessionStatus = void 0;
7
- const zod_1 = __importDefault(require("zod"));
8
- exports.RefreshSessionStatus = zod_1.default.enum(['ACTIVE', 'EXPIRED', 'BLOCKED', 'TERMINATED']);
9
- //# sourceMappingURL=enums.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../commands/refresh-sessions/enums.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAEP,QAAA,oBAAoB,GAAG,aAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- export * from './create';
2
- export * from './read';
3
- export * from './update';
4
- export * from './enums';
5
- export * from './endpoints';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/refresh-sessions/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./create"), exports);
18
- __exportStar(require("./read"), exports);
19
- __exportStar(require("./update"), exports);
20
- __exportStar(require("./enums"), exports);
21
- __exportStar(require("./endpoints"), exports);
22
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../commands/refresh-sessions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,yCAAsB;AACtB,2CAAwB;AACxB,0CAAuB;AACvB,8CAA2B"}
@@ -1,28 +0,0 @@
1
- import z from "zod";
2
- export declare const RefreshSessionReadResponseSchema: z.ZodObject<{
3
- id: z.ZodNumber;
4
- userId: z.ZodNumber;
5
- refreshToken: z.ZodString;
6
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
7
- status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
8
- createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
9
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
10
- }, "strip", z.ZodTypeAny, {
11
- status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
12
- id: number;
13
- userId: number;
14
- refreshToken: string;
15
- createdAt?: Date | null | undefined;
16
- updatedAt?: Date | null | undefined;
17
- expiredAt?: Date | null | undefined;
18
- }, {
19
- status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
20
- id: number;
21
- userId: number;
22
- refreshToken: string;
23
- createdAt?: Date | null | undefined;
24
- updatedAt?: Date | null | undefined;
25
- expiredAt?: Date | null | undefined;
26
- }>;
27
- export type RefreshSessionReadResponse = z.infer<typeof RefreshSessionReadResponseSchema>;
28
- //# sourceMappingURL=read.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../commands/refresh-sessions/read.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;EAQ3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.RefreshSessionReadResponseSchema = void 0;
7
- const zod_1 = __importDefault(require("zod"));
8
- const enums_1 = require("./enums");
9
- exports.RefreshSessionReadResponseSchema = zod_1.default.object({
10
- id: zod_1.default.number().positive(),
11
- userId: zod_1.default.number().positive(),
12
- refreshToken: zod_1.default.string(),
13
- expiredAt: zod_1.default.coerce.date().nullable().optional(),
14
- status: enums_1.RefreshSessionStatus,
15
- createdAt: zod_1.default.coerce.date().nullable().optional(),
16
- updatedAt: zod_1.default.coerce.date().nullable().optional(),
17
- });
18
- //# sourceMappingURL=read.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"read.js","sourceRoot":"","sources":["../../../commands/refresh-sessions/read.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,mCAA+C;AAElC,QAAA,gCAAgC,GAAG,aAAC,CAAC,MAAM,CAAC;IACrD,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,MAAM,EAAE,4BAAoB;IAC5B,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC"}
@@ -1,25 +0,0 @@
1
- import z from "zod";
2
- export declare const RefreshSessionUpdateSchema: z.ZodObject<{
3
- userId: z.ZodOptional<z.ZodNumber>;
4
- refreshToken: z.ZodOptional<z.ZodString>;
5
- expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
6
- status: z.ZodOptional<z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>>;
7
- IP: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
- UA: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
- }, "strip", z.ZodTypeAny, {
10
- status?: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED" | undefined;
11
- userId?: number | undefined;
12
- expiredAt?: Date | null | undefined;
13
- refreshToken?: string | undefined;
14
- IP?: string | null | undefined;
15
- UA?: string | null | undefined;
16
- }, {
17
- status?: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED" | undefined;
18
- userId?: number | undefined;
19
- expiredAt?: Date | null | undefined;
20
- refreshToken?: string | undefined;
21
- IP?: string | null | undefined;
22
- UA?: string | null | undefined;
23
- }>;
24
- export type RefreshSessionUpdate = z.infer<typeof RefreshSessionUpdateSchema>;
25
- //# sourceMappingURL=update.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../commands/refresh-sessions/update.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;EAOrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.RefreshSessionUpdateSchema = void 0;
7
- const zod_1 = __importDefault(require("zod"));
8
- const enums_1 = require("./enums");
9
- exports.RefreshSessionUpdateSchema = zod_1.default.object({
10
- userId: zod_1.default.number().optional(),
11
- refreshToken: zod_1.default.string().optional(),
12
- expiredAt: zod_1.default.coerce.date().nullable().optional(),
13
- status: enums_1.RefreshSessionStatus.optional(),
14
- IP: zod_1.default.string().nullable().optional(),
15
- UA: zod_1.default.string().nullable().optional(),
16
- });
17
- //# sourceMappingURL=update.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../commands/refresh-sessions/update.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,mCAA+C;AAElC,QAAA,0BAA0B,GAAG,aAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,MAAM,EAAE,4BAAoB,CAAC,QAAQ,EAAE;IACvC,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACpC,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC"}