@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.
- package/build/controllers/auth-admin.controllers.d.ts +1 -0
- package/build/controllers/auth-admin.controllers.js +5 -0
- package/build/controllers/auth-admin.controllers.js.map +1 -0
- package/build/controllers/client-file.controllers.d.ts +2 -0
- package/build/controllers/client-file.controllers.js +4 -2
- package/build/controllers/client-file.controllers.js.map +1 -1
- package/build/controllers/email-profile-admin.controllers.d.ts +1 -0
- package/build/controllers/email-profile-admin.controllers.js +5 -0
- package/build/controllers/email-profile-admin.controllers.js.map +1 -0
- package/build/controllers/index.d.ts +8 -1
- package/build/controllers/index.js +18 -2
- package/build/controllers/index.js.map +1 -1
- package/build/controllers/telegram-profile-admin.controllers.d.ts +1 -0
- package/build/controllers/telegram-profile-admin.controllers.js +5 -0
- package/build/controllers/telegram-profile-admin.controllers.js.map +1 -0
- package/build/controllers/users-admin.controllers.d.ts +1 -0
- package/build/controllers/users-admin.controllers.js +5 -0
- package/build/controllers/users-admin.controllers.js.map +1 -0
- package/build/controllers/vk-profile-admin.controllers.d.ts +1 -0
- package/build/controllers/vk-profile-admin.controllers.js +5 -0
- package/build/controllers/vk-profile-admin.controllers.js.map +1 -0
- package/build/controllers/wallet-admin.controllers.d.ts +1 -0
- package/build/controllers/wallet-admin.controllers.js +5 -0
- package/build/controllers/wallet-admin.controllers.js.map +1 -0
- package/build/controllers/yandex-profile-admin.controllers.d.ts +1 -0
- package/build/controllers/yandex-profile-admin.controllers.js +5 -0
- package/build/controllers/yandex-profile-admin.controllers.js.map +1 -0
- package/build/locales/en.d.ts +4 -0
- package/build/locales/en.js +4 -0
- package/build/locales/en.js.map +1 -1
- package/build/locales/index.d.ts +8 -0
- package/build/locales/ru.d.ts +4 -0
- package/build/locales/ru.js +4 -0
- package/build/locales/ru.js.map +1 -1
- package/build/locales/validation.d.ts +150 -0
- package/build/locales/validation.js +126 -0
- package/build/locales/validation.js.map +1 -1
- package/build/rest-api.d.ts +111 -60
- package/build/rest-api.js +111 -60
- package/build/rest-api.js.map +1 -1
- package/build/routes/auth-admin.routes.d.ts +5 -0
- package/build/routes/auth-admin.routes.js +9 -0
- package/build/routes/auth-admin.routes.js.map +1 -0
- package/build/routes/client-file.routes.d.ts +15 -4
- package/build/routes/client-file.routes.js +8 -2
- package/build/routes/client-file.routes.js.map +1 -1
- package/build/routes/email-profile-admin.routes.d.ts +5 -0
- package/build/routes/email-profile-admin.routes.js +9 -0
- package/build/routes/email-profile-admin.routes.js.map +1 -0
- package/build/routes/index.d.ts +5 -1
- package/build/routes/index.js +12 -2
- package/build/routes/index.js.map +1 -1
- package/build/routes/s2s.routes.d.ts +3 -0
- package/build/routes/s2s.routes.js +3 -0
- package/build/routes/s2s.routes.js.map +1 -1
- package/build/routes/users-admin.routes.d.ts +6 -0
- package/build/routes/users-admin.routes.js +10 -0
- package/build/routes/users-admin.routes.js.map +1 -0
- package/build/routes/wallet-admin.routes.d.ts +5 -0
- package/build/routes/wallet-admin.routes.js +9 -0
- package/build/routes/wallet-admin.routes.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/auth/admin/commands/admin-terminate-sessions.command.d.ts +22 -0
- package/build/v1/auth/admin/commands/admin-terminate-sessions.command.js +22 -0
- package/build/v1/auth/admin/commands/admin-terminate-sessions.command.js.map +1 -0
- package/build/v1/auth/admin/commands/index.d.ts +1 -0
- package/build/v1/auth/admin/commands/index.js +18 -0
- package/build/v1/auth/admin/commands/index.js.map +1 -0
- package/build/v1/auth/admin/index.d.ts +5 -0
- package/build/v1/auth/admin/index.js +25 -0
- package/build/v1/auth/admin/index.js.map +1 -0
- package/build/v1/auth/admin/queries/admin-get-user-sessions.query.d.ts +19 -0
- package/build/v1/auth/admin/queries/admin-get-user-sessions.query.js +15 -0
- package/build/v1/auth/admin/queries/admin-get-user-sessions.query.js.map +1 -0
- package/build/v1/auth/admin/queries/index.d.ts +1 -0
- package/build/v1/auth/admin/queries/index.js +18 -0
- package/build/v1/auth/admin/queries/index.js.map +1 -0
- package/build/v1/auth/admin/schemas/admin-sessions.schema.d.ts +29 -0
- package/build/v1/auth/admin/schemas/admin-sessions.schema.js +23 -0
- package/build/v1/auth/admin/schemas/admin-sessions.schema.js.map +1 -0
- package/build/v1/auth/admin/schemas/index.d.ts +1 -0
- package/build/v1/auth/admin/schemas/index.js +18 -0
- package/build/v1/auth/admin/schemas/index.js.map +1 -0
- package/build/v1/auth/commands/delete-session.command.js +1 -1
- package/build/v1/auth/commands/delete-session.command.js.map +1 -1
- package/build/v1/auth/commands/logout-all.command.js +1 -1
- package/build/v1/auth/commands/logout-all.command.js.map +1 -1
- package/build/v1/auth/commands/logout.command.js +1 -1
- package/build/v1/auth/commands/logout.command.js.map +1 -1
- package/build/v1/auth/commands/signin.command.js +1 -1
- package/build/v1/auth/commands/signin.command.js.map +1 -1
- package/build/v1/auth/commands/signup.command.d.ts +1 -0
- package/build/v1/auth/commands/signup.command.js +1 -1
- package/build/v1/auth/commands/signup.command.js.map +1 -1
- package/build/v1/auth/index.d.ts +1 -0
- package/build/v1/auth/index.js +1 -0
- package/build/v1/auth/index.js.map +1 -1
- package/build/v1/auth/queries/get-sessions.query.js +1 -1
- package/build/v1/auth/queries/get-sessions.query.js.map +1 -1
- package/build/v1/auth/schemas/signup-request.schema.d.ts +1 -0
- package/build/v1/auth/schemas/signup-request.schema.js +4 -0
- package/build/v1/auth/schemas/signup-request.schema.js.map +1 -1
- package/build/v1/client-file/commands/client-file-attach.command.d.ts +2 -0
- package/build/v1/client-file/queries/user-files-stats.query.d.ts +2 -0
- package/build/v1/client-file/schemas/client-file-attach-request.schema.d.ts +3 -0
- package/build/v1/client-file/schemas/client-file-attach-request.schema.js +17 -1
- package/build/v1/client-file/schemas/client-file-attach-request.schema.js.map +1 -1
- package/build/v1/client-file/schemas/client-file-status.enum.d.ts +1 -0
- package/build/v1/client-file/schemas/client-file-status.enum.js +1 -0
- package/build/v1/client-file/schemas/client-file-status.enum.js.map +1 -1
- package/build/v1/client-file/schemas/user-files-stats-response.schema.d.ts +2 -0
- package/build/v1/client-file/schemas/user-files-stats-response.schema.js +2 -0
- package/build/v1/client-file/schemas/user-files-stats-response.schema.js.map +1 -1
- package/build/v1/email-profile/admin/commands/admin-set-email.command.d.ts +15 -0
- package/build/v1/email-profile/admin/commands/admin-set-email.command.js +14 -0
- package/build/v1/email-profile/admin/commands/admin-set-email.command.js.map +1 -0
- package/build/v1/email-profile/admin/commands/admin-set-password.command.d.ts +24 -0
- package/build/v1/email-profile/admin/commands/admin-set-password.command.js +22 -0
- package/build/v1/email-profile/admin/commands/admin-set-password.command.js.map +1 -0
- package/build/v1/email-profile/admin/commands/index.d.ts +2 -0
- package/build/v1/email-profile/admin/commands/index.js +19 -0
- package/build/v1/email-profile/admin/commands/index.js.map +1 -0
- package/build/v1/email-profile/admin/index.d.ts +4 -0
- package/build/v1/email-profile/admin/index.js +24 -0
- package/build/v1/email-profile/admin/index.js.map +1 -0
- package/build/v1/email-profile/admin/schemas/admin-set-email.schema.d.ts +10 -0
- package/build/v1/email-profile/admin/schemas/admin-set-email.schema.js +15 -0
- package/build/v1/email-profile/admin/schemas/admin-set-email.schema.js.map +1 -0
- package/build/v1/email-profile/admin/schemas/admin-set-password.schema.d.ts +13 -0
- package/build/v1/email-profile/admin/schemas/admin-set-password.schema.js +17 -0
- package/build/v1/email-profile/admin/schemas/admin-set-password.schema.js.map +1 -0
- package/build/v1/email-profile/admin/schemas/index.d.ts +2 -0
- package/build/v1/email-profile/admin/schemas/index.js +19 -0
- package/build/v1/email-profile/admin/schemas/index.js.map +1 -0
- package/build/v1/email-profile/index.d.ts +1 -0
- package/build/v1/email-profile/index.js +18 -0
- package/build/v1/email-profile/index.js.map +1 -0
- package/build/v1/file/file.errors.d.ts +3 -0
- package/build/v1/file/file.errors.js +16 -1
- package/build/v1/file/file.errors.js.map +1 -1
- package/build/v1/index.d.ts +1 -0
- package/build/v1/index.js +1 -0
- package/build/v1/index.js.map +1 -1
- package/build/v1/s2s/commands/index.d.ts +1 -0
- package/build/v1/s2s/commands/index.js +1 -0
- package/build/v1/s2s/commands/index.js.map +1 -1
- package/build/v1/s2s/commands/migrate-client-file-owner.command.d.ts +15 -0
- package/build/v1/s2s/commands/migrate-client-file-owner.command.js +14 -0
- package/build/v1/s2s/commands/migrate-client-file-owner.command.js.map +1 -0
- package/build/v1/s2s/queries/check-client-file-quota.query.d.ts +18 -0
- package/build/v1/s2s/queries/check-client-file-quota.query.js +15 -0
- package/build/v1/s2s/queries/check-client-file-quota.query.js.map +1 -0
- package/build/v1/s2s/queries/index.d.ts +2 -0
- package/build/v1/s2s/queries/index.js +2 -0
- package/build/v1/s2s/queries/index.js.map +1 -1
- package/build/v1/s2s/queries/verify-unreg-token.query.d.ts +16 -0
- package/build/v1/s2s/queries/verify-unreg-token.query.js +15 -0
- package/build/v1/s2s/queries/verify-unreg-token.query.js.map +1 -0
- package/build/v1/s2s/schemas/index.d.ts +6 -0
- package/build/v1/s2s/schemas/index.js +6 -0
- package/build/v1/s2s/schemas/index.js.map +1 -1
- package/build/v1/s2s/schemas/s2s-check-client-file-quota-request.schema.d.ts +8 -0
- package/build/v1/s2s/schemas/s2s-check-client-file-quota-request.schema.js +13 -0
- package/build/v1/s2s/schemas/s2s-check-client-file-quota-request.schema.js.map +1 -0
- package/build/v1/s2s/schemas/s2s-check-client-file-quota-response.schema.d.ts +9 -0
- package/build/v1/s2s/schemas/s2s-check-client-file-quota-response.schema.js +12 -0
- package/build/v1/s2s/schemas/s2s-check-client-file-quota-response.schema.js.map +1 -0
- package/build/v1/s2s/schemas/s2s-migrate-client-file-owner-request.schema.d.ts +6 -0
- package/build/v1/s2s/schemas/s2s-migrate-client-file-owner-request.schema.js +14 -0
- package/build/v1/s2s/schemas/s2s-migrate-client-file-owner-request.schema.js.map +1 -0
- package/build/v1/s2s/schemas/s2s-migrate-client-file-owner-response.schema.d.ts +5 -0
- package/build/v1/s2s/schemas/s2s-migrate-client-file-owner-response.schema.js +8 -0
- package/build/v1/s2s/schemas/s2s-migrate-client-file-owner-response.schema.js.map +1 -0
- package/build/v1/s2s/schemas/s2s-verify-unreg-token-request.schema.d.ts +5 -0
- package/build/v1/s2s/schemas/s2s-verify-unreg-token-request.schema.js +9 -0
- package/build/v1/s2s/schemas/s2s-verify-unreg-token-request.schema.js.map +1 -0
- package/build/v1/s2s/schemas/s2s-verify-unreg-token-response.schema.d.ts +5 -0
- package/build/v1/s2s/schemas/s2s-verify-unreg-token-response.schema.js +9 -0
- package/build/v1/s2s/schemas/s2s-verify-unreg-token-response.schema.js.map +1 -0
- package/build/v1/shared/index.d.ts +1 -0
- package/build/v1/shared/index.js +1 -0
- package/build/v1/shared/index.js.map +1 -1
- package/build/v1/shared/owner-type.enum.d.ts +4 -0
- package/build/v1/shared/owner-type.enum.js +9 -0
- package/build/v1/shared/owner-type.enum.js.map +1 -0
- package/build/v1/telegram-profile/admin/commands/admin-unlink-telegram.command.d.ts +12 -0
- package/build/v1/telegram-profile/admin/commands/admin-unlink-telegram.command.js +15 -0
- package/build/v1/telegram-profile/admin/commands/admin-unlink-telegram.command.js.map +1 -0
- package/build/v1/telegram-profile/admin/commands/index.d.ts +1 -0
- package/build/v1/telegram-profile/admin/commands/index.js +18 -0
- package/build/v1/telegram-profile/admin/commands/index.js.map +1 -0
- package/build/v1/telegram-profile/admin/index.d.ts +3 -0
- package/build/v1/telegram-profile/admin/index.js +22 -0
- package/build/v1/telegram-profile/admin/index.js.map +1 -0
- package/build/v1/telegram-profile/admin/schemas/admin-unlink.schema.d.ts +5 -0
- package/build/v1/telegram-profile/admin/schemas/admin-unlink.schema.js +9 -0
- package/build/v1/telegram-profile/admin/schemas/admin-unlink.schema.js.map +1 -0
- package/build/v1/telegram-profile/admin/schemas/index.d.ts +1 -0
- package/build/v1/telegram-profile/admin/schemas/index.js +18 -0
- package/build/v1/telegram-profile/admin/schemas/index.js.map +1 -0
- package/build/v1/telegram-profile/commands/link-telegram.command.js +1 -1
- package/build/v1/telegram-profile/commands/link-telegram.command.js.map +1 -1
- package/build/v1/telegram-profile/commands/unlink-telegram.command.js +1 -1
- package/build/v1/telegram-profile/commands/unlink-telegram.command.js.map +1 -1
- package/build/v1/telegram-profile/index.d.ts +1 -0
- package/build/v1/telegram-profile/index.js +1 -0
- package/build/v1/telegram-profile/index.js.map +1 -1
- package/build/v1/telegram-profile/queries/get-telegram-link-status.query.js +1 -1
- package/build/v1/telegram-profile/queries/get-telegram-link-status.query.js.map +1 -1
- package/build/v1/telegram-profile/queries/get-telegram-profile.query.js +1 -1
- package/build/v1/telegram-profile/queries/get-telegram-profile.query.js.map +1 -1
- package/build/v1/users/admin/commands/admin-delete-user.command.d.ts +12 -0
- package/build/v1/users/admin/commands/admin-delete-user.command.js +17 -0
- package/build/v1/users/admin/commands/admin-delete-user.command.js.map +1 -0
- package/build/v1/users/admin/commands/admin-update-user.command.d.ts +26 -0
- package/build/v1/users/admin/commands/admin-update-user.command.js +14 -0
- package/build/v1/users/admin/commands/admin-update-user.command.js.map +1 -0
- package/build/v1/users/admin/commands/index.d.ts +2 -0
- package/build/v1/users/admin/commands/index.js +19 -0
- package/build/v1/users/admin/commands/index.js.map +1 -0
- package/build/v1/users/admin/index.d.ts +6 -0
- package/build/v1/users/admin/index.js +26 -0
- package/build/v1/users/admin/index.js.map +1 -0
- package/build/v1/users/admin/queries/admin-get-user-details.query.d.ts +146 -0
- package/build/v1/users/admin/queries/admin-get-user-details.query.js +15 -0
- package/build/v1/users/admin/queries/admin-get-user-details.query.js.map +1 -0
- package/build/v1/users/admin/queries/admin-list-users.query.d.ts +40 -0
- package/build/v1/users/admin/queries/admin-list-users.query.js +14 -0
- package/build/v1/users/admin/queries/admin-list-users.query.js.map +1 -0
- package/build/v1/users/admin/queries/index.d.ts +2 -0
- package/build/v1/users/admin/queries/index.js +19 -0
- package/build/v1/users/admin/queries/index.js.map +1 -0
- package/build/v1/users/admin/schemas/admin-update-user.schema.d.ts +23 -0
- package/build/v1/users/admin/schemas/admin-update-user.schema.js +18 -0
- package/build/v1/users/admin/schemas/admin-update-user.schema.js.map +1 -0
- package/build/v1/users/admin/schemas/admin-user-details.schema.d.ts +404 -0
- package/build/v1/users/admin/schemas/admin-user-details.schema.js +77 -0
- package/build/v1/users/admin/schemas/admin-user-details.schema.js.map +1 -0
- package/build/v1/users/admin/schemas/admin-user-list.schema.d.ts +52 -0
- package/build/v1/users/admin/schemas/admin-user-list.schema.js +58 -0
- package/build/v1/users/admin/schemas/admin-user-list.schema.js.map +1 -0
- package/build/v1/users/admin/schemas/admin-user-sort.enum.d.ts +9 -0
- package/build/v1/users/admin/schemas/admin-user-sort.enum.js +15 -0
- package/build/v1/users/admin/schemas/admin-user-sort.enum.js.map +1 -0
- package/build/v1/users/admin/schemas/index.d.ts +4 -0
- package/build/v1/users/admin/schemas/index.js +21 -0
- package/build/v1/users/admin/schemas/index.js.map +1 -0
- package/build/v1/users/admin/users-admin.errors.d.ts +5 -0
- package/build/v1/users/admin/users-admin.errors.js +14 -0
- package/build/v1/users/admin/users-admin.errors.js.map +1 -0
- package/build/v1/users/commands/confirm-email-verification.command.js +1 -1
- package/build/v1/users/commands/confirm-email-verification.command.js.map +1 -1
- package/build/v1/users/commands/delete-account-complete.command.js +1 -1
- package/build/v1/users/commands/delete-account-complete.command.js.map +1 -1
- package/build/v1/users/commands/delete-account-start.command.js +1 -1
- package/build/v1/users/commands/delete-account-start.command.js.map +1 -1
- package/build/v1/users/commands/delete-account-verify.command.js +1 -1
- package/build/v1/users/commands/delete-account-verify.command.js.map +1 -1
- package/build/v1/users/commands/email-change-complete.command.js +1 -1
- package/build/v1/users/commands/email-change-complete.command.js.map +1 -1
- package/build/v1/users/commands/email-change-start.command.js +1 -1
- package/build/v1/users/commands/email-change-start.command.js.map +1 -1
- package/build/v1/users/commands/email-change-verify.command.js +1 -1
- package/build/v1/users/commands/email-change-verify.command.js.map +1 -1
- package/build/v1/users/commands/password-change-complete.command.js +1 -1
- package/build/v1/users/commands/password-change-complete.command.js.map +1 -1
- package/build/v1/users/commands/password-change-start.command.js +1 -1
- package/build/v1/users/commands/password-change-start.command.js.map +1 -1
- package/build/v1/users/commands/password-change-verify.command.js +1 -1
- package/build/v1/users/commands/password-change-verify.command.js.map +1 -1
- package/build/v1/users/commands/password-reset-confirm.command.js +1 -1
- package/build/v1/users/commands/password-reset-confirm.command.js.map +1 -1
- package/build/v1/users/commands/password-reset-request.command.js +1 -1
- package/build/v1/users/commands/password-reset-request.command.js.map +1 -1
- package/build/v1/users/commands/resend-email-verification.command.js +1 -1
- package/build/v1/users/commands/resend-email-verification.command.js.map +1 -1
- package/build/v1/users/commands/setup-email-complete.command.js +1 -1
- package/build/v1/users/commands/setup-email-complete.command.js.map +1 -1
- package/build/v1/users/commands/setup-email-verify.command.js +1 -1
- package/build/v1/users/commands/setup-email-verify.command.js.map +1 -1
- package/build/v1/users/commands/setup-email.command.js +1 -1
- package/build/v1/users/commands/setup-email.command.js.map +1 -1
- package/build/v1/users/commands/setup-password-complete.command.js +1 -1
- package/build/v1/users/commands/setup-password-complete.command.js.map +1 -1
- package/build/v1/users/commands/setup-password-verify.command.js +1 -1
- package/build/v1/users/commands/setup-password-verify.command.js.map +1 -1
- package/build/v1/users/commands/setup-password.command.js +1 -1
- package/build/v1/users/commands/setup-password.command.js.map +1 -1
- package/build/v1/users/commands/update-profile.command.js +1 -1
- package/build/v1/users/commands/update-profile.command.js.map +1 -1
- package/build/v1/users/index.d.ts +1 -0
- package/build/v1/users/index.js +1 -0
- package/build/v1/users/index.js.map +1 -1
- package/build/v1/users/queries/delete-account-status.query.js +1 -1
- package/build/v1/users/queries/delete-account-status.query.js.map +1 -1
- package/build/v1/users/queries/email-change-status.query.js +1 -1
- package/build/v1/users/queries/email-change-status.query.js.map +1 -1
- package/build/v1/users/queries/get-current-user.query.js +1 -1
- package/build/v1/users/queries/get-current-user.query.js.map +1 -1
- package/build/v1/users/queries/get-setup-status.query.js +1 -1
- package/build/v1/users/queries/get-setup-status.query.js.map +1 -1
- package/build/v1/users/queries/password-change-status.query.js +1 -1
- package/build/v1/users/queries/password-change-status.query.js.map +1 -1
- package/build/v1/users/queries/setup-email-status.query.js +1 -1
- package/build/v1/users/queries/setup-email-status.query.js.map +1 -1
- package/build/v1/users/queries/setup-password-status.query.js +1 -1
- package/build/v1/users/queries/setup-password-status.query.js.map +1 -1
- package/build/v1/vk-profile/admin/commands/admin-unlink-vk.command.d.ts +12 -0
- package/build/v1/vk-profile/admin/commands/admin-unlink-vk.command.js +15 -0
- package/build/v1/vk-profile/admin/commands/admin-unlink-vk.command.js.map +1 -0
- package/build/v1/vk-profile/admin/commands/index.d.ts +1 -0
- package/build/v1/vk-profile/admin/commands/index.js +18 -0
- package/build/v1/vk-profile/admin/commands/index.js.map +1 -0
- package/build/v1/vk-profile/admin/index.d.ts +3 -0
- package/build/v1/vk-profile/admin/index.js +22 -0
- package/build/v1/vk-profile/admin/index.js.map +1 -0
- package/build/v1/vk-profile/admin/schemas/admin-unlink.schema.d.ts +5 -0
- package/build/v1/vk-profile/admin/schemas/admin-unlink.schema.js +9 -0
- package/build/v1/vk-profile/admin/schemas/admin-unlink.schema.js.map +1 -0
- package/build/v1/vk-profile/admin/schemas/index.d.ts +1 -0
- package/build/v1/vk-profile/admin/schemas/index.js +18 -0
- package/build/v1/vk-profile/admin/schemas/index.js.map +1 -0
- package/build/v1/vk-profile/commands/link-vk.command.js +1 -1
- package/build/v1/vk-profile/commands/link-vk.command.js.map +1 -1
- package/build/v1/vk-profile/commands/unlink-vk.command.js +1 -1
- package/build/v1/vk-profile/commands/unlink-vk.command.js.map +1 -1
- package/build/v1/vk-profile/index.d.ts +1 -0
- package/build/v1/vk-profile/index.js +1 -0
- package/build/v1/vk-profile/index.js.map +1 -1
- package/build/v1/vk-profile/queries/get-vk-link-status.query.js +1 -1
- package/build/v1/vk-profile/queries/get-vk-link-status.query.js.map +1 -1
- package/build/v1/vk-profile/queries/get-vk-profile.query.js +1 -1
- package/build/v1/vk-profile/queries/get-vk-profile.query.js.map +1 -1
- package/build/v1/wallet/admin/commands/admin-adjust-balance.command.d.ts +21 -0
- package/build/v1/wallet/admin/commands/admin-adjust-balance.command.js +14 -0
- package/build/v1/wallet/admin/commands/admin-adjust-balance.command.js.map +1 -0
- package/build/v1/wallet/admin/commands/index.d.ts +1 -0
- package/build/v1/wallet/admin/commands/index.js +18 -0
- package/build/v1/wallet/admin/commands/index.js.map +1 -0
- package/build/v1/wallet/admin/index.d.ts +5 -0
- package/build/v1/wallet/admin/index.js +25 -0
- package/build/v1/wallet/admin/index.js.map +1 -0
- package/build/v1/wallet/admin/queries/admin-get-wallet-balance.query.d.ts +33 -0
- package/build/v1/wallet/admin/queries/admin-get-wallet-balance.query.js +15 -0
- package/build/v1/wallet/admin/queries/admin-get-wallet-balance.query.js.map +1 -0
- package/build/v1/wallet/admin/queries/admin-list-wallet-transactions.query.d.ts +34 -0
- package/build/v1/wallet/admin/queries/admin-list-wallet-transactions.query.js +14 -0
- package/build/v1/wallet/admin/queries/admin-list-wallet-transactions.query.js.map +1 -0
- package/build/v1/wallet/admin/queries/index.d.ts +2 -0
- package/build/v1/wallet/admin/queries/index.js +19 -0
- package/build/v1/wallet/admin/queries/index.js.map +1 -0
- package/build/v1/wallet/admin/schemas/admin-adjustment-direction.enum.d.ts +4 -0
- package/build/v1/wallet/admin/schemas/admin-adjustment-direction.enum.js +9 -0
- package/build/v1/wallet/admin/schemas/admin-adjustment-direction.enum.js.map +1 -0
- package/build/v1/wallet/admin/schemas/admin-adjustment.schema.d.ts +17 -0
- package/build/v1/wallet/admin/schemas/admin-adjustment.schema.js +37 -0
- package/build/v1/wallet/admin/schemas/admin-adjustment.schema.js.map +1 -0
- package/build/v1/wallet/admin/schemas/admin-balance.schema.d.ts +51 -0
- package/build/v1/wallet/admin/schemas/admin-balance.schema.js +9 -0
- package/build/v1/wallet/admin/schemas/admin-balance.schema.js.map +1 -0
- package/build/v1/wallet/admin/schemas/admin-transactions.schema.d.ts +49 -0
- package/build/v1/wallet/admin/schemas/admin-transactions.schema.js +43 -0
- package/build/v1/wallet/admin/schemas/admin-transactions.schema.js.map +1 -0
- package/build/v1/wallet/admin/schemas/index.d.ts +4 -0
- package/build/v1/wallet/admin/schemas/index.js +21 -0
- package/build/v1/wallet/admin/schemas/index.js.map +1 -0
- package/build/v1/wallet/index.d.ts +1 -0
- package/build/v1/wallet/index.js +1 -0
- package/build/v1/wallet/index.js.map +1 -1
- package/build/v1/wallet/queries/get-balance-summary.query.js +1 -1
- package/build/v1/wallet/queries/get-balance-summary.query.js.map +1 -1
- package/build/v1/wallet/queries/list-wallet-events.query.js +1 -1
- package/build/v1/wallet/queries/list-wallet-events.query.js.map +1 -1
- package/build/v1/yandex-profile/admin/commands/admin-unlink-yandex.command.d.ts +12 -0
- package/build/v1/yandex-profile/admin/commands/admin-unlink-yandex.command.js +15 -0
- package/build/v1/yandex-profile/admin/commands/admin-unlink-yandex.command.js.map +1 -0
- package/build/v1/yandex-profile/admin/commands/index.d.ts +1 -0
- package/build/v1/yandex-profile/admin/commands/index.js +18 -0
- package/build/v1/yandex-profile/admin/commands/index.js.map +1 -0
- package/build/v1/yandex-profile/admin/index.d.ts +3 -0
- package/build/v1/yandex-profile/admin/index.js +22 -0
- package/build/v1/yandex-profile/admin/index.js.map +1 -0
- package/build/v1/yandex-profile/admin/schemas/admin-unlink.schema.d.ts +5 -0
- package/build/v1/yandex-profile/admin/schemas/admin-unlink.schema.js +9 -0
- package/build/v1/yandex-profile/admin/schemas/admin-unlink.schema.js.map +1 -0
- package/build/v1/yandex-profile/admin/schemas/index.d.ts +1 -0
- package/build/v1/yandex-profile/admin/schemas/index.js +18 -0
- package/build/v1/yandex-profile/admin/schemas/index.js.map +1 -0
- package/build/v1/yandex-profile/commands/link-yandex.command.js +1 -1
- package/build/v1/yandex-profile/commands/link-yandex.command.js.map +1 -1
- package/build/v1/yandex-profile/commands/unlink-yandex.command.js +1 -1
- package/build/v1/yandex-profile/commands/unlink-yandex.command.js.map +1 -1
- package/build/v1/yandex-profile/index.d.ts +1 -0
- package/build/v1/yandex-profile/index.js +1 -0
- package/build/v1/yandex-profile/index.js.map +1 -1
- package/build/v1/yandex-profile/queries/get-yandex-link-status.query.js +1 -1
- package/build/v1/yandex-profile/queries/get-yandex-link-status.query.js.map +1 -1
- package/build/v1/yandex-profile/queries/get-yandex-profile.query.js +1 -1
- package/build/v1/yandex-profile/queries/get-yandex-profile.query.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method.enum';
|
|
3
|
+
export declare namespace AdminGetUserDetailsQuery {
|
|
4
|
+
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
user: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
createdAt: z.ZodString;
|
|
10
|
+
status: z.ZodEnum<typeof import("../..").UserStatus>;
|
|
11
|
+
role: z.ZodEnum<typeof import("../../..").UserRole>;
|
|
12
|
+
registrationIp: z.ZodNullable<z.ZodString>;
|
|
13
|
+
updatedAt: z.ZodString;
|
|
14
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
email: z.ZodNullable<z.ZodObject<{
|
|
17
|
+
email: z.ZodString;
|
|
18
|
+
status: z.ZodEnum<typeof import("../..").EmailProfileStatus>;
|
|
19
|
+
verifiedAt: z.ZodNullable<z.ZodString>;
|
|
20
|
+
hasPassword: z.ZodBoolean;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
profiles: z.ZodObject<{
|
|
23
|
+
telegram: z.ZodNullable<z.ZodObject<{
|
|
24
|
+
telegramId: z.ZodString;
|
|
25
|
+
username: z.ZodNullable<z.ZodString>;
|
|
26
|
+
firstName: z.ZodString;
|
|
27
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
28
|
+
isPremium: z.ZodBoolean;
|
|
29
|
+
languageCode: z.ZodNullable<z.ZodString>;
|
|
30
|
+
deliveryStatus: z.ZodEnum<typeof import("../../..").TelegramDeliveryStatus>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
vk: z.ZodNullable<z.ZodObject<{
|
|
33
|
+
vkId: z.ZodString;
|
|
34
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
35
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
36
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
37
|
+
sex: z.ZodNullable<z.ZodNumber>;
|
|
38
|
+
verified: z.ZodNullable<z.ZodBoolean>;
|
|
39
|
+
birthday: z.ZodNullable<z.ZodString>;
|
|
40
|
+
email: z.ZodNullable<z.ZodString>;
|
|
41
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
42
|
+
createdAt: z.ZodString;
|
|
43
|
+
updatedAt: z.ZodString;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
yandex: z.ZodNullable<z.ZodObject<{
|
|
46
|
+
yandexId: z.ZodString;
|
|
47
|
+
login: z.ZodNullable<z.ZodString>;
|
|
48
|
+
clientId: z.ZodNullable<z.ZodString>;
|
|
49
|
+
psuid: z.ZodNullable<z.ZodString>;
|
|
50
|
+
defaultEmail: z.ZodNullable<z.ZodString>;
|
|
51
|
+
emails: z.ZodArray<z.ZodString>;
|
|
52
|
+
oldSocialLogin: z.ZodNullable<z.ZodString>;
|
|
53
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
54
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
55
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
56
|
+
realName: z.ZodNullable<z.ZodString>;
|
|
57
|
+
sex: z.ZodNullable<z.ZodString>;
|
|
58
|
+
birthday: z.ZodNullable<z.ZodString>;
|
|
59
|
+
isAvatarEmpty: z.ZodNullable<z.ZodBoolean>;
|
|
60
|
+
defaultAvatarId: z.ZodNullable<z.ZodString>;
|
|
61
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
62
|
+
defaultPhoneId: z.ZodNullable<z.ZodString>;
|
|
63
|
+
defaultPhoneNumber: z.ZodNullable<z.ZodString>;
|
|
64
|
+
createdAt: z.ZodString;
|
|
65
|
+
updatedAt: z.ZodString;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
history: z.ZodObject<{
|
|
69
|
+
email: z.ZodArray<z.ZodObject<{
|
|
70
|
+
email: z.ZodString;
|
|
71
|
+
status: z.ZodEnum<typeof import("../..").EmailProfileStatus>;
|
|
72
|
+
verifiedAt: z.ZodNullable<z.ZodString>;
|
|
73
|
+
hasPassword: z.ZodBoolean;
|
|
74
|
+
uuid: z.ZodString;
|
|
75
|
+
createdAt: z.ZodString;
|
|
76
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
telegram: z.ZodArray<z.ZodObject<{
|
|
79
|
+
uuid: z.ZodString;
|
|
80
|
+
status: z.ZodEnum<typeof import("../..").AuthProfileStatus>;
|
|
81
|
+
profile: z.ZodObject<{
|
|
82
|
+
telegramId: z.ZodString;
|
|
83
|
+
username: z.ZodNullable<z.ZodString>;
|
|
84
|
+
firstName: z.ZodString;
|
|
85
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
86
|
+
isPremium: z.ZodBoolean;
|
|
87
|
+
languageCode: z.ZodNullable<z.ZodString>;
|
|
88
|
+
deliveryStatus: z.ZodEnum<typeof import("../../..").TelegramDeliveryStatus>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
createdAt: z.ZodString;
|
|
91
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
vk: z.ZodArray<z.ZodObject<{
|
|
94
|
+
uuid: z.ZodString;
|
|
95
|
+
status: z.ZodEnum<typeof import("../..").AuthProfileStatus>;
|
|
96
|
+
profile: z.ZodObject<{
|
|
97
|
+
vkId: z.ZodString;
|
|
98
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
99
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
100
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
101
|
+
sex: z.ZodNullable<z.ZodNumber>;
|
|
102
|
+
verified: z.ZodNullable<z.ZodBoolean>;
|
|
103
|
+
birthday: z.ZodNullable<z.ZodString>;
|
|
104
|
+
email: z.ZodNullable<z.ZodString>;
|
|
105
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
106
|
+
createdAt: z.ZodString;
|
|
107
|
+
updatedAt: z.ZodString;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
createdAt: z.ZodString;
|
|
110
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
yandex: z.ZodArray<z.ZodObject<{
|
|
113
|
+
uuid: z.ZodString;
|
|
114
|
+
status: z.ZodEnum<typeof import("../..").AuthProfileStatus>;
|
|
115
|
+
profile: z.ZodObject<{
|
|
116
|
+
yandexId: z.ZodString;
|
|
117
|
+
login: z.ZodNullable<z.ZodString>;
|
|
118
|
+
clientId: z.ZodNullable<z.ZodString>;
|
|
119
|
+
psuid: z.ZodNullable<z.ZodString>;
|
|
120
|
+
defaultEmail: z.ZodNullable<z.ZodString>;
|
|
121
|
+
emails: z.ZodArray<z.ZodString>;
|
|
122
|
+
oldSocialLogin: z.ZodNullable<z.ZodString>;
|
|
123
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
124
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
125
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
126
|
+
realName: z.ZodNullable<z.ZodString>;
|
|
127
|
+
sex: z.ZodNullable<z.ZodString>;
|
|
128
|
+
birthday: z.ZodNullable<z.ZodString>;
|
|
129
|
+
isAvatarEmpty: z.ZodNullable<z.ZodBoolean>;
|
|
130
|
+
defaultAvatarId: z.ZodNullable<z.ZodString>;
|
|
131
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
132
|
+
defaultPhoneId: z.ZodNullable<z.ZodString>;
|
|
133
|
+
defaultPhoneNumber: z.ZodNullable<z.ZodString>;
|
|
134
|
+
createdAt: z.ZodString;
|
|
135
|
+
updatedAt: z.ZodString;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
createdAt: z.ZodString;
|
|
138
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
139
|
+
}, z.core.$strip>>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
const URL: (userId: string) => string;
|
|
143
|
+
const METHOD = HttpMethod.GET;
|
|
144
|
+
type RequestType = z.infer<typeof Request>;
|
|
145
|
+
type ResponseType = z.infer<typeof Response>;
|
|
146
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminGetUserDetailsQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../schemas");
|
|
6
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
7
|
+
const http_method_enum_1 = require("../../../../shared/http-method.enum");
|
|
8
|
+
var AdminGetUserDetailsQuery;
|
|
9
|
+
(function (AdminGetUserDetailsQuery) {
|
|
10
|
+
AdminGetUserDetailsQuery.Request = zod_1.z.object({});
|
|
11
|
+
AdminGetUserDetailsQuery.Response = schemas_1.AdminUserDetailsResponseSchema;
|
|
12
|
+
AdminGetUserDetailsQuery.URL = (userId) => rest_api_1.REST_API.V1.USERS.ADMIN.DETAILS(userId);
|
|
13
|
+
AdminGetUserDetailsQuery.METHOD = http_method_enum_1.HttpMethod.GET;
|
|
14
|
+
})(AdminGetUserDetailsQuery || (exports.AdminGetUserDetailsQuery = AdminGetUserDetailsQuery = {}));
|
|
15
|
+
//# sourceMappingURL=admin-get-user-details.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-get-user-details.query.js","sourceRoot":"","sources":["../../../../../v1/users/admin/queries/admin-get-user-details.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAA4D;AAC5D,mDAAgD;AAChD,0EAAiE;AAEjE,IAAiB,wBAAwB,CAOxC;AAPD,WAAiB,wBAAwB;IACxB,gCAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,iCAAQ,GAAG,wCAA8B,CAAC;IAC1C,4BAAG,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAClE,+BAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;AAGzC,CAAC,EAPgB,wBAAwB,wCAAxB,wBAAwB,QAOxC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method.enum';
|
|
3
|
+
export declare namespace AdminListUsersQuery {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
q: z.ZodOptional<z.ZodString>;
|
|
6
|
+
role: z.ZodOptional<z.ZodEnum<typeof import("../../..").UserRole>>;
|
|
7
|
+
status: z.ZodOptional<z.ZodEnum<typeof import("../..").UserStatus>>;
|
|
8
|
+
hasTelegram: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
9
|
+
hasVk: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
10
|
+
hasYandex: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
11
|
+
createdFrom: z.ZodOptional<z.ZodString>;
|
|
12
|
+
createdTo: z.ZodOptional<z.ZodString>;
|
|
13
|
+
sortBy: z.ZodDefault<z.ZodEnum<typeof import("../schemas").AdminUserSortField>>;
|
|
14
|
+
sortOrder: z.ZodDefault<z.ZodEnum<typeof import("../schemas").AdminUserSortOrder>>;
|
|
15
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
16
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
const Response: z.ZodObject<{
|
|
19
|
+
items: z.ZodArray<z.ZodObject<{
|
|
20
|
+
uuid: z.ZodString;
|
|
21
|
+
email: z.ZodNullable<z.ZodString>;
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
status: z.ZodEnum<typeof import("../..").UserStatus>;
|
|
24
|
+
createdAt: z.ZodString;
|
|
25
|
+
role: z.ZodEnum<typeof import("../../..").UserRole>;
|
|
26
|
+
registrationIp: z.ZodNullable<z.ZodString>;
|
|
27
|
+
hasTelegram: z.ZodBoolean;
|
|
28
|
+
hasVk: z.ZodBoolean;
|
|
29
|
+
hasYandex: z.ZodBoolean;
|
|
30
|
+
balanceAvailable: z.ZodString;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
total: z.ZodNumber;
|
|
33
|
+
page: z.ZodNumber;
|
|
34
|
+
limit: z.ZodNumber;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
const URL: "/api/v1/admin/users";
|
|
37
|
+
const METHOD = HttpMethod.GET;
|
|
38
|
+
type RequestType = z.infer<typeof Request>;
|
|
39
|
+
type ResponseType = z.infer<typeof Response>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminListUsersQuery = void 0;
|
|
4
|
+
const schemas_1 = require("../schemas");
|
|
5
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
6
|
+
const http_method_enum_1 = require("../../../../shared/http-method.enum");
|
|
7
|
+
var AdminListUsersQuery;
|
|
8
|
+
(function (AdminListUsersQuery) {
|
|
9
|
+
AdminListUsersQuery.Request = schemas_1.AdminListUsersRequestSchema;
|
|
10
|
+
AdminListUsersQuery.Response = schemas_1.AdminListUsersResponseSchema;
|
|
11
|
+
AdminListUsersQuery.URL = rest_api_1.REST_API.V1.USERS.ADMIN.SEARCH;
|
|
12
|
+
AdminListUsersQuery.METHOD = http_method_enum_1.HttpMethod.GET;
|
|
13
|
+
})(AdminListUsersQuery || (exports.AdminListUsersQuery = AdminListUsersQuery = {}));
|
|
14
|
+
//# sourceMappingURL=admin-list-users.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-list-users.query.js","sourceRoot":"","sources":["../../../../../v1/users/admin/queries/admin-list-users.query.ts"],"names":[],"mappings":";;;AACA,wCAAuF;AACvF,mDAAgD;AAChD,0EAAiE;AAEjE,IAAiB,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IACnB,2BAAO,GAAG,qCAA2B,CAAC;IACtC,4BAAQ,GAAG,sCAA4B,CAAC;IACxC,uBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;IACrC,0BAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;AAGzC,CAAC,EAPgB,mBAAmB,mCAAnB,mBAAmB,QAOnC"}
|
|
@@ -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("./admin-list-users.query"), exports);
|
|
18
|
+
__exportStar(require("./admin-get-user-details.query"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../v1/users/admin/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,iEAA+C"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { UserStatus } from '../../schemas/user-status.enum';
|
|
3
|
+
import { UserRole } from '../../../auth/schemas/user-role.enum';
|
|
4
|
+
export declare const AdminUpdateUserRequestSchema: z.ZodObject<{
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
role: z.ZodOptional<z.ZodEnum<typeof UserRole>>;
|
|
7
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
ACTIVE: UserStatus.ACTIVE;
|
|
9
|
+
BANNED: UserStatus.BANNED;
|
|
10
|
+
}>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type AdminUpdateUserRequest = z.infer<typeof AdminUpdateUserRequestSchema>;
|
|
13
|
+
export declare const AdminUpdateUserResponseSchema: z.ZodObject<{
|
|
14
|
+
uuid: z.ZodString;
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
createdAt: z.ZodString;
|
|
17
|
+
status: z.ZodEnum<typeof UserStatus>;
|
|
18
|
+
role: z.ZodEnum<typeof UserRole>;
|
|
19
|
+
registrationIp: z.ZodNullable<z.ZodString>;
|
|
20
|
+
updatedAt: z.ZodString;
|
|
21
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type AdminUpdateUserResponse = z.infer<typeof AdminUpdateUserResponseSchema>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminUpdateUserResponseSchema = exports.AdminUpdateUserRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const user_status_enum_1 = require("../../schemas/user-status.enum");
|
|
6
|
+
const user_role_enum_1 = require("../../../auth/schemas/user-role.enum");
|
|
7
|
+
const admin_user_details_schema_1 = require("./admin-user-details.schema");
|
|
8
|
+
exports.AdminUpdateUserRequestSchema = zod_1.z.object({
|
|
9
|
+
name: zod_1.z
|
|
10
|
+
.string({ error: 'AdminUpdateUserRequest.name.invalid' })
|
|
11
|
+
.min(1, { message: 'AdminUpdateUserRequest.name.min' })
|
|
12
|
+
.max(100, { message: 'AdminUpdateUserRequest.name.max' })
|
|
13
|
+
.optional(),
|
|
14
|
+
role: zod_1.z.enum(user_role_enum_1.UserRole).optional(),
|
|
15
|
+
status: zod_1.z.enum([user_status_enum_1.UserStatus.ACTIVE, user_status_enum_1.UserStatus.BANNED]).optional(),
|
|
16
|
+
});
|
|
17
|
+
exports.AdminUpdateUserResponseSchema = admin_user_details_schema_1.AdminUserCoreSchema;
|
|
18
|
+
//# sourceMappingURL=admin-update-user.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-update-user.schema.js","sourceRoot":"","sources":["../../../../../v1/users/admin/schemas/admin-update-user.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qEAA4D;AAC5D,yEAAgE;AAChE,2EAAkE;AAUrD,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,OAAC;SACF,MAAM,CAAC,EAAE,KAAK,EAAE,qCAAqC,EAAE,CAAC;SACxD,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;SACtD,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;SACxD,QAAQ,EAAE;IACf,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,yBAAQ,CAAC,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,6BAAU,CAAC,MAAM,EAAE,6BAAU,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE;CACpE,CAAC,CAAC;AAGU,QAAA,6BAA6B,GAAG,+CAAmB,CAAC"}
|