@veruna/api-contracts 6.0.0 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (400) hide show
  1. package/build/controllers/auth-admin.controllers.d.ts +1 -0
  2. package/build/controllers/auth-admin.controllers.js +5 -0
  3. package/build/controllers/auth-admin.controllers.js.map +1 -0
  4. package/build/controllers/client-file.controllers.d.ts +2 -0
  5. package/build/controllers/client-file.controllers.js +4 -2
  6. package/build/controllers/client-file.controllers.js.map +1 -1
  7. package/build/controllers/email-profile-admin.controllers.d.ts +1 -0
  8. package/build/controllers/email-profile-admin.controllers.js +5 -0
  9. package/build/controllers/email-profile-admin.controllers.js.map +1 -0
  10. package/build/controllers/index.d.ts +8 -1
  11. package/build/controllers/index.js +18 -2
  12. package/build/controllers/index.js.map +1 -1
  13. package/build/controllers/telegram-profile-admin.controllers.d.ts +1 -0
  14. package/build/controllers/telegram-profile-admin.controllers.js +5 -0
  15. package/build/controllers/telegram-profile-admin.controllers.js.map +1 -0
  16. package/build/controllers/users-admin.controllers.d.ts +1 -0
  17. package/build/controllers/users-admin.controllers.js +5 -0
  18. package/build/controllers/users-admin.controllers.js.map +1 -0
  19. package/build/controllers/vk-profile-admin.controllers.d.ts +1 -0
  20. package/build/controllers/vk-profile-admin.controllers.js +5 -0
  21. package/build/controllers/vk-profile-admin.controllers.js.map +1 -0
  22. package/build/controllers/wallet-admin.controllers.d.ts +1 -0
  23. package/build/controllers/wallet-admin.controllers.js +5 -0
  24. package/build/controllers/wallet-admin.controllers.js.map +1 -0
  25. package/build/controllers/yandex-profile-admin.controllers.d.ts +1 -0
  26. package/build/controllers/yandex-profile-admin.controllers.js +5 -0
  27. package/build/controllers/yandex-profile-admin.controllers.js.map +1 -0
  28. package/build/locales/en.d.ts +4 -0
  29. package/build/locales/en.js +4 -0
  30. package/build/locales/en.js.map +1 -1
  31. package/build/locales/index.d.ts +8 -0
  32. package/build/locales/ru.d.ts +4 -0
  33. package/build/locales/ru.js +4 -0
  34. package/build/locales/ru.js.map +1 -1
  35. package/build/locales/validation.d.ts +150 -0
  36. package/build/locales/validation.js +126 -0
  37. package/build/locales/validation.js.map +1 -1
  38. package/build/rest-api.d.ts +111 -60
  39. package/build/rest-api.js +111 -60
  40. package/build/rest-api.js.map +1 -1
  41. package/build/routes/auth-admin.routes.d.ts +5 -0
  42. package/build/routes/auth-admin.routes.js +9 -0
  43. package/build/routes/auth-admin.routes.js.map +1 -0
  44. package/build/routes/client-file.routes.d.ts +15 -4
  45. package/build/routes/client-file.routes.js +8 -2
  46. package/build/routes/client-file.routes.js.map +1 -1
  47. package/build/routes/email-profile-admin.routes.d.ts +5 -0
  48. package/build/routes/email-profile-admin.routes.js +9 -0
  49. package/build/routes/email-profile-admin.routes.js.map +1 -0
  50. package/build/routes/index.d.ts +5 -1
  51. package/build/routes/index.js +12 -2
  52. package/build/routes/index.js.map +1 -1
  53. package/build/routes/s2s.routes.d.ts +3 -0
  54. package/build/routes/s2s.routes.js +3 -0
  55. package/build/routes/s2s.routes.js.map +1 -1
  56. package/build/routes/users-admin.routes.d.ts +6 -0
  57. package/build/routes/users-admin.routes.js +10 -0
  58. package/build/routes/users-admin.routes.js.map +1 -0
  59. package/build/routes/wallet-admin.routes.d.ts +5 -0
  60. package/build/routes/wallet-admin.routes.js +9 -0
  61. package/build/routes/wallet-admin.routes.js.map +1 -0
  62. package/build/tsconfig.tsbuildinfo +1 -1
  63. package/build/v1/auth/admin/commands/admin-terminate-sessions.command.d.ts +22 -0
  64. package/build/v1/auth/admin/commands/admin-terminate-sessions.command.js +22 -0
  65. package/build/v1/auth/admin/commands/admin-terminate-sessions.command.js.map +1 -0
  66. package/build/v1/auth/admin/commands/index.d.ts +1 -0
  67. package/build/v1/auth/admin/commands/index.js +18 -0
  68. package/build/v1/auth/admin/commands/index.js.map +1 -0
  69. package/build/v1/auth/admin/index.d.ts +5 -0
  70. package/build/v1/auth/admin/index.js +25 -0
  71. package/build/v1/auth/admin/index.js.map +1 -0
  72. package/build/v1/auth/admin/queries/admin-get-user-sessions.query.d.ts +19 -0
  73. package/build/v1/auth/admin/queries/admin-get-user-sessions.query.js +15 -0
  74. package/build/v1/auth/admin/queries/admin-get-user-sessions.query.js.map +1 -0
  75. package/build/v1/auth/admin/queries/index.d.ts +1 -0
  76. package/build/v1/auth/admin/queries/index.js +18 -0
  77. package/build/v1/auth/admin/queries/index.js.map +1 -0
  78. package/build/v1/auth/admin/schemas/admin-sessions.schema.d.ts +29 -0
  79. package/build/v1/auth/admin/schemas/admin-sessions.schema.js +23 -0
  80. package/build/v1/auth/admin/schemas/admin-sessions.schema.js.map +1 -0
  81. package/build/v1/auth/admin/schemas/index.d.ts +1 -0
  82. package/build/v1/auth/admin/schemas/index.js +18 -0
  83. package/build/v1/auth/admin/schemas/index.js.map +1 -0
  84. package/build/v1/auth/commands/delete-session.command.js +1 -1
  85. package/build/v1/auth/commands/delete-session.command.js.map +1 -1
  86. package/build/v1/auth/commands/logout-all.command.js +1 -1
  87. package/build/v1/auth/commands/logout-all.command.js.map +1 -1
  88. package/build/v1/auth/commands/logout.command.js +1 -1
  89. package/build/v1/auth/commands/logout.command.js.map +1 -1
  90. package/build/v1/auth/commands/signin.command.js +1 -1
  91. package/build/v1/auth/commands/signin.command.js.map +1 -1
  92. package/build/v1/auth/commands/signup.command.d.ts +1 -0
  93. package/build/v1/auth/commands/signup.command.js +1 -1
  94. package/build/v1/auth/commands/signup.command.js.map +1 -1
  95. package/build/v1/auth/index.d.ts +1 -0
  96. package/build/v1/auth/index.js +1 -0
  97. package/build/v1/auth/index.js.map +1 -1
  98. package/build/v1/auth/queries/get-sessions.query.js +1 -1
  99. package/build/v1/auth/queries/get-sessions.query.js.map +1 -1
  100. package/build/v1/auth/schemas/signup-request.schema.d.ts +1 -0
  101. package/build/v1/auth/schemas/signup-request.schema.js +4 -0
  102. package/build/v1/auth/schemas/signup-request.schema.js.map +1 -1
  103. package/build/v1/client-file/commands/client-file-attach.command.d.ts +2 -0
  104. package/build/v1/client-file/queries/user-files-stats.query.d.ts +2 -0
  105. package/build/v1/client-file/schemas/client-file-attach-request.schema.d.ts +3 -0
  106. package/build/v1/client-file/schemas/client-file-attach-request.schema.js +17 -1
  107. package/build/v1/client-file/schemas/client-file-attach-request.schema.js.map +1 -1
  108. package/build/v1/client-file/schemas/client-file-status.enum.d.ts +1 -0
  109. package/build/v1/client-file/schemas/client-file-status.enum.js +1 -0
  110. package/build/v1/client-file/schemas/client-file-status.enum.js.map +1 -1
  111. package/build/v1/client-file/schemas/user-files-stats-response.schema.d.ts +2 -0
  112. package/build/v1/client-file/schemas/user-files-stats-response.schema.js +2 -0
  113. package/build/v1/client-file/schemas/user-files-stats-response.schema.js.map +1 -1
  114. package/build/v1/email-profile/admin/commands/admin-set-email.command.d.ts +15 -0
  115. package/build/v1/email-profile/admin/commands/admin-set-email.command.js +14 -0
  116. package/build/v1/email-profile/admin/commands/admin-set-email.command.js.map +1 -0
  117. package/build/v1/email-profile/admin/commands/admin-set-password.command.d.ts +24 -0
  118. package/build/v1/email-profile/admin/commands/admin-set-password.command.js +22 -0
  119. package/build/v1/email-profile/admin/commands/admin-set-password.command.js.map +1 -0
  120. package/build/v1/email-profile/admin/commands/index.d.ts +2 -0
  121. package/build/v1/email-profile/admin/commands/index.js +19 -0
  122. package/build/v1/email-profile/admin/commands/index.js.map +1 -0
  123. package/build/v1/email-profile/admin/index.d.ts +4 -0
  124. package/build/v1/email-profile/admin/index.js +24 -0
  125. package/build/v1/email-profile/admin/index.js.map +1 -0
  126. package/build/v1/email-profile/admin/schemas/admin-set-email.schema.d.ts +10 -0
  127. package/build/v1/email-profile/admin/schemas/admin-set-email.schema.js +15 -0
  128. package/build/v1/email-profile/admin/schemas/admin-set-email.schema.js.map +1 -0
  129. package/build/v1/email-profile/admin/schemas/admin-set-password.schema.d.ts +13 -0
  130. package/build/v1/email-profile/admin/schemas/admin-set-password.schema.js +17 -0
  131. package/build/v1/email-profile/admin/schemas/admin-set-password.schema.js.map +1 -0
  132. package/build/v1/email-profile/admin/schemas/index.d.ts +2 -0
  133. package/build/v1/email-profile/admin/schemas/index.js +19 -0
  134. package/build/v1/email-profile/admin/schemas/index.js.map +1 -0
  135. package/build/v1/email-profile/index.d.ts +1 -0
  136. package/build/v1/email-profile/index.js +18 -0
  137. package/build/v1/email-profile/index.js.map +1 -0
  138. package/build/v1/file/file.errors.d.ts +3 -0
  139. package/build/v1/file/file.errors.js +16 -1
  140. package/build/v1/file/file.errors.js.map +1 -1
  141. package/build/v1/index.d.ts +1 -0
  142. package/build/v1/index.js +1 -0
  143. package/build/v1/index.js.map +1 -1
  144. package/build/v1/s2s/commands/index.d.ts +1 -0
  145. package/build/v1/s2s/commands/index.js +1 -0
  146. package/build/v1/s2s/commands/index.js.map +1 -1
  147. package/build/v1/s2s/commands/migrate-client-file-owner.command.d.ts +15 -0
  148. package/build/v1/s2s/commands/migrate-client-file-owner.command.js +14 -0
  149. package/build/v1/s2s/commands/migrate-client-file-owner.command.js.map +1 -0
  150. package/build/v1/s2s/queries/check-client-file-quota.query.d.ts +18 -0
  151. package/build/v1/s2s/queries/check-client-file-quota.query.js +15 -0
  152. package/build/v1/s2s/queries/check-client-file-quota.query.js.map +1 -0
  153. package/build/v1/s2s/queries/index.d.ts +2 -0
  154. package/build/v1/s2s/queries/index.js +2 -0
  155. package/build/v1/s2s/queries/index.js.map +1 -1
  156. package/build/v1/s2s/queries/verify-unreg-token.query.d.ts +16 -0
  157. package/build/v1/s2s/queries/verify-unreg-token.query.js +15 -0
  158. package/build/v1/s2s/queries/verify-unreg-token.query.js.map +1 -0
  159. package/build/v1/s2s/schemas/index.d.ts +6 -0
  160. package/build/v1/s2s/schemas/index.js +6 -0
  161. package/build/v1/s2s/schemas/index.js.map +1 -1
  162. package/build/v1/s2s/schemas/s2s-check-client-file-quota-request.schema.d.ts +8 -0
  163. package/build/v1/s2s/schemas/s2s-check-client-file-quota-request.schema.js +13 -0
  164. package/build/v1/s2s/schemas/s2s-check-client-file-quota-request.schema.js.map +1 -0
  165. package/build/v1/s2s/schemas/s2s-check-client-file-quota-response.schema.d.ts +9 -0
  166. package/build/v1/s2s/schemas/s2s-check-client-file-quota-response.schema.js +12 -0
  167. package/build/v1/s2s/schemas/s2s-check-client-file-quota-response.schema.js.map +1 -0
  168. package/build/v1/s2s/schemas/s2s-migrate-client-file-owner-request.schema.d.ts +6 -0
  169. package/build/v1/s2s/schemas/s2s-migrate-client-file-owner-request.schema.js +14 -0
  170. package/build/v1/s2s/schemas/s2s-migrate-client-file-owner-request.schema.js.map +1 -0
  171. package/build/v1/s2s/schemas/s2s-migrate-client-file-owner-response.schema.d.ts +5 -0
  172. package/build/v1/s2s/schemas/s2s-migrate-client-file-owner-response.schema.js +8 -0
  173. package/build/v1/s2s/schemas/s2s-migrate-client-file-owner-response.schema.js.map +1 -0
  174. package/build/v1/s2s/schemas/s2s-verify-unreg-token-request.schema.d.ts +5 -0
  175. package/build/v1/s2s/schemas/s2s-verify-unreg-token-request.schema.js +9 -0
  176. package/build/v1/s2s/schemas/s2s-verify-unreg-token-request.schema.js.map +1 -0
  177. package/build/v1/s2s/schemas/s2s-verify-unreg-token-response.schema.d.ts +5 -0
  178. package/build/v1/s2s/schemas/s2s-verify-unreg-token-response.schema.js +9 -0
  179. package/build/v1/s2s/schemas/s2s-verify-unreg-token-response.schema.js.map +1 -0
  180. package/build/v1/shared/index.d.ts +1 -0
  181. package/build/v1/shared/index.js +1 -0
  182. package/build/v1/shared/index.js.map +1 -1
  183. package/build/v1/shared/owner-type.enum.d.ts +4 -0
  184. package/build/v1/shared/owner-type.enum.js +9 -0
  185. package/build/v1/shared/owner-type.enum.js.map +1 -0
  186. package/build/v1/telegram-profile/admin/commands/admin-unlink-telegram.command.d.ts +12 -0
  187. package/build/v1/telegram-profile/admin/commands/admin-unlink-telegram.command.js +15 -0
  188. package/build/v1/telegram-profile/admin/commands/admin-unlink-telegram.command.js.map +1 -0
  189. package/build/v1/telegram-profile/admin/commands/index.d.ts +1 -0
  190. package/build/v1/telegram-profile/admin/commands/index.js +18 -0
  191. package/build/v1/telegram-profile/admin/commands/index.js.map +1 -0
  192. package/build/v1/telegram-profile/admin/index.d.ts +3 -0
  193. package/build/v1/telegram-profile/admin/index.js +22 -0
  194. package/build/v1/telegram-profile/admin/index.js.map +1 -0
  195. package/build/v1/telegram-profile/admin/schemas/admin-unlink.schema.d.ts +5 -0
  196. package/build/v1/telegram-profile/admin/schemas/admin-unlink.schema.js +9 -0
  197. package/build/v1/telegram-profile/admin/schemas/admin-unlink.schema.js.map +1 -0
  198. package/build/v1/telegram-profile/admin/schemas/index.d.ts +1 -0
  199. package/build/v1/telegram-profile/admin/schemas/index.js +18 -0
  200. package/build/v1/telegram-profile/admin/schemas/index.js.map +1 -0
  201. package/build/v1/telegram-profile/commands/link-telegram.command.js +1 -1
  202. package/build/v1/telegram-profile/commands/link-telegram.command.js.map +1 -1
  203. package/build/v1/telegram-profile/commands/unlink-telegram.command.js +1 -1
  204. package/build/v1/telegram-profile/commands/unlink-telegram.command.js.map +1 -1
  205. package/build/v1/telegram-profile/index.d.ts +1 -0
  206. package/build/v1/telegram-profile/index.js +1 -0
  207. package/build/v1/telegram-profile/index.js.map +1 -1
  208. package/build/v1/telegram-profile/queries/get-telegram-link-status.query.js +1 -1
  209. package/build/v1/telegram-profile/queries/get-telegram-link-status.query.js.map +1 -1
  210. package/build/v1/telegram-profile/queries/get-telegram-profile.query.js +1 -1
  211. package/build/v1/telegram-profile/queries/get-telegram-profile.query.js.map +1 -1
  212. package/build/v1/users/admin/commands/admin-delete-user.command.d.ts +12 -0
  213. package/build/v1/users/admin/commands/admin-delete-user.command.js +17 -0
  214. package/build/v1/users/admin/commands/admin-delete-user.command.js.map +1 -0
  215. package/build/v1/users/admin/commands/admin-update-user.command.d.ts +26 -0
  216. package/build/v1/users/admin/commands/admin-update-user.command.js +14 -0
  217. package/build/v1/users/admin/commands/admin-update-user.command.js.map +1 -0
  218. package/build/v1/users/admin/commands/index.d.ts +2 -0
  219. package/build/v1/users/admin/commands/index.js +19 -0
  220. package/build/v1/users/admin/commands/index.js.map +1 -0
  221. package/build/v1/users/admin/index.d.ts +6 -0
  222. package/build/v1/users/admin/index.js +26 -0
  223. package/build/v1/users/admin/index.js.map +1 -0
  224. package/build/v1/users/admin/queries/admin-get-user-details.query.d.ts +146 -0
  225. package/build/v1/users/admin/queries/admin-get-user-details.query.js +15 -0
  226. package/build/v1/users/admin/queries/admin-get-user-details.query.js.map +1 -0
  227. package/build/v1/users/admin/queries/admin-list-users.query.d.ts +40 -0
  228. package/build/v1/users/admin/queries/admin-list-users.query.js +14 -0
  229. package/build/v1/users/admin/queries/admin-list-users.query.js.map +1 -0
  230. package/build/v1/users/admin/queries/index.d.ts +2 -0
  231. package/build/v1/users/admin/queries/index.js +19 -0
  232. package/build/v1/users/admin/queries/index.js.map +1 -0
  233. package/build/v1/users/admin/schemas/admin-update-user.schema.d.ts +23 -0
  234. package/build/v1/users/admin/schemas/admin-update-user.schema.js +18 -0
  235. package/build/v1/users/admin/schemas/admin-update-user.schema.js.map +1 -0
  236. package/build/v1/users/admin/schemas/admin-user-details.schema.d.ts +404 -0
  237. package/build/v1/users/admin/schemas/admin-user-details.schema.js +77 -0
  238. package/build/v1/users/admin/schemas/admin-user-details.schema.js.map +1 -0
  239. package/build/v1/users/admin/schemas/admin-user-list.schema.d.ts +52 -0
  240. package/build/v1/users/admin/schemas/admin-user-list.schema.js +58 -0
  241. package/build/v1/users/admin/schemas/admin-user-list.schema.js.map +1 -0
  242. package/build/v1/users/admin/schemas/admin-user-sort.enum.d.ts +9 -0
  243. package/build/v1/users/admin/schemas/admin-user-sort.enum.js +15 -0
  244. package/build/v1/users/admin/schemas/admin-user-sort.enum.js.map +1 -0
  245. package/build/v1/users/admin/schemas/index.d.ts +4 -0
  246. package/build/v1/users/admin/schemas/index.js +21 -0
  247. package/build/v1/users/admin/schemas/index.js.map +1 -0
  248. package/build/v1/users/admin/users-admin.errors.d.ts +5 -0
  249. package/build/v1/users/admin/users-admin.errors.js +14 -0
  250. package/build/v1/users/admin/users-admin.errors.js.map +1 -0
  251. package/build/v1/users/commands/confirm-email-verification.command.js +1 -1
  252. package/build/v1/users/commands/confirm-email-verification.command.js.map +1 -1
  253. package/build/v1/users/commands/delete-account-complete.command.js +1 -1
  254. package/build/v1/users/commands/delete-account-complete.command.js.map +1 -1
  255. package/build/v1/users/commands/delete-account-start.command.js +1 -1
  256. package/build/v1/users/commands/delete-account-start.command.js.map +1 -1
  257. package/build/v1/users/commands/delete-account-verify.command.js +1 -1
  258. package/build/v1/users/commands/delete-account-verify.command.js.map +1 -1
  259. package/build/v1/users/commands/email-change-complete.command.js +1 -1
  260. package/build/v1/users/commands/email-change-complete.command.js.map +1 -1
  261. package/build/v1/users/commands/email-change-start.command.js +1 -1
  262. package/build/v1/users/commands/email-change-start.command.js.map +1 -1
  263. package/build/v1/users/commands/email-change-verify.command.js +1 -1
  264. package/build/v1/users/commands/email-change-verify.command.js.map +1 -1
  265. package/build/v1/users/commands/password-change-complete.command.js +1 -1
  266. package/build/v1/users/commands/password-change-complete.command.js.map +1 -1
  267. package/build/v1/users/commands/password-change-start.command.js +1 -1
  268. package/build/v1/users/commands/password-change-start.command.js.map +1 -1
  269. package/build/v1/users/commands/password-change-verify.command.js +1 -1
  270. package/build/v1/users/commands/password-change-verify.command.js.map +1 -1
  271. package/build/v1/users/commands/password-reset-confirm.command.js +1 -1
  272. package/build/v1/users/commands/password-reset-confirm.command.js.map +1 -1
  273. package/build/v1/users/commands/password-reset-request.command.js +1 -1
  274. package/build/v1/users/commands/password-reset-request.command.js.map +1 -1
  275. package/build/v1/users/commands/resend-email-verification.command.js +1 -1
  276. package/build/v1/users/commands/resend-email-verification.command.js.map +1 -1
  277. package/build/v1/users/commands/setup-email-complete.command.js +1 -1
  278. package/build/v1/users/commands/setup-email-complete.command.js.map +1 -1
  279. package/build/v1/users/commands/setup-email-verify.command.js +1 -1
  280. package/build/v1/users/commands/setup-email-verify.command.js.map +1 -1
  281. package/build/v1/users/commands/setup-email.command.js +1 -1
  282. package/build/v1/users/commands/setup-email.command.js.map +1 -1
  283. package/build/v1/users/commands/setup-password-complete.command.js +1 -1
  284. package/build/v1/users/commands/setup-password-complete.command.js.map +1 -1
  285. package/build/v1/users/commands/setup-password-verify.command.js +1 -1
  286. package/build/v1/users/commands/setup-password-verify.command.js.map +1 -1
  287. package/build/v1/users/commands/setup-password.command.js +1 -1
  288. package/build/v1/users/commands/setup-password.command.js.map +1 -1
  289. package/build/v1/users/commands/update-profile.command.js +1 -1
  290. package/build/v1/users/commands/update-profile.command.js.map +1 -1
  291. package/build/v1/users/index.d.ts +1 -0
  292. package/build/v1/users/index.js +1 -0
  293. package/build/v1/users/index.js.map +1 -1
  294. package/build/v1/users/queries/delete-account-status.query.js +1 -1
  295. package/build/v1/users/queries/delete-account-status.query.js.map +1 -1
  296. package/build/v1/users/queries/email-change-status.query.js +1 -1
  297. package/build/v1/users/queries/email-change-status.query.js.map +1 -1
  298. package/build/v1/users/queries/get-current-user.query.js +1 -1
  299. package/build/v1/users/queries/get-current-user.query.js.map +1 -1
  300. package/build/v1/users/queries/get-setup-status.query.js +1 -1
  301. package/build/v1/users/queries/get-setup-status.query.js.map +1 -1
  302. package/build/v1/users/queries/password-change-status.query.js +1 -1
  303. package/build/v1/users/queries/password-change-status.query.js.map +1 -1
  304. package/build/v1/users/queries/setup-email-status.query.js +1 -1
  305. package/build/v1/users/queries/setup-email-status.query.js.map +1 -1
  306. package/build/v1/users/queries/setup-password-status.query.js +1 -1
  307. package/build/v1/users/queries/setup-password-status.query.js.map +1 -1
  308. package/build/v1/vk-profile/admin/commands/admin-unlink-vk.command.d.ts +12 -0
  309. package/build/v1/vk-profile/admin/commands/admin-unlink-vk.command.js +15 -0
  310. package/build/v1/vk-profile/admin/commands/admin-unlink-vk.command.js.map +1 -0
  311. package/build/v1/vk-profile/admin/commands/index.d.ts +1 -0
  312. package/build/v1/vk-profile/admin/commands/index.js +18 -0
  313. package/build/v1/vk-profile/admin/commands/index.js.map +1 -0
  314. package/build/v1/vk-profile/admin/index.d.ts +3 -0
  315. package/build/v1/vk-profile/admin/index.js +22 -0
  316. package/build/v1/vk-profile/admin/index.js.map +1 -0
  317. package/build/v1/vk-profile/admin/schemas/admin-unlink.schema.d.ts +5 -0
  318. package/build/v1/vk-profile/admin/schemas/admin-unlink.schema.js +9 -0
  319. package/build/v1/vk-profile/admin/schemas/admin-unlink.schema.js.map +1 -0
  320. package/build/v1/vk-profile/admin/schemas/index.d.ts +1 -0
  321. package/build/v1/vk-profile/admin/schemas/index.js +18 -0
  322. package/build/v1/vk-profile/admin/schemas/index.js.map +1 -0
  323. package/build/v1/vk-profile/commands/link-vk.command.js +1 -1
  324. package/build/v1/vk-profile/commands/link-vk.command.js.map +1 -1
  325. package/build/v1/vk-profile/commands/unlink-vk.command.js +1 -1
  326. package/build/v1/vk-profile/commands/unlink-vk.command.js.map +1 -1
  327. package/build/v1/vk-profile/index.d.ts +1 -0
  328. package/build/v1/vk-profile/index.js +1 -0
  329. package/build/v1/vk-profile/index.js.map +1 -1
  330. package/build/v1/vk-profile/queries/get-vk-link-status.query.js +1 -1
  331. package/build/v1/vk-profile/queries/get-vk-link-status.query.js.map +1 -1
  332. package/build/v1/vk-profile/queries/get-vk-profile.query.js +1 -1
  333. package/build/v1/vk-profile/queries/get-vk-profile.query.js.map +1 -1
  334. package/build/v1/wallet/admin/commands/admin-adjust-balance.command.d.ts +21 -0
  335. package/build/v1/wallet/admin/commands/admin-adjust-balance.command.js +14 -0
  336. package/build/v1/wallet/admin/commands/admin-adjust-balance.command.js.map +1 -0
  337. package/build/v1/wallet/admin/commands/index.d.ts +1 -0
  338. package/build/v1/wallet/admin/commands/index.js +18 -0
  339. package/build/v1/wallet/admin/commands/index.js.map +1 -0
  340. package/build/v1/wallet/admin/index.d.ts +5 -0
  341. package/build/v1/wallet/admin/index.js +25 -0
  342. package/build/v1/wallet/admin/index.js.map +1 -0
  343. package/build/v1/wallet/admin/queries/admin-get-wallet-balance.query.d.ts +33 -0
  344. package/build/v1/wallet/admin/queries/admin-get-wallet-balance.query.js +15 -0
  345. package/build/v1/wallet/admin/queries/admin-get-wallet-balance.query.js.map +1 -0
  346. package/build/v1/wallet/admin/queries/admin-list-wallet-transactions.query.d.ts +34 -0
  347. package/build/v1/wallet/admin/queries/admin-list-wallet-transactions.query.js +14 -0
  348. package/build/v1/wallet/admin/queries/admin-list-wallet-transactions.query.js.map +1 -0
  349. package/build/v1/wallet/admin/queries/index.d.ts +2 -0
  350. package/build/v1/wallet/admin/queries/index.js +19 -0
  351. package/build/v1/wallet/admin/queries/index.js.map +1 -0
  352. package/build/v1/wallet/admin/schemas/admin-adjustment-direction.enum.d.ts +4 -0
  353. package/build/v1/wallet/admin/schemas/admin-adjustment-direction.enum.js +9 -0
  354. package/build/v1/wallet/admin/schemas/admin-adjustment-direction.enum.js.map +1 -0
  355. package/build/v1/wallet/admin/schemas/admin-adjustment.schema.d.ts +17 -0
  356. package/build/v1/wallet/admin/schemas/admin-adjustment.schema.js +37 -0
  357. package/build/v1/wallet/admin/schemas/admin-adjustment.schema.js.map +1 -0
  358. package/build/v1/wallet/admin/schemas/admin-balance.schema.d.ts +51 -0
  359. package/build/v1/wallet/admin/schemas/admin-balance.schema.js +9 -0
  360. package/build/v1/wallet/admin/schemas/admin-balance.schema.js.map +1 -0
  361. package/build/v1/wallet/admin/schemas/admin-transactions.schema.d.ts +49 -0
  362. package/build/v1/wallet/admin/schemas/admin-transactions.schema.js +43 -0
  363. package/build/v1/wallet/admin/schemas/admin-transactions.schema.js.map +1 -0
  364. package/build/v1/wallet/admin/schemas/index.d.ts +4 -0
  365. package/build/v1/wallet/admin/schemas/index.js +21 -0
  366. package/build/v1/wallet/admin/schemas/index.js.map +1 -0
  367. package/build/v1/wallet/index.d.ts +1 -0
  368. package/build/v1/wallet/index.js +1 -0
  369. package/build/v1/wallet/index.js.map +1 -1
  370. package/build/v1/wallet/queries/get-balance-summary.query.js +1 -1
  371. package/build/v1/wallet/queries/get-balance-summary.query.js.map +1 -1
  372. package/build/v1/wallet/queries/list-wallet-events.query.js +1 -1
  373. package/build/v1/wallet/queries/list-wallet-events.query.js.map +1 -1
  374. package/build/v1/yandex-profile/admin/commands/admin-unlink-yandex.command.d.ts +12 -0
  375. package/build/v1/yandex-profile/admin/commands/admin-unlink-yandex.command.js +15 -0
  376. package/build/v1/yandex-profile/admin/commands/admin-unlink-yandex.command.js.map +1 -0
  377. package/build/v1/yandex-profile/admin/commands/index.d.ts +1 -0
  378. package/build/v1/yandex-profile/admin/commands/index.js +18 -0
  379. package/build/v1/yandex-profile/admin/commands/index.js.map +1 -0
  380. package/build/v1/yandex-profile/admin/index.d.ts +3 -0
  381. package/build/v1/yandex-profile/admin/index.js +22 -0
  382. package/build/v1/yandex-profile/admin/index.js.map +1 -0
  383. package/build/v1/yandex-profile/admin/schemas/admin-unlink.schema.d.ts +5 -0
  384. package/build/v1/yandex-profile/admin/schemas/admin-unlink.schema.js +9 -0
  385. package/build/v1/yandex-profile/admin/schemas/admin-unlink.schema.js.map +1 -0
  386. package/build/v1/yandex-profile/admin/schemas/index.d.ts +1 -0
  387. package/build/v1/yandex-profile/admin/schemas/index.js +18 -0
  388. package/build/v1/yandex-profile/admin/schemas/index.js.map +1 -0
  389. package/build/v1/yandex-profile/commands/link-yandex.command.js +1 -1
  390. package/build/v1/yandex-profile/commands/link-yandex.command.js.map +1 -1
  391. package/build/v1/yandex-profile/commands/unlink-yandex.command.js +1 -1
  392. package/build/v1/yandex-profile/commands/unlink-yandex.command.js.map +1 -1
  393. package/build/v1/yandex-profile/index.d.ts +1 -0
  394. package/build/v1/yandex-profile/index.js +1 -0
  395. package/build/v1/yandex-profile/index.js.map +1 -1
  396. package/build/v1/yandex-profile/queries/get-yandex-link-status.query.js +1 -1
  397. package/build/v1/yandex-profile/queries/get-yandex-link-status.query.js.map +1 -1
  398. package/build/v1/yandex-profile/queries/get-yandex-profile.query.js +1 -1
  399. package/build/v1/yandex-profile/queries/get-yandex-profile.query.js.map +1 -1
  400. package/package.json +1 -1
