@veruna/api-contracts 1.0.69 → 1.0.71

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 (274) hide show
  1. package/build/controllers/index.d.ts +4 -0
  2. package/build/controllers/index.js +9 -1
  3. package/build/controllers/index.js.map +1 -1
  4. package/build/controllers/vk-auth.controllers.d.ts +1 -0
  5. package/build/controllers/vk-auth.controllers.js +5 -0
  6. package/build/controllers/vk-auth.controllers.js.map +1 -0
  7. package/build/controllers/vk-profile.controllers.d.ts +1 -0
  8. package/build/controllers/vk-profile.controllers.js +5 -0
  9. package/build/controllers/vk-profile.controllers.js.map +1 -0
  10. package/build/controllers/yandex-auth.controllers.d.ts +1 -0
  11. package/build/controllers/yandex-auth.controllers.js +5 -0
  12. package/build/controllers/yandex-auth.controllers.js.map +1 -0
  13. package/build/controllers/yandex-profile.controllers.d.ts +1 -0
  14. package/build/controllers/yandex-profile.controllers.js +5 -0
  15. package/build/controllers/yandex-profile.controllers.js.map +1 -0
  16. package/build/locales/validation.d.ts +98 -0
  17. package/build/locales/validation.js +98 -0
  18. package/build/locales/validation.js.map +1 -1
  19. package/build/rest-api.d.ts +26 -0
  20. package/build/rest-api.js +26 -0
  21. package/build/rest-api.js.map +1 -1
  22. package/build/routes/chat-project.routes.d.ts +1 -0
  23. package/build/routes/chat-project.routes.js +1 -0
  24. package/build/routes/chat-project.routes.js.map +1 -1
  25. package/build/routes/chat.routes.d.ts +1 -0
  26. package/build/routes/chat.routes.js +1 -0
  27. package/build/routes/chat.routes.js.map +1 -1
  28. package/build/routes/index.d.ts +4 -0
  29. package/build/routes/index.js +9 -1
  30. package/build/routes/index.js.map +1 -1
  31. package/build/routes/vk-auth.routes.d.ts +6 -0
  32. package/build/routes/vk-auth.routes.js +10 -0
  33. package/build/routes/vk-auth.routes.js.map +1 -0
  34. package/build/routes/vk-profile.routes.d.ts +6 -0
  35. package/build/routes/vk-profile.routes.js +10 -0
  36. package/build/routes/vk-profile.routes.js.map +1 -0
  37. package/build/routes/yandex-auth.routes.d.ts +6 -0
  38. package/build/routes/yandex-auth.routes.js +10 -0
  39. package/build/routes/yandex-auth.routes.js.map +1 -0
  40. package/build/routes/yandex-profile.routes.d.ts +6 -0
  41. package/build/routes/yandex-profile.routes.js +10 -0
  42. package/build/routes/yandex-profile.routes.js.map +1 -0
  43. package/build/tsconfig.tsbuildinfo +1 -1
  44. package/build/v1/auth/commands/signin.command.d.ts +1 -1
  45. package/build/v1/auth/commands/signup.command.d.ts +1 -1
  46. package/build/v1/auth/schemas/auth-response.schema.d.ts +1 -1
  47. package/build/v1/chat/commands/delete-homeless-chats.command.d.ts +12 -0
  48. package/build/v1/chat/commands/delete-homeless-chats.command.js +15 -0
  49. package/build/v1/chat/commands/delete-homeless-chats.command.js.map +1 -0
  50. package/build/v1/chat/commands/index.d.ts +1 -0
  51. package/build/v1/chat/commands/index.js +3 -1
  52. package/build/v1/chat/commands/index.js.map +1 -1
  53. package/build/v1/chat/schemas/bulk-delete-chats-response.schema.d.ts +5 -0
  54. package/build/v1/chat/schemas/bulk-delete-chats-response.schema.js +8 -0
  55. package/build/v1/chat/schemas/bulk-delete-chats-response.schema.js.map +1 -0
  56. package/build/v1/chat/schemas/index.d.ts +2 -0
  57. package/build/v1/chat/schemas/index.js +3 -1
  58. package/build/v1/chat/schemas/index.js.map +1 -1
  59. package/build/v1/chat-project/commands/delete-folder-chats.command.d.ts +12 -0
  60. package/build/v1/chat-project/commands/delete-folder-chats.command.js +15 -0
  61. package/build/v1/chat-project/commands/delete-folder-chats.command.js.map +1 -0
  62. package/build/v1/chat-project/commands/index.d.ts +1 -0
  63. package/build/v1/chat-project/commands/index.js +1 -0
  64. package/build/v1/chat-project/commands/index.js.map +1 -1
  65. package/build/v1/index.d.ts +5 -0
  66. package/build/v1/index.js +5 -0
  67. package/build/v1/index.js.map +1 -1
  68. package/build/v1/oauth-common/index.d.ts +1 -0
  69. package/build/v1/oauth-common/index.js +18 -0
  70. package/build/v1/oauth-common/index.js.map +1 -0
  71. package/build/v1/oauth-common/schemas/index.d.ts +1 -0
  72. package/build/v1/oauth-common/schemas/index.js +18 -0
  73. package/build/v1/oauth-common/schemas/index.js.map +1 -0
  74. package/build/v1/oauth-common/schemas/oauth-auth-request-type.enum.d.ts +4 -0
  75. package/build/v1/oauth-common/schemas/oauth-auth-request-type.enum.js +9 -0
  76. package/build/v1/oauth-common/schemas/oauth-auth-request-type.enum.js.map +1 -0
  77. package/build/v1/telegram-auth/commands/exchange-telegram-auth.command.d.ts +1 -0
  78. package/build/v1/telegram-auth/schemas/telegram-auth-exchange-request.schema.d.ts +1 -0
  79. package/build/v1/telegram-auth/schemas/telegram-auth-exchange-request.schema.js +4 -0
  80. package/build/v1/telegram-auth/schemas/telegram-auth-exchange-request.schema.js.map +1 -1
  81. package/build/v1/telegram-auth/schemas/telegram-auth-request-type.enum.d.ts +1 -4
  82. package/build/v1/telegram-auth/schemas/telegram-auth-request-type.enum.js +2 -5
  83. package/build/v1/telegram-auth/schemas/telegram-auth-request-type.enum.js.map +1 -1
  84. package/build/v1/telegram-profile/commands/unlink-telegram.command.d.ts +1 -3
  85. package/build/v1/telegram-profile/commands/unlink-telegram.command.js +2 -2
  86. package/build/v1/telegram-profile/commands/unlink-telegram.command.js.map +1 -1
  87. package/build/v1/telegram-profile/schemas/index.d.ts +0 -1
  88. package/build/v1/telegram-profile/schemas/index.js +0 -1
  89. package/build/v1/telegram-profile/schemas/index.js.map +1 -1
  90. package/build/v1/telegram-profile/telegram-profile.errors.d.ts +2 -1
  91. package/build/v1/telegram-profile/telegram-profile.errors.js +5 -0
  92. package/build/v1/telegram-profile/telegram-profile.errors.js.map +1 -1
  93. package/build/v1/users/commands/toggle-marketing-consent.command.d.ts +1 -1
  94. package/build/v1/users/commands/update-profile.command.d.ts +1 -1
  95. package/build/v1/users/queries/get-current-user.query.d.ts +1 -1
  96. package/build/v1/users/schemas/register-type.enum.d.ts +3 -1
  97. package/build/v1/users/schemas/register-type.enum.js +2 -0
  98. package/build/v1/users/schemas/register-type.enum.js.map +1 -1
  99. package/build/v1/users/schemas/response-unions.schema.d.ts +3 -3
  100. package/build/v1/users/schemas/user-response.schema.d.ts +1 -1
  101. package/build/v1/users/schemas/user-response.schema.js +1 -1
  102. package/build/v1/users/schemas/user-response.schema.js.map +1 -1
  103. package/build/v1/vk-auth/commands/exchange-vk-auth.command.d.ts +15 -0
  104. package/build/v1/vk-auth/commands/exchange-vk-auth.command.js +14 -0
  105. package/build/v1/vk-auth/commands/exchange-vk-auth.command.js.map +1 -0
  106. package/build/v1/vk-auth/commands/index.d.ts +2 -0
  107. package/build/v1/vk-auth/commands/index.js +19 -0
  108. package/build/v1/vk-auth/commands/index.js.map +1 -0
  109. package/build/v1/vk-auth/commands/init-vk-auth.command.d.ts +14 -0
  110. package/build/v1/vk-auth/commands/init-vk-auth.command.js +15 -0
  111. package/build/v1/vk-auth/commands/init-vk-auth.command.js.map +1 -0
  112. package/build/v1/vk-auth/index.d.ts +6 -0
  113. package/build/v1/vk-auth/index.js +26 -0
  114. package/build/v1/vk-auth/index.js.map +1 -0
  115. package/build/v1/vk-auth/queries/get-vk-auth-status.query.d.ts +13 -0
  116. package/build/v1/vk-auth/queries/get-vk-auth-status.query.js +15 -0
  117. package/build/v1/vk-auth/queries/get-vk-auth-status.query.js.map +1 -0
  118. package/build/v1/vk-auth/queries/handle-vk-auth-callback.query.d.ts +14 -0
  119. package/build/v1/vk-auth/queries/handle-vk-auth-callback.query.js +15 -0
  120. package/build/v1/vk-auth/queries/handle-vk-auth-callback.query.js.map +1 -0
  121. package/build/v1/vk-auth/queries/index.d.ts +2 -0
  122. package/build/v1/vk-auth/queries/index.js +19 -0
  123. package/build/v1/vk-auth/queries/index.js.map +1 -0
  124. package/build/v1/vk-auth/schemas/index.d.ts +7 -0
  125. package/build/v1/vk-auth/schemas/index.js +24 -0
  126. package/build/v1/vk-auth/schemas/index.js.map +1 -0
  127. package/build/v1/vk-auth/schemas/vk-auth-callback-query.schema.d.ts +7 -0
  128. package/build/v1/vk-auth/schemas/vk-auth-callback-query.schema.js +10 -0
  129. package/build/v1/vk-auth/schemas/vk-auth-callback-query.schema.js.map +1 -0
  130. package/build/v1/vk-auth/schemas/vk-auth-exchange-request.schema.d.ts +6 -0
  131. package/build/v1/vk-auth/schemas/vk-auth-exchange-request.schema.js +14 -0
  132. package/build/v1/vk-auth/schemas/vk-auth-exchange-request.schema.js.map +1 -0
  133. package/build/v1/vk-auth/schemas/vk-auth-exchange-response.schema.d.ts +6 -0
  134. package/build/v1/vk-auth/schemas/vk-auth-exchange-response.schema.js +9 -0
  135. package/build/v1/vk-auth/schemas/vk-auth-exchange-response.schema.js.map +1 -0
  136. package/build/v1/vk-auth/schemas/vk-auth-init-response.schema.d.ts +7 -0
  137. package/build/v1/vk-auth/schemas/vk-auth-init-response.schema.js +10 -0
  138. package/build/v1/vk-auth/schemas/vk-auth-init-response.schema.js.map +1 -0
  139. package/build/v1/vk-auth/schemas/vk-auth-request-type.enum.d.ts +1 -0
  140. package/build/v1/vk-auth/schemas/vk-auth-request-type.enum.js +6 -0
  141. package/build/v1/vk-auth/schemas/vk-auth-request-type.enum.js.map +1 -0
  142. package/build/v1/vk-auth/schemas/vk-auth-status-response.schema.d.ts +7 -0
  143. package/build/v1/vk-auth/schemas/vk-auth-status-response.schema.js +10 -0
  144. package/build/v1/vk-auth/schemas/vk-auth-status-response.schema.js.map +1 -0
  145. package/build/v1/vk-auth/schemas/vk-auth-status.enum.d.ts +7 -0
  146. package/build/v1/vk-auth/schemas/vk-auth-status.enum.js +12 -0
  147. package/build/v1/vk-auth/schemas/vk-auth-status.enum.js.map +1 -0
  148. package/build/v1/vk-auth/vk-auth.errors.d.ts +14 -0
  149. package/build/v1/vk-auth/vk-auth.errors.js +29 -0
  150. package/build/v1/vk-auth/vk-auth.errors.js.map +1 -0
  151. package/build/v1/vk-profile/commands/index.d.ts +2 -0
  152. package/build/v1/vk-profile/commands/index.js +19 -0
  153. package/build/v1/vk-profile/commands/index.js.map +1 -0
  154. package/build/v1/vk-profile/commands/link-vk.command.d.ts +14 -0
  155. package/build/v1/vk-profile/commands/link-vk.command.js +15 -0
  156. package/build/v1/vk-profile/commands/link-vk.command.js.map +1 -0
  157. package/build/v1/vk-profile/commands/unlink-vk.command.d.ts +8 -0
  158. package/build/v1/vk-profile/commands/unlink-vk.command.js +13 -0
  159. package/build/v1/vk-profile/commands/unlink-vk.command.js.map +1 -0
  160. package/build/v1/vk-profile/index.d.ts +6 -0
  161. package/build/v1/vk-profile/index.js +26 -0
  162. package/build/v1/vk-profile/index.js.map +1 -0
  163. package/build/v1/vk-profile/queries/get-vk-link-status.query.d.ts +12 -0
  164. package/build/v1/vk-profile/queries/get-vk-link-status.query.js +13 -0
  165. package/build/v1/vk-profile/queries/get-vk-link-status.query.js.map +1 -0
  166. package/build/v1/vk-profile/queries/get-vk-profile.query.d.ts +20 -0
  167. package/build/v1/vk-profile/queries/get-vk-profile.query.js +13 -0
  168. package/build/v1/vk-profile/queries/get-vk-profile.query.js.map +1 -0
  169. package/build/v1/vk-profile/queries/index.d.ts +2 -0
  170. package/build/v1/vk-profile/queries/index.js +19 -0
  171. package/build/v1/vk-profile/queries/index.js.map +1 -0
  172. package/build/v1/vk-profile/schemas/index.d.ts +3 -0
  173. package/build/v1/vk-profile/schemas/index.js +20 -0
  174. package/build/v1/vk-profile/schemas/index.js.map +1 -0
  175. package/build/v1/vk-profile/schemas/vk-link-response.schema.d.ts +7 -0
  176. package/build/v1/vk-profile/schemas/vk-link-response.schema.js +10 -0
  177. package/build/v1/vk-profile/schemas/vk-link-response.schema.js.map +1 -0
  178. package/build/v1/vk-profile/schemas/vk-link-status-response.schema.d.ts +8 -0
  179. package/build/v1/vk-profile/schemas/vk-link-status-response.schema.js +11 -0
  180. package/build/v1/vk-profile/schemas/vk-link-status-response.schema.js.map +1 -0
  181. package/build/v1/vk-profile/schemas/vk-profile-response.schema.d.ts +15 -0
  182. package/build/v1/vk-profile/schemas/vk-profile-response.schema.js +18 -0
  183. package/build/v1/vk-profile/schemas/vk-profile-response.schema.js.map +1 -0
  184. package/build/v1/vk-profile/vk-profile.errors.d.ts +11 -0
  185. package/build/v1/vk-profile/vk-profile.errors.js +23 -0
  186. package/build/v1/vk-profile/vk-profile.errors.js.map +1 -0
  187. package/build/v1/yandex-auth/commands/exchange-yandex-auth.command.d.ts +16 -0
  188. package/build/v1/yandex-auth/commands/exchange-yandex-auth.command.js +14 -0
  189. package/build/v1/yandex-auth/commands/exchange-yandex-auth.command.js.map +1 -0
  190. package/build/v1/yandex-auth/commands/index.d.ts +2 -0
  191. package/build/v1/yandex-auth/commands/index.js +19 -0
  192. package/build/v1/yandex-auth/commands/index.js.map +1 -0
  193. package/build/v1/yandex-auth/commands/init-yandex-auth.command.d.ts +14 -0
  194. package/build/v1/yandex-auth/commands/init-yandex-auth.command.js +15 -0
  195. package/build/v1/yandex-auth/commands/init-yandex-auth.command.js.map +1 -0
  196. package/build/v1/yandex-auth/index.d.ts +6 -0
  197. package/build/v1/yandex-auth/index.js +26 -0
  198. package/build/v1/yandex-auth/index.js.map +1 -0
  199. package/build/v1/yandex-auth/queries/get-yandex-auth-status.query.d.ts +13 -0
  200. package/build/v1/yandex-auth/queries/get-yandex-auth-status.query.js +15 -0
  201. package/build/v1/yandex-auth/queries/get-yandex-auth-status.query.js.map +1 -0
  202. package/build/v1/yandex-auth/queries/handle-yandex-auth-callback.query.d.ts +13 -0
  203. package/build/v1/yandex-auth/queries/handle-yandex-auth-callback.query.js +15 -0
  204. package/build/v1/yandex-auth/queries/handle-yandex-auth-callback.query.js.map +1 -0
  205. package/build/v1/yandex-auth/queries/index.d.ts +2 -0
  206. package/build/v1/yandex-auth/queries/index.js +19 -0
  207. package/build/v1/yandex-auth/queries/index.js.map +1 -0
  208. package/build/v1/yandex-auth/schemas/index.d.ts +7 -0
  209. package/build/v1/yandex-auth/schemas/index.js +24 -0
  210. package/build/v1/yandex-auth/schemas/index.js.map +1 -0
  211. package/build/v1/yandex-auth/schemas/yandex-auth-callback-query.schema.d.ts +6 -0
  212. package/build/v1/yandex-auth/schemas/yandex-auth-callback-query.schema.js +9 -0
  213. package/build/v1/yandex-auth/schemas/yandex-auth-callback-query.schema.js.map +1 -0
  214. package/build/v1/yandex-auth/schemas/yandex-auth-exchange-request.schema.d.ts +6 -0
  215. package/build/v1/yandex-auth/schemas/yandex-auth-exchange-request.schema.js +14 -0
  216. package/build/v1/yandex-auth/schemas/yandex-auth-exchange-request.schema.js.map +1 -0
  217. package/build/v1/yandex-auth/schemas/yandex-auth-exchange-response.schema.d.ts +6 -0
  218. package/build/v1/yandex-auth/schemas/yandex-auth-exchange-response.schema.js +9 -0
  219. package/build/v1/yandex-auth/schemas/yandex-auth-exchange-response.schema.js.map +1 -0
  220. package/build/v1/yandex-auth/schemas/yandex-auth-init-response.schema.d.ts +7 -0
  221. package/build/v1/yandex-auth/schemas/yandex-auth-init-response.schema.js +10 -0
  222. package/build/v1/yandex-auth/schemas/yandex-auth-init-response.schema.js.map +1 -0
  223. package/build/v1/yandex-auth/schemas/yandex-auth-request-type.enum.d.ts +1 -0
  224. package/build/v1/yandex-auth/schemas/yandex-auth-request-type.enum.js +6 -0
  225. package/build/v1/yandex-auth/schemas/yandex-auth-request-type.enum.js.map +1 -0
  226. package/build/v1/yandex-auth/schemas/yandex-auth-status-response.schema.d.ts +7 -0
  227. package/build/v1/yandex-auth/schemas/yandex-auth-status-response.schema.js +10 -0
  228. package/build/v1/yandex-auth/schemas/yandex-auth-status-response.schema.js.map +1 -0
  229. package/build/v1/yandex-auth/schemas/yandex-auth-status.enum.d.ts +7 -0
  230. package/build/v1/yandex-auth/schemas/yandex-auth-status.enum.js +12 -0
  231. package/build/v1/yandex-auth/schemas/yandex-auth-status.enum.js.map +1 -0
  232. package/build/v1/yandex-auth/yandex-auth.errors.d.ts +14 -0
  233. package/build/v1/yandex-auth/yandex-auth.errors.js +59 -0
  234. package/build/v1/yandex-auth/yandex-auth.errors.js.map +1 -0
  235. package/build/v1/yandex-profile/commands/index.d.ts +2 -0
  236. package/build/v1/yandex-profile/commands/index.js +19 -0
  237. package/build/v1/yandex-profile/commands/index.js.map +1 -0
  238. package/build/v1/yandex-profile/commands/link-yandex.command.d.ts +14 -0
  239. package/build/v1/yandex-profile/commands/link-yandex.command.js +15 -0
  240. package/build/v1/yandex-profile/commands/link-yandex.command.js.map +1 -0
  241. package/build/v1/yandex-profile/commands/unlink-yandex.command.d.ts +8 -0
  242. package/build/v1/yandex-profile/commands/unlink-yandex.command.js +13 -0
  243. package/build/v1/yandex-profile/commands/unlink-yandex.command.js.map +1 -0
  244. package/build/v1/yandex-profile/index.d.ts +6 -0
  245. package/build/v1/yandex-profile/index.js +26 -0
  246. package/build/v1/yandex-profile/index.js.map +1 -0
  247. package/build/v1/yandex-profile/queries/get-yandex-link-status.query.d.ts +12 -0
  248. package/build/v1/yandex-profile/queries/get-yandex-link-status.query.js +13 -0
  249. package/build/v1/yandex-profile/queries/get-yandex-link-status.query.js.map +1 -0
  250. package/build/v1/yandex-profile/queries/get-yandex-profile.query.d.ts +29 -0
  251. package/build/v1/yandex-profile/queries/get-yandex-profile.query.js +13 -0
  252. package/build/v1/yandex-profile/queries/get-yandex-profile.query.js.map +1 -0
  253. package/build/v1/yandex-profile/queries/index.d.ts +2 -0
  254. package/build/v1/yandex-profile/queries/index.js +19 -0
  255. package/build/v1/yandex-profile/queries/index.js.map +1 -0
  256. package/build/v1/yandex-profile/schemas/index.d.ts +3 -0
  257. package/build/v1/yandex-profile/schemas/index.js +20 -0
  258. package/build/v1/yandex-profile/schemas/index.js.map +1 -0
  259. package/build/v1/yandex-profile/schemas/yandex-link-response.schema.d.ts +7 -0
  260. package/build/v1/yandex-profile/schemas/yandex-link-response.schema.js +10 -0
  261. package/build/v1/yandex-profile/schemas/yandex-link-response.schema.js.map +1 -0
  262. package/build/v1/yandex-profile/schemas/yandex-link-status-response.schema.d.ts +8 -0
  263. package/build/v1/yandex-profile/schemas/yandex-link-status-response.schema.js +11 -0
  264. package/build/v1/yandex-profile/schemas/yandex-link-status-response.schema.js.map +1 -0
  265. package/build/v1/yandex-profile/schemas/yandex-profile-response.schema.d.ts +24 -0
  266. package/build/v1/yandex-profile/schemas/yandex-profile-response.schema.js +27 -0
  267. package/build/v1/yandex-profile/schemas/yandex-profile-response.schema.js.map +1 -0
  268. package/build/v1/yandex-profile/yandex-profile.errors.d.ts +11 -0
  269. package/build/v1/yandex-profile/yandex-profile.errors.js +44 -0
  270. package/build/v1/yandex-profile/yandex-profile.errors.js.map +1 -0
  271. package/package.json +1 -1
  272. package/build/v1/telegram-profile/schemas/telegram-unlink-response.schema.d.ts +0 -5
  273. package/build/v1/telegram-profile/schemas/telegram-unlink-response.schema.js +0 -8
  274. package/build/v1/telegram-profile/schemas/telegram-unlink-response.schema.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/vk-profile/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,iDAA0D;AAAjD,oHAAA,qBAAqB,OAAA;AAC9B,uCAAiD;AAAxC,2GAAA,iBAAiB,OAAA"}
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method';
3
+ export declare namespace GetVkLinkStatusQuery {
4
+ const Response: z.ZodObject<{
5
+ status: z.ZodEnum<typeof import("../..").VkAuthStatus>;
6
+ vkId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ }, z.core.$strip>;
9
+ const URL: (uuid: string) => string;
10
+ const METHOD = HttpMethod.GET;
11
+ type ResponseType = z.infer<typeof Response>;
12
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetVkLinkStatusQuery = void 0;
4
+ const schemas_1 = require("../schemas");
5
+ const http_method_1 = require("../../../shared/http-method");
6
+ const rest_api_1 = require("../../../rest-api");
7
+ var GetVkLinkStatusQuery;
8
+ (function (GetVkLinkStatusQuery) {
9
+ GetVkLinkStatusQuery.Response = schemas_1.VkLinkStatusResponseSchema;
10
+ GetVkLinkStatusQuery.URL = (uuid) => rest_api_1.REST_API.V1.VK_PROFILE.LINK_STATUS(uuid);
11
+ GetVkLinkStatusQuery.METHOD = http_method_1.HttpMethod.GET;
12
+ })(GetVkLinkStatusQuery || (exports.GetVkLinkStatusQuery = GetVkLinkStatusQuery = {}));
13
+ //# sourceMappingURL=get-vk-link-status.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-vk-link-status.query.js","sourceRoot":"","sources":["../../../../v1/vk-profile/queries/get-vk-link-status.query.ts"],"names":[],"mappings":";;;AACA,wCAAwD;AACxD,6DAAyD;AACzD,gDAA6C;AAM7C,IAAiB,oBAAoB,CAOpC;AAPD,WAAiB,oBAAoB;IACpB,6BAAQ,GAAG,oCAA0B,CAAC;IAEtC,wBAAG,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACjE,2BAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAGzC,CAAC,EAPgB,oBAAoB,oCAApB,oBAAoB,QAOpC"}
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method';
3
+ export declare namespace GetVkProfileQuery {
4
+ const Response: z.ZodObject<{
5
+ vkId: z.ZodString;
6
+ firstName: z.ZodNullable<z.ZodString>;
7
+ lastName: z.ZodNullable<z.ZodString>;
8
+ avatarUrl: z.ZodNullable<z.ZodString>;
9
+ sex: z.ZodNullable<z.ZodNumber>;
10
+ verified: z.ZodNullable<z.ZodBoolean>;
11
+ birthday: z.ZodNullable<z.ZodString>;
12
+ email: z.ZodNullable<z.ZodString>;
13
+ phone: z.ZodNullable<z.ZodString>;
14
+ createdAt: z.ZodString;
15
+ updatedAt: z.ZodString;
16
+ }, z.core.$strip>;
17
+ const URL: "/api/v1/profiles/vk";
18
+ const METHOD = HttpMethod.GET;
19
+ type ResponseType = z.infer<typeof Response>;
20
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetVkProfileQuery = void 0;
4
+ const schemas_1 = require("../schemas");
5
+ const http_method_1 = require("../../../shared/http-method");
6
+ const rest_api_1 = require("../../../rest-api");
7
+ var GetVkProfileQuery;
8
+ (function (GetVkProfileQuery) {
9
+ GetVkProfileQuery.Response = schemas_1.VkProfileResponseSchema;
10
+ GetVkProfileQuery.URL = rest_api_1.REST_API.V1.VK_PROFILE.GET_PROFILE;
11
+ GetVkProfileQuery.METHOD = http_method_1.HttpMethod.GET;
12
+ })(GetVkProfileQuery || (exports.GetVkProfileQuery = GetVkProfileQuery = {}));
13
+ //# sourceMappingURL=get-vk-profile.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-vk-profile.query.js","sourceRoot":"","sources":["../../../../v1/vk-profile/queries/get-vk-profile.query.ts"],"names":[],"mappings":";;;AACA,wCAAqD;AACrD,6DAAyD;AACzD,gDAA6C;AAM7C,IAAiB,iBAAiB,CAOjC;AAPD,WAAiB,iBAAiB;IACjB,0BAAQ,GAAG,iCAAuB,CAAC;IAEnC,qBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,wBAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAGzC,CAAC,EAPgB,iBAAiB,iCAAjB,iBAAiB,QAOjC"}
@@ -0,0 +1,2 @@
1
+ export * from './get-vk-profile.query';
2
+ export * from './get-vk-link-status.query';
@@ -0,0 +1,19 @@
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("./get-vk-profile.query"), exports);
18
+ __exportStar(require("./get-vk-link-status.query"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/vk-profile/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,6DAA2C"}
@@ -0,0 +1,3 @@
1
+ export * from './vk-profile-response.schema';
2
+ export * from './vk-link-response.schema';
3
+ export * from './vk-link-status-response.schema';
@@ -0,0 +1,20 @@
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("./vk-profile-response.schema"), exports);
18
+ __exportStar(require("./vk-link-response.schema"), exports);
19
+ __exportStar(require("./vk-link-status-response.schema"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/vk-profile/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,4DAA0C;AAC1C,mEAAiD"}
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ export declare const VkLinkResponseSchema: z.ZodObject<{
3
+ uuid: z.ZodString;
4
+ link: z.ZodString;
5
+ expiresAt: z.ZodString;
6
+ }, z.core.$strip>;
7
+ export type VkLinkResponseDto = z.infer<typeof VkLinkResponseSchema>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VkLinkResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.VkLinkResponseSchema = zod_1.z.object({
6
+ uuid: zod_1.z.string().uuid(),
7
+ link: zod_1.z.string().url(),
8
+ expiresAt: zod_1.z.string().datetime(),
9
+ });
10
+ //# sourceMappingURL=vk-link-response.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vk-link-response.schema.js","sourceRoot":"","sources":["../../../../v1/vk-profile/schemas/vk-link-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACvB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACtB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
2
+ import { VkAuthStatus } from '../../vk-auth';
3
+ export declare const VkLinkStatusResponseSchema: z.ZodObject<{
4
+ status: z.ZodEnum<typeof VkAuthStatus>;
5
+ vkId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ }, z.core.$strip>;
8
+ export type VkLinkStatusResponseDto = z.infer<typeof VkLinkStatusResponseSchema>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VkLinkStatusResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const vk_auth_1 = require("../../vk-auth");
6
+ exports.VkLinkStatusResponseSchema = zod_1.z.object({
7
+ status: zod_1.z.nativeEnum(vk_auth_1.VkAuthStatus),
8
+ vkId: zod_1.z.string().nullable().optional(),
9
+ errorCode: zod_1.z.string().nullable().optional(),
10
+ });
11
+ //# sourceMappingURL=vk-link-status-response.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vk-link-status-response.schema.js","sourceRoot":"","sources":["../../../../v1/vk-profile/schemas/vk-link-status-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAA6C;AAEhC,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,sBAAY,CAAC;IAClC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACtC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ export declare const VkProfileResponseSchema: z.ZodObject<{
3
+ vkId: z.ZodString;
4
+ firstName: z.ZodNullable<z.ZodString>;
5
+ lastName: z.ZodNullable<z.ZodString>;
6
+ avatarUrl: z.ZodNullable<z.ZodString>;
7
+ sex: z.ZodNullable<z.ZodNumber>;
8
+ verified: z.ZodNullable<z.ZodBoolean>;
9
+ birthday: z.ZodNullable<z.ZodString>;
10
+ email: z.ZodNullable<z.ZodString>;
11
+ phone: z.ZodNullable<z.ZodString>;
12
+ createdAt: z.ZodString;
13
+ updatedAt: z.ZodString;
14
+ }, z.core.$strip>;
15
+ export type VkProfileResponseDto = z.infer<typeof VkProfileResponseSchema>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VkProfileResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.VkProfileResponseSchema = zod_1.z.object({
6
+ vkId: zod_1.z.string(),
7
+ firstName: zod_1.z.string().nullable(),
8
+ lastName: zod_1.z.string().nullable(),
9
+ avatarUrl: zod_1.z.string().url().nullable(),
10
+ sex: zod_1.z.number().int().nullable(),
11
+ verified: zod_1.z.boolean().nullable(),
12
+ birthday: zod_1.z.string().nullable(),
13
+ email: zod_1.z.string().nullable(),
14
+ phone: zod_1.z.string().nullable(),
15
+ createdAt: zod_1.z.string().datetime(),
16
+ updatedAt: zod_1.z.string().datetime(),
17
+ });
18
+ //# sourceMappingURL=vk-profile-response.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vk-profile-response.schema.js","sourceRoot":"","sources":["../../../../v1/vk-profile/schemas/vk-profile-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACtC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { ErrorMetadata } from '../../shared';
2
+ export declare enum VkProfileErrorCode {
3
+ PROFILE_NOT_FOUND = "VK_PROFILE_NOT_FOUND",
4
+ USER_ALREADY_HAS_VK = "VK_USER_ALREADY_HAS_VK",
5
+ VK_ALREADY_LINKED = "VK_ALREADY_LINKED_TO_OTHER_USER",
6
+ USER_HAS_NO_VK = "VK_USER_HAS_NO_VK",
7
+ LINK_REQUEST_NOT_FOUND = "VK_LINK_REQUEST_NOT_FOUND",
8
+ LINK_REQUEST_ACCESS_DENIED = "VK_LINK_REQUEST_ACCESS_DENIED",
9
+ LAST_AUTH_METHOD = "VK_LAST_AUTH_METHOD"
10
+ }
11
+ export declare const VK_PROFILE_ERRORS: Record<VkProfileErrorCode, ErrorMetadata>;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VK_PROFILE_ERRORS = exports.VkProfileErrorCode = void 0;
4
+ var VkProfileErrorCode;
5
+ (function (VkProfileErrorCode) {
6
+ VkProfileErrorCode["PROFILE_NOT_FOUND"] = "VK_PROFILE_NOT_FOUND";
7
+ VkProfileErrorCode["USER_ALREADY_HAS_VK"] = "VK_USER_ALREADY_HAS_VK";
8
+ VkProfileErrorCode["VK_ALREADY_LINKED"] = "VK_ALREADY_LINKED_TO_OTHER_USER";
9
+ VkProfileErrorCode["USER_HAS_NO_VK"] = "VK_USER_HAS_NO_VK";
10
+ VkProfileErrorCode["LINK_REQUEST_NOT_FOUND"] = "VK_LINK_REQUEST_NOT_FOUND";
11
+ VkProfileErrorCode["LINK_REQUEST_ACCESS_DENIED"] = "VK_LINK_REQUEST_ACCESS_DENIED";
12
+ VkProfileErrorCode["LAST_AUTH_METHOD"] = "VK_LAST_AUTH_METHOD";
13
+ })(VkProfileErrorCode || (exports.VkProfileErrorCode = VkProfileErrorCode = {}));
14
+ exports.VK_PROFILE_ERRORS = {
15
+ [VkProfileErrorCode.PROFILE_NOT_FOUND]: { code: VkProfileErrorCode.PROFILE_NOT_FOUND, statusCode: 404 },
16
+ [VkProfileErrorCode.USER_ALREADY_HAS_VK]: { code: VkProfileErrorCode.USER_ALREADY_HAS_VK, statusCode: 409 },
17
+ [VkProfileErrorCode.VK_ALREADY_LINKED]: { code: VkProfileErrorCode.VK_ALREADY_LINKED, statusCode: 409 },
18
+ [VkProfileErrorCode.USER_HAS_NO_VK]: { code: VkProfileErrorCode.USER_HAS_NO_VK, statusCode: 404 },
19
+ [VkProfileErrorCode.LINK_REQUEST_NOT_FOUND]: { code: VkProfileErrorCode.LINK_REQUEST_NOT_FOUND, statusCode: 404 },
20
+ [VkProfileErrorCode.LINK_REQUEST_ACCESS_DENIED]: { code: VkProfileErrorCode.LINK_REQUEST_ACCESS_DENIED, statusCode: 403 },
21
+ [VkProfileErrorCode.LAST_AUTH_METHOD]: { code: VkProfileErrorCode.LAST_AUTH_METHOD, statusCode: 409 },
22
+ };
23
+ //# sourceMappingURL=vk-profile.errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vk-profile.errors.js","sourceRoot":"","sources":["../../../v1/vk-profile/vk-profile.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,kBAQX;AARD,WAAY,kBAAkB;IAC1B,gEAA0C,CAAA;IAC1C,oEAA8C,CAAA;IAC9C,2EAAqD,CAAA;IACrD,0DAAoC,CAAA;IACpC,0EAAoD,CAAA;IACpD,kFAA4D,CAAA;IAC5D,8DAAwC,CAAA;AAC5C,CAAC,EARW,kBAAkB,kCAAlB,kBAAkB,QAQ7B;AAEY,QAAA,iBAAiB,GAA8C;IACxE,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,EAAE,EAAE,IAAI,EAAE,kBAAkB,CAAC,iBAAiB,EAAE,UAAU,EAAE,GAAG,EAAE;IACvG,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,EAAE,EAAE,IAAI,EAAE,kBAAkB,CAAC,mBAAmB,EAAE,UAAU,EAAE,GAAG,EAAE;IAC3G,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,EAAE,EAAE,IAAI,EAAE,kBAAkB,CAAC,iBAAiB,EAAE,UAAU,EAAE,GAAG,EAAE;IACvG,CAAC,kBAAkB,CAAC,cAAc,CAAC,EAAE,EAAE,IAAI,EAAE,kBAAkB,CAAC,cAAc,EAAE,UAAU,EAAE,GAAG,EAAE;IACjG,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,EAAE,EAAE,IAAI,EAAE,kBAAkB,CAAC,sBAAsB,EAAE,UAAU,EAAE,GAAG,EAAE;IACjH,CAAC,kBAAkB,CAAC,0BAA0B,CAAC,EAAE,EAAE,IAAI,EAAE,kBAAkB,CAAC,0BAA0B,EAAE,UAAU,EAAE,GAAG,EAAE;IACzH,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,EAAE,EAAE,IAAI,EAAE,kBAAkB,CAAC,gBAAgB,EAAE,UAAU,EAAE,GAAG,EAAE;CAC/F,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method';
3
+ export declare namespace ExchangeYandexAuthCommand {
4
+ const Request: z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ exchangeToken: z.ZodString;
7
+ }, z.core.$strip>;
8
+ const Response: z.ZodObject<{
9
+ accessToken: z.ZodString;
10
+ userId: z.ZodString;
11
+ }, z.core.$strip>;
12
+ const URL: "/api/v1/auth/yandex/exchange";
13
+ const METHOD = HttpMethod.POST;
14
+ type RequestType = z.infer<typeof Request>;
15
+ type ResponseType = z.infer<typeof Response>;
16
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExchangeYandexAuthCommand = void 0;
4
+ const schemas_1 = require("../schemas");
5
+ const http_method_1 = require("../../../shared/http-method");
6
+ const rest_api_1 = require("../../../rest-api");
7
+ var ExchangeYandexAuthCommand;
8
+ (function (ExchangeYandexAuthCommand) {
9
+ ExchangeYandexAuthCommand.Request = schemas_1.YandexAuthExchangeRequestSchema;
10
+ ExchangeYandexAuthCommand.Response = schemas_1.YandexAuthExchangeResponseSchema;
11
+ ExchangeYandexAuthCommand.URL = rest_api_1.REST_API.V1.YANDEX_AUTH.EXCHANGE;
12
+ ExchangeYandexAuthCommand.METHOD = http_method_1.HttpMethod.POST;
13
+ })(ExchangeYandexAuthCommand || (exports.ExchangeYandexAuthCommand = ExchangeYandexAuthCommand = {}));
14
+ //# sourceMappingURL=exchange-yandex-auth.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exchange-yandex-auth.command.js","sourceRoot":"","sources":["../../../../v1/yandex-auth/commands/exchange-yandex-auth.command.ts"],"names":[],"mappings":";;;AACA,wCAA+F;AAC/F,6DAAyD;AACzD,gDAA6C;AAM7C,IAAiB,yBAAyB,CASzC;AATD,WAAiB,yBAAyB;IACzB,iCAAO,GAAG,yCAA+B,CAAC;IAC1C,kCAAQ,GAAG,0CAAgC,CAAC;IAE5C,6BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC;IACvC,gCAAM,GAAG,wBAAU,CAAC,IAAI,CAAC;AAI1C,CAAC,EATgB,yBAAyB,yCAAzB,yBAAyB,QASzC"}
@@ -0,0 +1,2 @@
1
+ export * from './init-yandex-auth.command';
2
+ export * from './exchange-yandex-auth.command';
@@ -0,0 +1,19 @@
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("./init-yandex-auth.command"), exports);
18
+ __exportStar(require("./exchange-yandex-auth.command"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/yandex-auth/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,iEAA+C"}
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method';
3
+ export declare namespace InitYandexAuthCommand {
4
+ const Request: z.ZodObject<{}, z.core.$strip>;
5
+ const Response: z.ZodObject<{
6
+ uuid: z.ZodString;
7
+ link: z.ZodString;
8
+ expiresAt: z.ZodString;
9
+ }, z.core.$strip>;
10
+ const URL: "/api/v1/auth/yandex/init";
11
+ const METHOD = HttpMethod.POST;
12
+ type RequestType = z.infer<typeof Request>;
13
+ type ResponseType = z.infer<typeof Response>;
14
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InitYandexAuthCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const schemas_1 = require("../schemas");
6
+ const http_method_1 = require("../../../shared/http-method");
7
+ const rest_api_1 = require("../../../rest-api");
8
+ var InitYandexAuthCommand;
9
+ (function (InitYandexAuthCommand) {
10
+ InitYandexAuthCommand.Request = zod_1.z.object({});
11
+ InitYandexAuthCommand.Response = schemas_1.YandexAuthInitResponseSchema;
12
+ InitYandexAuthCommand.URL = rest_api_1.REST_API.V1.YANDEX_AUTH.INIT;
13
+ InitYandexAuthCommand.METHOD = http_method_1.HttpMethod.POST;
14
+ })(InitYandexAuthCommand || (exports.InitYandexAuthCommand = InitYandexAuthCommand = {}));
15
+ //# sourceMappingURL=init-yandex-auth.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init-yandex-auth.command.js","sourceRoot":"","sources":["../../../../v1/yandex-auth/commands/init-yandex-auth.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAA0D;AAC1D,6DAAyD;AACzD,gDAA6C;AAM7C,IAAiB,qBAAqB,CASrC;AATD,WAAiB,qBAAqB;IACrB,6BAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,8BAAQ,GAAG,sCAA4B,CAAC;IAExC,yBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC;IACnC,4BAAM,GAAG,wBAAU,CAAC,IAAI,CAAC;AAI1C,CAAC,EATgB,qBAAqB,qCAArB,qBAAqB,QASrC"}
@@ -0,0 +1,6 @@
1
+ export * from './yandex-auth.errors';
2
+ export * from './schemas';
3
+ export * from './commands';
4
+ export * from './queries';
5
+ export { YANDEX_AUTH_CONTROLLER } from '../../controllers';
6
+ export { YANDEX_AUTH_ROUTES } from '../../routes';
@@ -0,0 +1,26 @@
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
+ exports.YANDEX_AUTH_ROUTES = exports.YANDEX_AUTH_CONTROLLER = void 0;
18
+ __exportStar(require("./yandex-auth.errors"), exports);
19
+ __exportStar(require("./schemas"), exports);
20
+ __exportStar(require("./commands"), exports);
21
+ __exportStar(require("./queries"), exports);
22
+ var controllers_1 = require("../../controllers");
23
+ Object.defineProperty(exports, "YANDEX_AUTH_CONTROLLER", { enumerable: true, get: function () { return controllers_1.YANDEX_AUTH_CONTROLLER; } });
24
+ var routes_1 = require("../../routes");
25
+ Object.defineProperty(exports, "YANDEX_AUTH_ROUTES", { enumerable: true, get: function () { return routes_1.YANDEX_AUTH_ROUTES; } });
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/yandex-auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,iDAA2D;AAAlD,qHAAA,sBAAsB,OAAA;AAC/B,uCAAkD;AAAzC,4GAAA,kBAAkB,OAAA"}
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method';
3
+ export declare namespace GetYandexAuthStatusQuery {
4
+ const Request: z.ZodObject<{}, z.core.$strip>;
5
+ const Response: z.ZodObject<{
6
+ status: z.ZodEnum<typeof import("../schemas").YandexAuthStatus>;
7
+ errorCode: z.ZodNullable<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ const URL: (uuid: string) => string;
10
+ const METHOD = HttpMethod.GET;
11
+ type RequestType = z.infer<typeof Request>;
12
+ type ResponseType = z.infer<typeof Response>;
13
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetYandexAuthStatusQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const schemas_1 = require("../schemas");
6
+ const http_method_1 = require("../../../shared/http-method");
7
+ const rest_api_1 = require("../../../rest-api");
8
+ var GetYandexAuthStatusQuery;
9
+ (function (GetYandexAuthStatusQuery) {
10
+ GetYandexAuthStatusQuery.Request = zod_1.z.object({});
11
+ GetYandexAuthStatusQuery.Response = schemas_1.YandexAuthStatusResponseSchema;
12
+ GetYandexAuthStatusQuery.URL = rest_api_1.REST_API.V1.YANDEX_AUTH.STATUS;
13
+ GetYandexAuthStatusQuery.METHOD = http_method_1.HttpMethod.GET;
14
+ })(GetYandexAuthStatusQuery || (exports.GetYandexAuthStatusQuery = GetYandexAuthStatusQuery = {}));
15
+ //# sourceMappingURL=get-yandex-auth-status.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-yandex-auth-status.query.js","sourceRoot":"","sources":["../../../../v1/yandex-auth/queries/get-yandex-auth-status.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAA4D;AAC5D,6DAAyD;AACzD,gDAA6C;AAM7C,IAAiB,wBAAwB,CASxC;AATD,WAAiB,wBAAwB;IACxB,gCAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,iCAAQ,GAAG,wCAA8B,CAAC;IAE1C,4BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC;IACrC,+BAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EATgB,wBAAwB,wCAAxB,wBAAwB,QASxC"}
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ import { HttpMethod } from '../../../shared/http-method';
3
+ export declare namespace HandleYandexAuthCallbackQuery {
4
+ const Request: z.ZodObject<{
5
+ code: z.ZodOptional<z.ZodString>;
6
+ state: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ const Response: z.ZodObject<{}, z.core.$strip>;
9
+ const URL: "/api/v1/auth/yandex/callback";
10
+ const METHOD = HttpMethod.GET;
11
+ type RequestType = z.infer<typeof Request>;
12
+ type ResponseType = z.infer<typeof Response>;
13
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HandleYandexAuthCallbackQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const schemas_1 = require("../schemas");
6
+ const http_method_1 = require("../../../shared/http-method");
7
+ const rest_api_1 = require("../../../rest-api");
8
+ var HandleYandexAuthCallbackQuery;
9
+ (function (HandleYandexAuthCallbackQuery) {
10
+ HandleYandexAuthCallbackQuery.Request = schemas_1.YandexAuthCallbackQuerySchema;
11
+ HandleYandexAuthCallbackQuery.Response = zod_1.z.object({});
12
+ HandleYandexAuthCallbackQuery.URL = rest_api_1.REST_API.V1.YANDEX_AUTH.CALLBACK;
13
+ HandleYandexAuthCallbackQuery.METHOD = http_method_1.HttpMethod.GET;
14
+ })(HandleYandexAuthCallbackQuery || (exports.HandleYandexAuthCallbackQuery = HandleYandexAuthCallbackQuery = {}));
15
+ //# sourceMappingURL=handle-yandex-auth-callback.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handle-yandex-auth-callback.query.js","sourceRoot":"","sources":["../../../../v1/yandex-auth/queries/handle-yandex-auth-callback.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAA2D;AAC3D,6DAAyD;AACzD,gDAA6C;AAM7C,IAAiB,6BAA6B,CAS7C;AATD,WAAiB,6BAA6B;IAC7B,qCAAO,GAAG,uCAA6B,CAAC;IACxC,sCAAQ,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAExB,iCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC;IACvC,oCAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EATgB,6BAA6B,6CAA7B,6BAA6B,QAS7C"}
@@ -0,0 +1,2 @@
1
+ export * from './get-yandex-auth-status.query';
2
+ export * from './handle-yandex-auth-callback.query';
@@ -0,0 +1,19 @@
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("./get-yandex-auth-status.query"), exports);
18
+ __exportStar(require("./handle-yandex-auth-callback.query"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/yandex-auth/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,sEAAoD"}
@@ -0,0 +1,7 @@
1
+ export * from './yandex-auth-status.enum';
2
+ export * from './yandex-auth-request-type.enum';
3
+ export * from './yandex-auth-init-response.schema';
4
+ export * from './yandex-auth-callback-query.schema';
5
+ export * from './yandex-auth-exchange-request.schema';
6
+ export * from './yandex-auth-exchange-response.schema';
7
+ export * from './yandex-auth-status-response.schema';
@@ -0,0 +1,24 @@
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("./yandex-auth-status.enum"), exports);
18
+ __exportStar(require("./yandex-auth-request-type.enum"), exports);
19
+ __exportStar(require("./yandex-auth-init-response.schema"), exports);
20
+ __exportStar(require("./yandex-auth-callback-query.schema"), exports);
21
+ __exportStar(require("./yandex-auth-exchange-request.schema"), exports);
22
+ __exportStar(require("./yandex-auth-exchange-response.schema"), exports);
23
+ __exportStar(require("./yandex-auth-status-response.schema"), exports);
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/yandex-auth/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,kEAAgD;AAChD,qEAAmD;AACnD,sEAAoD;AACpD,wEAAsD;AACtD,yEAAuD;AACvD,uEAAqD"}
@@ -0,0 +1,6 @@
1
+ import { z } from 'zod';
2
+ export declare const YandexAuthCallbackQuerySchema: z.ZodObject<{
3
+ code: z.ZodOptional<z.ZodString>;
4
+ state: z.ZodOptional<z.ZodString>;
5
+ }, z.core.$strip>;
6
+ export type YandexAuthCallbackQueryDto = z.infer<typeof YandexAuthCallbackQuerySchema>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.YandexAuthCallbackQuerySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.YandexAuthCallbackQuerySchema = zod_1.z.object({
6
+ code: zod_1.z.string({ error: 'YandexAuthCallbackQuery.code.invalid' }).optional(),
7
+ state: zod_1.z.string({ error: 'YandexAuthCallbackQuery.state.invalid' }).optional(),
8
+ });
9
+ //# sourceMappingURL=yandex-auth-callback-query.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yandex-auth-callback-query.schema.js","sourceRoot":"","sources":["../../../../v1/yandex-auth/schemas/yandex-auth-callback-query.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAMX,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,sCAAsC,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC5E,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,uCAAuC,EAAE,CAAC,CAAC,QAAQ,EAAE;CACjF,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { z } from 'zod';
2
+ export declare const YandexAuthExchangeRequestSchema: z.ZodObject<{
3
+ uuid: z.ZodString;
4
+ exchangeToken: z.ZodString;
5
+ }, z.core.$strip>;
6
+ export type YandexAuthExchangeRequestDto = z.infer<typeof YandexAuthExchangeRequestSchema>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.YandexAuthExchangeRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.YandexAuthExchangeRequestSchema = zod_1.z.object({
6
+ uuid: zod_1.z
7
+ .string({ error: 'YandexAuthExchangeRequest.uuid.required' })
8
+ .uuid({ message: 'YandexAuthExchangeRequest.uuid.invalid' }),
9
+ exchangeToken: zod_1.z
10
+ .string({ error: 'YandexAuthExchangeRequest.exchangeToken.required' })
11
+ .min(1, { message: 'YandexAuthExchangeRequest.exchangeToken.required' })
12
+ .max(255, { message: 'YandexAuthExchangeRequest.exchangeToken.invalid' }),
13
+ });
14
+ //# sourceMappingURL=yandex-auth-exchange-request.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yandex-auth-exchange-request.schema.js","sourceRoot":"","sources":["../../../../v1/yandex-auth/schemas/yandex-auth-exchange-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,IAAI,EAAE,OAAC;SACF,MAAM,CAAC,EAAE,KAAK,EAAE,yCAAyC,EAAE,CAAC;SAC5D,IAAI,CAAC,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;IAChE,aAAa,EAAE,OAAC;SACX,MAAM,CAAC,EAAE,KAAK,EAAE,kDAAkD,EAAE,CAAC;SACrE,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,kDAAkD,EAAE,CAAC;SACvE,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,iDAAiD,EAAE,CAAC;CAChF,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { z } from 'zod';
2
+ export declare const YandexAuthExchangeResponseSchema: z.ZodObject<{
3
+ accessToken: z.ZodString;
4
+ userId: z.ZodString;
5
+ }, z.core.$strip>;
6
+ export type YandexAuthExchangeResponseDto = z.infer<typeof YandexAuthExchangeResponseSchema>;