@@ -0,0 +1,404 @@
1
+ import { z } from 'zod';
2
+ import { EmailProfileStatus } from '../../schemas/email-profile-status.enum';
3
+ import { AuthProfileStatus } from '../../schemas/auth-profile-status.enum';
4
+ import { UserRole } from '../../../auth/schemas/user-role.enum';
5
+ import { TelegramDeliveryStatus } from '../../../notifications/schemas/telegram-delivery-status.enum';
6
+ export declare const AdminTelegramProfileSchema: z.ZodObject<{
7
+ telegramId: z.ZodString;
8
+ username: z.ZodNullable<z.ZodString>;
9
+ firstName: z.ZodString;
10
+ lastName: z.ZodNullable<z.ZodString>;
11
+ isPremium: z.ZodBoolean;
12
+ languageCode: z.ZodNullable<z.ZodString>;
13
+ deliveryStatus: z.ZodEnum<typeof TelegramDeliveryStatus>;
14
+ }, z.core.$strip>;
15
+ export type AdminTelegramProfile = z.infer<typeof AdminTelegramProfileSchema>;
16
+ export declare const AdminVkProfileSchema: z.ZodObject<{
17
+ vkId: z.ZodString;
18
+ firstName: z.ZodNullable<z.ZodString>;
19
+ lastName: z.ZodNullable<z.ZodString>;
20
+ avatarUrl: z.ZodNullable<z.ZodString>;
21
+ sex: z.ZodNullable<z.ZodNumber>;
22
+ verified: z.ZodNullable<z.ZodBoolean>;
23
+ birthday: z.ZodNullable<z.ZodString>;
24
+ email: z.ZodNullable<z.ZodString>;
25
+ phone: z.ZodNullable<z.ZodString>;
26
+ createdAt: z.ZodString;
27
+ updatedAt: z.ZodString;
28
+ }, z.core.$strip>;
29
+ export type AdminVkProfile = z.infer<typeof AdminVkProfileSchema>;
30
+ export declare const AdminYandexProfileSchema: z.ZodObject<{
31
+ yandexId: z.ZodString;
32
+ login: z.ZodNullable<z.ZodString>;
33
+ clientId: z.ZodNullable<z.ZodString>;
34
+ psuid: z.ZodNullable<z.ZodString>;
35
+ defaultEmail: z.ZodNullable<z.ZodString>;
36
+ emails: z.ZodArray<z.ZodString>;
37
+ oldSocialLogin: z.ZodNullable<z.ZodString>;
38
+ firstName: z.ZodNullable<z.ZodString>;
39
+ lastName: z.ZodNullable<z.ZodString>;
40
+ displayName: z.ZodNullable<z.ZodString>;
41
+ realName: z.ZodNullable<z.ZodString>;
42
+ sex: z.ZodNullable<z.ZodString>;
43
+ birthday: z.ZodNullable<z.ZodString>;
44
+ isAvatarEmpty: z.ZodNullable<z.ZodBoolean>;
45
+ defaultAvatarId: z.ZodNullable<z.ZodString>;
46
+ avatarUrl: z.ZodNullable<z.ZodString>;
47
+ defaultPhoneId: z.ZodNullable<z.ZodString>;
48
+ defaultPhoneNumber: z.ZodNullable<z.ZodString>;
49
+ createdAt: z.ZodString;
50
+ updatedAt: z.ZodString;
51
+ }, z.core.$strip>;
52
+ export type AdminYandexProfile = z.infer<typeof AdminYandexProfileSchema>;
53
+ export declare const AdminEmailInfoSchema: z.ZodObject<{
54
+ email: z.ZodString;
55
+ status: z.ZodEnum<typeof EmailProfileStatus>;
56
+ verifiedAt: z.ZodNullable<z.ZodString>;
57
+ hasPassword: z.ZodBoolean;
58
+ }, z.core.$strip>;
59
+ export type AdminEmailInfo = z.infer<typeof AdminEmailInfoSchema>;
60
+ export declare const AdminProfilesSchema: z.ZodObject<{
61
+ telegram: z.ZodNullable<z.ZodObject<{
62
+ telegramId: z.ZodString;
63
+ username: z.ZodNullable<z.ZodString>;
64
+ firstName: z.ZodString;
65
+ lastName: z.ZodNullable<z.ZodString>;
66
+ isPremium: z.ZodBoolean;
67
+ languageCode: z.ZodNullable<z.ZodString>;
68
+ deliveryStatus: z.ZodEnum<typeof TelegramDeliveryStatus>;
69
+ }, z.core.$strip>>;
70
+ vk: z.ZodNullable<z.ZodObject<{
71
+ vkId: z.ZodString;
72
+ firstName: z.ZodNullable<z.ZodString>;
73
+ lastName: z.ZodNullable<z.ZodString>;
74
+ avatarUrl: z.ZodNullable<z.ZodString>;
75
+ sex: z.ZodNullable<z.ZodNumber>;
76
+ verified: z.ZodNullable<z.ZodBoolean>;
77
+ birthday: z.ZodNullable<z.ZodString>;
78
+ email: z.ZodNullable<z.ZodString>;
79
+ phone: z.ZodNullable<z.ZodString>;
80
+ createdAt: z.ZodString;
81
+ updatedAt: z.ZodString;
82
+ }, z.core.$strip>>;
83
+ yandex: z.ZodNullable<z.ZodObject<{
84
+ yandexId: z.ZodString;
85
+ login: z.ZodNullable<z.ZodString>;
86
+ clientId: z.ZodNullable<z.ZodString>;
87
+ psuid: z.ZodNullable<z.ZodString>;
88
+ defaultEmail: z.ZodNullable<z.ZodString>;
89
+ emails: z.ZodArray<z.ZodString>;
90
+ oldSocialLogin: z.ZodNullable<z.ZodString>;
91
+ firstName: z.ZodNullable<z.ZodString>;
92
+ lastName: z.ZodNullable<z.ZodString>;
93
+ displayName: z.ZodNullable<z.ZodString>;
94
+ realName: z.ZodNullable<z.ZodString>;
95
+ sex: z.ZodNullable<z.ZodString>;
96
+ birthday: z.ZodNullable<z.ZodString>;
97
+ isAvatarEmpty: z.ZodNullable<z.ZodBoolean>;
98
+ defaultAvatarId: z.ZodNullable<z.ZodString>;
99
+ avatarUrl: z.ZodNullable<z.ZodString>;
100
+ defaultPhoneId: z.ZodNullable<z.ZodString>;
101
+ defaultPhoneNumber: z.ZodNullable<z.ZodString>;
102
+ createdAt: z.ZodString;
103
+ updatedAt: z.ZodString;
104
+ }, z.core.$strip>>;
105
+ }, z.core.$strip>;
106
+ export type AdminProfiles = z.infer<typeof AdminProfilesSchema>;
107
+ export declare const AdminTelegramProfileHistoryItemSchema: z.ZodObject<{
108
+ uuid: z.ZodString;
109
+ status: z.ZodEnum<typeof AuthProfileStatus>;
110
+ profile: z.ZodObject<{
111
+ telegramId: z.ZodString;
112
+ username: z.ZodNullable<z.ZodString>;
113
+ firstName: z.ZodString;
114
+ lastName: z.ZodNullable<z.ZodString>;
115
+ isPremium: z.ZodBoolean;
116
+ languageCode: z.ZodNullable<z.ZodString>;
117
+ deliveryStatus: z.ZodEnum<typeof TelegramDeliveryStatus>;
118
+ }, z.core.$strip>;
119
+ createdAt: z.ZodString;
120
+ deletedAt: z.ZodNullable<z.ZodString>;
121
+ }, z.core.$strip>;
122
+ export type AdminTelegramProfileHistoryItem = z.infer<typeof AdminTelegramProfileHistoryItemSchema>;
123
+ export declare const AdminVkProfileHistoryItemSchema: z.ZodObject<{
124
+ uuid: z.ZodString;
125
+ status: z.ZodEnum<typeof AuthProfileStatus>;
126
+ profile: z.ZodObject<{
127
+ vkId: z.ZodString;
128
+ firstName: z.ZodNullable<z.ZodString>;
129
+ lastName: z.ZodNullable<z.ZodString>;
130
+ avatarUrl: z.ZodNullable<z.ZodString>;
131
+ sex: z.ZodNullable<z.ZodNumber>;
132
+ verified: z.ZodNullable<z.ZodBoolean>;
133
+ birthday: z.ZodNullable<z.ZodString>;
134
+ email: z.ZodNullable<z.ZodString>;
135
+ phone: z.ZodNullable<z.ZodString>;
136
+ createdAt: z.ZodString;
137
+ updatedAt: z.ZodString;
138
+ }, z.core.$strip>;
139
+ createdAt: z.ZodString;
140
+ deletedAt: z.ZodNullable<z.ZodString>;
141
+ }, z.core.$strip>;
142
+ export type AdminVkProfileHistoryItem = z.infer<typeof AdminVkProfileHistoryItemSchema>;
143
+ export declare const AdminYandexProfileHistoryItemSchema: z.ZodObject<{
144
+ uuid: z.ZodString;
145
+ status: z.ZodEnum<typeof AuthProfileStatus>;
146
+ profile: z.ZodObject<{
147
+ yandexId: z.ZodString;
148
+ login: z.ZodNullable<z.ZodString>;
149
+ clientId: z.ZodNullable<z.ZodString>;
150
+ psuid: z.ZodNullable<z.ZodString>;
151
+ defaultEmail: z.ZodNullable<z.ZodString>;
152
+ emails: z.ZodArray<z.ZodString>;
153
+ oldSocialLogin: z.ZodNullable<z.ZodString>;
154
+ firstName: z.ZodNullable<z.ZodString>;
155
+ lastName: z.ZodNullable<z.ZodString>;
156
+ displayName: z.ZodNullable<z.ZodString>;
157
+ realName: z.ZodNullable<z.ZodString>;
158
+ sex: z.ZodNullable<z.ZodString>;
159
+ birthday: z.ZodNullable<z.ZodString>;
160
+ isAvatarEmpty: z.ZodNullable<z.ZodBoolean>;
161
+ defaultAvatarId: z.ZodNullable<z.ZodString>;
162
+ avatarUrl: z.ZodNullable<z.ZodString>;
163
+ defaultPhoneId: z.ZodNullable<z.ZodString>;
164
+ defaultPhoneNumber: z.ZodNullable<z.ZodString>;
165
+ createdAt: z.ZodString;
166
+ updatedAt: z.ZodString;
167
+ }, z.core.$strip>;
168
+ createdAt: z.ZodString;
169
+ deletedAt: z.ZodNullable<z.ZodString>;
170
+ }, z.core.$strip>;
171
+ export type AdminYandexProfileHistoryItem = z.infer<typeof AdminYandexProfileHistoryItemSchema>;
172
+ export declare const AdminEmailHistoryItemSchema: z.ZodObject<{
173
+ email: z.ZodString;
174
+ status: z.ZodEnum<typeof EmailProfileStatus>;
175
+ verifiedAt: z.ZodNullable<z.ZodString>;
176
+ hasPassword: z.ZodBoolean;
177
+ uuid: z.ZodString;
178
+ createdAt: z.ZodString;
179
+ deletedAt: z.ZodNullable<z.ZodString>;
180
+ }, z.core.$strip>;
181
+ export type AdminEmailHistoryItem = z.infer<typeof AdminEmailHistoryItemSchema>;
182
+ export declare const AdminProfilesHistorySchema: z.ZodObject<{
183
+ email: z.ZodArray<z.ZodObject<{
184
+ email: z.ZodString;
185
+ status: z.ZodEnum<typeof EmailProfileStatus>;
186
+ verifiedAt: z.ZodNullable<z.ZodString>;
187
+ hasPassword: z.ZodBoolean;
188
+ uuid: z.ZodString;
189
+ createdAt: z.ZodString;
190
+ deletedAt: z.ZodNullable<z.ZodString>;
191
+ }, z.core.$strip>>;
192
+ telegram: z.ZodArray<z.ZodObject<{
193
+ uuid: z.ZodString;
194
+ status: z.ZodEnum<typeof AuthProfileStatus>;
195
+ profile: z.ZodObject<{
196
+ telegramId: z.ZodString;
197
+ username: z.ZodNullable<z.ZodString>;
198
+ firstName: z.ZodString;
199
+ lastName: z.ZodNullable<z.ZodString>;
200
+ isPremium: z.ZodBoolean;
201
+ languageCode: z.ZodNullable<z.ZodString>;
202
+ deliveryStatus: z.ZodEnum<typeof TelegramDeliveryStatus>;
203
+ }, z.core.$strip>;
204
+ createdAt: z.ZodString;
205
+ deletedAt: z.ZodNullable<z.ZodString>;
206
+ }, z.core.$strip>>;
207
+ vk: z.ZodArray<z.ZodObject<{
208
+ uuid: z.ZodString;
209
+ status: z.ZodEnum<typeof AuthProfileStatus>;
210
+ profile: z.ZodObject<{
211
+ vkId: z.ZodString;
212
+ firstName: z.ZodNullable<z.ZodString>;
213
+ lastName: z.ZodNullable<z.ZodString>;
214
+ avatarUrl: z.ZodNullable<z.ZodString>;
215
+ sex: z.ZodNullable<z.ZodNumber>;
216
+ verified: z.ZodNullable<z.ZodBoolean>;
217
+ birthday: z.ZodNullable<z.ZodString>;
218
+ email: z.ZodNullable<z.ZodString>;
219
+ phone: z.ZodNullable<z.ZodString>;
220
+ createdAt: z.ZodString;
221
+ updatedAt: z.ZodString;
222
+ }, z.core.$strip>;
223
+ createdAt: z.ZodString;
224
+ deletedAt: z.ZodNullable<z.ZodString>;
225
+ }, z.core.$strip>>;
226
+ yandex: z.ZodArray<z.ZodObject<{
227
+ uuid: z.ZodString;
228
+ status: z.ZodEnum<typeof AuthProfileStatus>;
229
+ profile: z.ZodObject<{
230
+ yandexId: z.ZodString;
231
+ login: z.ZodNullable<z.ZodString>;
232
+ clientId: z.ZodNullable<z.ZodString>;
233
+ psuid: z.ZodNullable<z.ZodString>;
234
+ defaultEmail: z.ZodNullable<z.ZodString>;
235
+ emails: z.ZodArray<z.ZodString>;
236
+ oldSocialLogin: z.ZodNullable<z.ZodString>;
237
+ firstName: z.ZodNullable<z.ZodString>;
238
+ lastName: z.ZodNullable<z.ZodString>;
239
+ displayName: z.ZodNullable<z.ZodString>;
240
+ realName: z.ZodNullable<z.ZodString>;
241
+ sex: z.ZodNullable<z.ZodString>;
242
+ birthday: z.ZodNullable<z.ZodString>;
243
+ isAvatarEmpty: z.ZodNullable<z.ZodBoolean>;
244
+ defaultAvatarId: z.ZodNullable<z.ZodString>;
245
+ avatarUrl: z.ZodNullable<z.ZodString>;
246
+ defaultPhoneId: z.ZodNullable<z.ZodString>;
247
+ defaultPhoneNumber: z.ZodNullable<z.ZodString>;
248
+ createdAt: z.ZodString;
249
+ updatedAt: z.ZodString;
250
+ }, z.core.$strip>;
251
+ createdAt: z.ZodString;
252
+ deletedAt: z.ZodNullable<z.ZodString>;
253
+ }, z.core.$strip>>;
254
+ }, z.core.$strip>;
255
+ export type AdminProfilesHistory = z.infer<typeof AdminProfilesHistorySchema>;
256
+ export declare const AdminUserCoreSchema: z.ZodObject<{
257
+ uuid: z.ZodString;
258
+ name: z.ZodString;
259
+ createdAt: z.ZodString;
260
+ status: z.ZodEnum<typeof import("../..").UserStatus>;
261
+ role: z.ZodEnum<typeof UserRole>;
262
+ registrationIp: z.ZodNullable<z.ZodString>;
263
+ updatedAt: z.ZodString;
264
+ deletedAt: z.ZodNullable<z.ZodString>;
265
+ }, z.core.$strip>;
266
+ export type AdminUserCore = z.infer<typeof AdminUserCoreSchema>;
267
+ export declare const AdminUserDetailsResponseSchema: z.ZodObject<{
268
+ user: z.ZodObject<{
269
+ uuid: z.ZodString;
270
+ name: z.ZodString;
271
+ createdAt: z.ZodString;
272
+ status: z.ZodEnum<typeof import("../..").UserStatus>;
273
+ role: z.ZodEnum<typeof UserRole>;
274
+ registrationIp: z.ZodNullable<z.ZodString>;
275
+ updatedAt: z.ZodString;
276
+ deletedAt: z.ZodNullable<z.ZodString>;
277
+ }, z.core.$strip>;
278
+ email: z.ZodNullable<z.ZodObject<{
279
+ email: z.ZodString;
280
+ status: z.ZodEnum<typeof EmailProfileStatus>;
281
+ verifiedAt: z.ZodNullable<z.ZodString>;
282
+ hasPassword: z.ZodBoolean;
283
+ }, z.core.$strip>>;
284
+ profiles: z.ZodObject<{
285
+ telegram: z.ZodNullable<z.ZodObject<{
286
+ telegramId: z.ZodString;
287
+ username: z.ZodNullable<z.ZodString>;
288
+ firstName: z.ZodString;
289
+ lastName: z.ZodNullable<z.ZodString>;
290
+ isPremium: z.ZodBoolean;
291
+ languageCode: z.ZodNullable<z.ZodString>;
292
+ deliveryStatus: z.ZodEnum<typeof TelegramDeliveryStatus>;
293
+ }, z.core.$strip>>;
294
+ vk: z.ZodNullable<z.ZodObject<{
295
+ vkId: z.ZodString;
296
+ firstName: z.ZodNullable<z.ZodString>;
297
+ lastName: z.ZodNullable<z.ZodString>;
298
+ avatarUrl: z.ZodNullable<z.ZodString>;
299
+ sex: z.ZodNullable<z.ZodNumber>;
300
+ verified: z.ZodNullable<z.ZodBoolean>;
301
+ birthday: z.ZodNullable<z.ZodString>;
302
+ email: z.ZodNullable<z.ZodString>;
303
+ phone: z.ZodNullable<z.ZodString>;
304
+ createdAt: z.ZodString;
305
+ updatedAt: z.ZodString;
306
+ }, z.core.$strip>>;
307
+ yandex: z.ZodNullable<z.ZodObject<{
308
+ yandexId: z.ZodString;
309
+ login: z.ZodNullable<z.ZodString>;
310
+ clientId: z.ZodNullable<z.ZodString>;
311
+ psuid: z.ZodNullable<z.ZodString>;
312
+ defaultEmail: z.ZodNullable<z.ZodString>;
313
+ emails: z.ZodArray<z.ZodString>;
314
+ oldSocialLogin: z.ZodNullable<z.ZodString>;
315
+ firstName: z.ZodNullable<z.ZodString>;
316
+ lastName: z.ZodNullable<z.ZodString>;
317
+ displayName: z.ZodNullable<z.ZodString>;
318
+ realName: z.ZodNullable<z.ZodString>;
319
+ sex: z.ZodNullable<z.ZodString>;
320
+ birthday: z.ZodNullable<z.ZodString>;
321
+ isAvatarEmpty: z.ZodNullable<z.ZodBoolean>;
322
+ defaultAvatarId: z.ZodNullable<z.ZodString>;
323
+ avatarUrl: z.ZodNullable<z.ZodString>;
324
+ defaultPhoneId: z.ZodNullable<z.ZodString>;
325
+ defaultPhoneNumber: z.ZodNullable<z.ZodString>;
326
+ createdAt: z.ZodString;
327
+ updatedAt: z.ZodString;
328
+ }, z.core.$strip>>;
329
+ }, z.core.$strip>;
330
+ history: z.ZodObject<{
331
+ email: z.ZodArray<z.ZodObject<{
332
+ email: z.ZodString;
333
+ status: z.ZodEnum<typeof EmailProfileStatus>;
334
+ verifiedAt: z.ZodNullable<z.ZodString>;
335
+ hasPassword: z.ZodBoolean;
336
+ uuid: z.ZodString;
337
+ createdAt: z.ZodString;
338
+ deletedAt: z.ZodNullable<z.ZodString>;
339
+ }, z.core.$strip>>;
340
+ telegram: z.ZodArray<z.ZodObject<{
341
+ uuid: z.ZodString;
342
+ status: z.ZodEnum<typeof AuthProfileStatus>;
343
+ profile: z.ZodObject<{
344
+ telegramId: z.ZodString;
345
+ username: z.ZodNullable<z.ZodString>;
346
+ firstName: z.ZodString;
347
+ lastName: z.ZodNullable<z.ZodString>;
348
+ isPremium: z.ZodBoolean;
349
+ languageCode: z.ZodNullable<z.ZodString>;
350
+ deliveryStatus: z.ZodEnum<typeof TelegramDeliveryStatus>;
351
+ }, z.core.$strip>;
352
+ createdAt: z.ZodString;
353
+ deletedAt: z.ZodNullable<z.ZodString>;
354
+ }, z.core.$strip>>;
355
+ vk: z.ZodArray<z.ZodObject<{
356
+ uuid: z.ZodString;
357
+ status: z.ZodEnum<typeof AuthProfileStatus>;
358
+ profile: z.ZodObject<{
359
+ vkId: z.ZodString;
360
+ firstName: z.ZodNullable<z.ZodString>;
361
+ lastName: z.ZodNullable<z.ZodString>;
362
+ avatarUrl: z.ZodNullable<z.ZodString>;
363
+ sex: z.ZodNullable<z.ZodNumber>;
364
+ verified: z.ZodNullable<z.ZodBoolean>;
365
+ birthday: z.ZodNullable<z.ZodString>;
366
+ email: z.ZodNullable<z.ZodString>;
367
+ phone: z.ZodNullable<z.ZodString>;
368
+ createdAt: z.ZodString;
369
+ updatedAt: z.ZodString;
370
+ }, z.core.$strip>;
371
+ createdAt: z.ZodString;
372
+ deletedAt: z.ZodNullable<z.ZodString>;
373
+ }, z.core.$strip>>;
374
+ yandex: z.ZodArray<z.ZodObject<{
375
+ uuid: z.ZodString;
376
+ status: z.ZodEnum<typeof AuthProfileStatus>;
377
+ profile: z.ZodObject<{
378
+ yandexId: z.ZodString;
379
+ login: z.ZodNullable<z.ZodString>;
380
+ clientId: z.ZodNullable<z.ZodString>;
381
+ psuid: z.ZodNullable<z.ZodString>;
382
+ defaultEmail: z.ZodNullable<z.ZodString>;
383
+ emails: z.ZodArray<z.ZodString>;
384
+ oldSocialLogin: z.ZodNullable<z.ZodString>;
385
+ firstName: z.ZodNullable<z.ZodString>;
386
+ lastName: z.ZodNullable<z.ZodString>;
387
+ displayName: z.ZodNullable<z.ZodString>;
388
+ realName: z.ZodNullable<z.ZodString>;
389
+ sex: z.ZodNullable<z.ZodString>;
390
+ birthday: z.ZodNullable<z.ZodString>;
391
+ isAvatarEmpty: z.ZodNullable<z.ZodBoolean>;
392
+ defaultAvatarId: z.ZodNullable<z.ZodString>;
393
+ avatarUrl: z.ZodNullable<z.ZodString>;
394
+ defaultPhoneId: z.ZodNullable<z.ZodString>;
395
+ defaultPhoneNumber: z.ZodNullable<z.ZodString>;
396
+ createdAt: z.ZodString;
397
+ updatedAt: z.ZodString;
398
+ }, z.core.$strip>;
399
+ createdAt: z.ZodString;
400
+ deletedAt: z.ZodNullable<z.ZodString>;
401
+ }, z.core.$strip>>;
402
+ }, z.core.$strip>;
403
+ }, z.core.$strip>;
404
+ export type AdminUserDetailsResponse = z.infer<typeof AdminUserDetailsResponseSchema>;
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminUserDetailsResponseSchema = exports.AdminUserCoreSchema = exports.AdminProfilesHistorySchema = exports.AdminEmailHistoryItemSchema = exports.AdminYandexProfileHistoryItemSchema = exports.AdminVkProfileHistoryItemSchema = exports.AdminTelegramProfileHistoryItemSchema = exports.AdminProfilesSchema = exports.AdminEmailInfoSchema = exports.AdminYandexProfileSchema = exports.AdminVkProfileSchema = exports.AdminTelegramProfileSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const regex_1 = require("../../../../shared/regex");
6
+ const user_response_schema_1 = require("../../schemas/user-response.schema");
7
+ const email_profile_status_enum_1 = require("../../schemas/email-profile-status.enum");
8
+ const auth_profile_status_enum_1 = require("../../schemas/auth-profile-status.enum");
9
+ const user_role_enum_1 = require("../../../auth/schemas/user-role.enum");
10
+ const telegram_profile_response_schema_1 = require("../../../telegram-profile/schemas/telegram-profile-response.schema");
11
+ const vk_profile_response_schema_1 = require("../../../vk-profile/schemas/vk-profile-response.schema");
12
+ const yandex_profile_response_schema_1 = require("../../../yandex-profile/schemas/yandex-profile-response.schema");
13
+ const telegram_delivery_status_enum_1 = require("../../../notifications/schemas/telegram-delivery-status.enum");
14
+ exports.AdminTelegramProfileSchema = telegram_profile_response_schema_1.TelegramProfileResponseSchema.omit({
15
+ photoUrl: true,
16
+ }).extend({
17
+ languageCode: zod_1.z.string().nullable(),
18
+ deliveryStatus: zod_1.z.enum(telegram_delivery_status_enum_1.TelegramDeliveryStatus),
19
+ });
20
+ exports.AdminVkProfileSchema = vk_profile_response_schema_1.VkProfileResponseSchema;
21
+ exports.AdminYandexProfileSchema = yandex_profile_response_schema_1.YandexProfileResponseSchema;
22
+ exports.AdminEmailInfoSchema = zod_1.z.object({
23
+ email: zod_1.z.string(),
24
+ status: zod_1.z.enum(email_profile_status_enum_1.EmailProfileStatus),
25
+ verifiedAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX).nullable(),
26
+ hasPassword: zod_1.z.boolean(),
27
+ });
28
+ exports.AdminProfilesSchema = zod_1.z.object({
29
+ telegram: exports.AdminTelegramProfileSchema.nullable(),
30
+ vk: exports.AdminVkProfileSchema.nullable(),
31
+ yandex: exports.AdminYandexProfileSchema.nullable(),
32
+ });
33
+ exports.AdminTelegramProfileHistoryItemSchema = zod_1.z.object({
34
+ uuid: zod_1.z.string().regex(regex_1.UUID_REGEX),
35
+ status: zod_1.z.enum(auth_profile_status_enum_1.AuthProfileStatus),
36
+ profile: exports.AdminTelegramProfileSchema,
37
+ createdAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX),
38
+ deletedAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX).nullable(),
39
+ });
40
+ exports.AdminVkProfileHistoryItemSchema = zod_1.z.object({
41
+ uuid: zod_1.z.string().regex(regex_1.UUID_REGEX),
42
+ status: zod_1.z.enum(auth_profile_status_enum_1.AuthProfileStatus),
43
+ profile: exports.AdminVkProfileSchema,
44
+ createdAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX),
45
+ deletedAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX).nullable(),
46
+ });
47
+ exports.AdminYandexProfileHistoryItemSchema = zod_1.z.object({
48
+ uuid: zod_1.z.string().regex(regex_1.UUID_REGEX),
49
+ status: zod_1.z.enum(auth_profile_status_enum_1.AuthProfileStatus),
50
+ profile: exports.AdminYandexProfileSchema,
51
+ createdAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX),
52
+ deletedAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX).nullable(),
53
+ });
54
+ exports.AdminEmailHistoryItemSchema = exports.AdminEmailInfoSchema.extend({
55
+ uuid: zod_1.z.string().regex(regex_1.UUID_REGEX),
56
+ createdAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX),
57
+ deletedAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX).nullable(),
58
+ });
59
+ exports.AdminProfilesHistorySchema = zod_1.z.object({
60
+ email: zod_1.z.array(exports.AdminEmailHistoryItemSchema),
61
+ telegram: zod_1.z.array(exports.AdminTelegramProfileHistoryItemSchema),
62
+ vk: zod_1.z.array(exports.AdminVkProfileHistoryItemSchema),
63
+ yandex: zod_1.z.array(exports.AdminYandexProfileHistoryItemSchema),
64
+ });
65
+ exports.AdminUserCoreSchema = user_response_schema_1.UserResponseSchema.omit({ email: true }).extend({
66
+ role: zod_1.z.enum(user_role_enum_1.UserRole),
67
+ registrationIp: zod_1.z.string().nullable(),
68
+ updatedAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX),
69
+ deletedAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX).nullable(),
70
+ });
71
+ exports.AdminUserDetailsResponseSchema = zod_1.z.object({
72
+ user: exports.AdminUserCoreSchema,
73
+ email: exports.AdminEmailInfoSchema.nullable(),
74
+ profiles: exports.AdminProfilesSchema,
75
+ history: exports.AdminProfilesHistorySchema,
76
+ });
77
+ //# sourceMappingURL=admin-user-details.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-user-details.schema.js","sourceRoot":"","sources":["../../../../../v1/users/admin/schemas/admin-user-details.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,oDAAsE;AACtE,6EAAwE;AACxE,uFAA6E;AAC7E,qFAA2E;AAC3E,yEAAgE;AAChE,yHAAmH;AACnH,uGAAiG;AACjG,mHAA6G;AAC7G,gHAAsG;AAQzF,QAAA,0BAA0B,GAAG,gEAA6B,CAAC,IAAI,CAAC;IACzE,QAAQ,EAAE,IAAI;CACjB,CAAC,CAAC,MAAM,CAAC;IACN,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,cAAc,EAAE,OAAC,CAAC,IAAI,CAAC,sDAAsB,CAAC;CACjD,CAAC,CAAC;AAQU,QAAA,oBAAoB,GAAG,oDAAuB,CAAC;AAG/C,QAAA,wBAAwB,GAAG,4DAA2B,CAAC;AAOvD,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,8CAAkB,CAAC;IAClC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,sBAAc,CAAC,CAAC,QAAQ,EAAE;IACvD,WAAW,EAAE,OAAC,CAAC,OAAO,EAAE;CAC3B,CAAC,CAAC;AAGU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,QAAQ,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AAE;IACtC,QAAQ,EAAE,2BAAmB;IAC7B,OAAO,EAAE,kCAA0B;CACtC,CAAC,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { z } from 'zod';
2
+ import { UserStatus } from '../../schemas/user-status.enum';
3
+ import { UserRole } from '../../../auth/schemas/user-role.enum';
4
+ import { AdminUserSortField, AdminUserSortOrder } from './admin-user-sort.enum';
5
+ export declare const AdminUserListItemSchema: z.ZodObject<{
6
+ uuid: z.ZodString;
7
+ email: z.ZodNullable<z.ZodString>;
8
+ name: z.ZodString;
9
+ status: z.ZodEnum<typeof UserStatus>;
10
+ createdAt: z.ZodString;
11
+ role: z.ZodEnum<typeof UserRole>;
12
+ registrationIp: z.ZodNullable<z.ZodString>;
13
+ hasTelegram: z.ZodBoolean;
14
+ hasVk: z.ZodBoolean;
15
+ hasYandex: z.ZodBoolean;
16
+ balanceAvailable: z.ZodString;
17
+ }, z.core.$strip>;
18
+ export type AdminUserListItem = z.infer<typeof AdminUserListItemSchema>;
19
+ export declare const AdminListUsersRequestSchema: z.ZodObject<{
20
+ q: z.ZodOptional<z.ZodString>;
21
+ role: z.ZodOptional<z.ZodEnum<typeof UserRole>>;
22
+ status: z.ZodOptional<z.ZodEnum<typeof UserStatus>>;
23
+ hasTelegram: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
24
+ hasVk: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
25
+ hasYandex: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
26
+ createdFrom: z.ZodOptional<z.ZodString>;
27
+ createdTo: z.ZodOptional<z.ZodString>;
28
+ sortBy: z.ZodDefault<z.ZodEnum<typeof AdminUserSortField>>;
29
+ sortOrder: z.ZodDefault<z.ZodEnum<typeof AdminUserSortOrder>>;
30
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
31
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
32
+ }, z.core.$strip>;
33
+ export type AdminListUsersRequest = z.infer<typeof AdminListUsersRequestSchema>;
34
+ export declare const AdminListUsersResponseSchema: z.ZodObject<{
35
+ items: z.ZodArray<z.ZodObject<{
36
+ uuid: z.ZodString;
37
+ email: z.ZodNullable<z.ZodString>;
38
+ name: z.ZodString;
39
+ status: z.ZodEnum<typeof UserStatus>;
40
+ createdAt: z.ZodString;
41
+ role: z.ZodEnum<typeof UserRole>;
42
+ registrationIp: z.ZodNullable<z.ZodString>;
43
+ hasTelegram: z.ZodBoolean;
44
+ hasVk: z.ZodBoolean;
45
+ hasYandex: z.ZodBoolean;
46
+ balanceAvailable: z.ZodString;
47
+ }, z.core.$strip>>;
48
+ total: z.ZodNumber;
49
+ page: z.ZodNumber;
50
+ limit: z.ZodNumber;
51
+ }, z.core.$strip>;
52
+ export type AdminListUsersResponse = z.infer<typeof AdminListUsersResponseSchema>;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminListUsersResponseSchema = exports.AdminListUsersRequestSchema = exports.AdminUserListItemSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const shared_1 = require("../../../../shared");
6
+ const user_response_schema_1 = require("../../schemas/user-response.schema");
7
+ const user_status_enum_1 = require("../../schemas/user-status.enum");
8
+ const user_role_enum_1 = require("../../../auth/schemas/user-role.enum");
9
+ const admin_user_sort_enum_1 = require("./admin-user-sort.enum");
10
+ exports.AdminUserListItemSchema = user_response_schema_1.UserResponseSchema.extend({
11
+ role: zod_1.z.enum(user_role_enum_1.UserRole),
12
+ registrationIp: zod_1.z.string().nullable(),
13
+ hasTelegram: zod_1.z.boolean(),
14
+ hasVk: zod_1.z.boolean(),
15
+ hasYandex: zod_1.z.boolean(),
16
+ balanceAvailable: shared_1.BigIntStringSchema,
17
+ });
18
+ const SortFieldSchema = zod_1.z.enum(admin_user_sort_enum_1.AdminUserSortField).default(admin_user_sort_enum_1.AdminUserSortField.CREATED_AT);
19
+ const SortOrderSchema = zod_1.z.enum(admin_user_sort_enum_1.AdminUserSortOrder).default(admin_user_sort_enum_1.AdminUserSortOrder.DESC);
20
+ exports.AdminListUsersRequestSchema = zod_1.z.object({
21
+ q: zod_1.z
22
+ .string({ error: 'AdminListUsersRequest.q.invalid' })
23
+ .max(255, { message: 'AdminListUsersRequest.q.max' })
24
+ .optional(),
25
+ role: zod_1.z.enum(user_role_enum_1.UserRole).optional(),
26
+ status: zod_1.z.enum(user_status_enum_1.UserStatus).optional(),
27
+ hasTelegram: zod_1.z.coerce.boolean().optional(),
28
+ hasVk: zod_1.z.coerce.boolean().optional(),
29
+ hasYandex: zod_1.z.coerce.boolean().optional(),
30
+ createdFrom: zod_1.z
31
+ .string()
32
+ .datetime({ message: 'AdminListUsersRequest.createdFrom.invalid' })
33
+ .optional(),
34
+ createdTo: zod_1.z
35
+ .string()
36
+ .datetime({ message: 'AdminListUsersRequest.createdTo.invalid' })
37
+ .optional(),
38
+ sortBy: SortFieldSchema,
39
+ sortOrder: SortOrderSchema,
40
+ page: zod_1.z.coerce
41
+ .number()
42
+ .int({ message: 'AdminListUsersRequest.page.invalid' })
43
+ .positive({ message: 'AdminListUsersRequest.page.invalid' })
44
+ .default(1),
45
+ limit: zod_1.z.coerce
46
+ .number()
47
+ .int({ message: 'AdminListUsersRequest.limit.invalid' })
48
+ .positive({ message: 'AdminListUsersRequest.limit.invalid' })
49
+ .max(100, { message: 'AdminListUsersRequest.limit.max' })
50
+ .default(20),
51
+ });
52
+ exports.AdminListUsersResponseSchema = zod_1.z.object({
53
+ items: zod_1.z.array(exports.AdminUserListItemSchema),
54
+ total: zod_1.z.number().int().nonnegative(),
55
+ page: zod_1.z.number().int().positive(),
56
+ limit: zod_1.z.number().int().positive(),
57
+ });
58
+ //# sourceMappingURL=admin-user-list.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-user-list.schema.js","sourceRoot":"","sources":["../../../../../v1/users/admin/schemas/admin-user-list.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+CAAwD;AACxD,6EA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der {
7
+ ASC = "asc",
8
+ DESC = "desc"
9
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminUserSortOrder = exports.AdminUserSortField = void 0;
4
+ var AdminUserSortField;
5
+ (function (AdminUserSortField) {
6
+ AdminUserSortField["CREATED_AT"] = "createdAt";
7
+ AdminUserSortField["NAME"] = "name";
8
+ AdminUserSortField["EMAIL"] = "email";
9
+ })(AdminUserSortField || (exports.AdminUserSortField = AdminUserSortField = {}));
10
+ var AdminUserSortOrder;
11
+ (function (AdminUserSortOrder) {
12
+ AdminUserSortOrder["ASC"] = "asc";
13
+ AdminUserSortOrder["DESC"] = "desc";
14
+ })(AdminUserSortOrder || (exports.AdminUserSortOrder = AdminUserSortOrder = {}));
15
+ //# sourceMappingURL=admin-user-sort.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-user-sort.enum.js","sourceRoot":"","sources":["../../../../../v1/users/admin/schemas/admin-user-sort.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC1B,8CAAwB,CAAA;IACxB,mCAAa,CAAA;IACb,qCAAe,CAAA;AACnB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,iCAAW,CAAA;IACX,mCAAa,CAAA;AACjB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B"}
@@ -0,0 +1,4 @@
1
+ export * from './admin-user-list.schema';
2
+ export * from './admin-user-details.schema';
3
+ export * from './admin-update-user.schema';
4
+ export * from './admin-user-sort.enum';
@@ -0,0 +1,21 @@
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("./admin-user-list.schema"), exports);
18
+ __exportStar(require("./admin-user-details.schema"), exports);
19
+ __exportStar(require("./admin-update-user.schema"), exports);
20
+ __exportStar(require("./admin-user-sort.enum"), exports);
21
+ //# sourceMappingURL=index.js.map