@remnawave/backend-contract 0.4.5 → 0.5.1
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/backend/api/controllers/api-tokens.d.ts +3 -3
- package/build/backend/api/controllers/api-tokens.d.ts.map +1 -1
- package/build/backend/api/controllers/api-tokens.js +3 -3
- package/build/backend/api/controllers/hosts.d.ts +9 -7
- package/build/backend/api/controllers/hosts.d.ts.map +1 -1
- package/build/backend/api/controllers/hosts.js +10 -8
- package/build/backend/api/controllers/hwid.d.ts +2 -2
- package/build/backend/api/controllers/hwid.d.ts.map +1 -1
- package/build/backend/api/controllers/hwid.js +2 -2
- package/build/backend/api/controllers/inbounds.d.ts +0 -1
- package/build/backend/api/controllers/inbounds.d.ts.map +1 -1
- package/build/backend/api/controllers/inbounds.js +0 -1
- package/build/backend/api/controllers/keygen.d.ts +1 -1
- package/build/backend/api/controllers/keygen.js +1 -1
- package/build/backend/api/controllers/nodes.d.ts +15 -12
- package/build/backend/api/controllers/nodes.d.ts.map +1 -1
- package/build/backend/api/controllers/nodes.js +16 -13
- package/build/backend/api/controllers/subscription-settings.d.ts +2 -2
- package/build/backend/api/controllers/subscription-settings.js +2 -2
- package/build/backend/api/controllers/subscription-template.d.ts +2 -2
- package/build/backend/api/controllers/subscription-template.d.ts.map +1 -1
- package/build/backend/api/controllers/subscription-template.js +2 -2
- package/build/backend/api/controllers/subscription.d.ts +1 -1
- package/build/backend/api/controllers/subscription.d.ts.map +1 -1
- package/build/backend/api/controllers/subscription.js +1 -1
- package/build/backend/api/controllers/users.d.ts +20 -15
- package/build/backend/api/controllers/users.d.ts.map +1 -1
- package/build/backend/api/controllers/users.js +21 -16
- package/build/backend/api/controllers/xray.d.ts +2 -2
- package/build/backend/api/controllers/xray.js +2 -2
- package/build/backend/api/routes.d.ts +46 -40
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +44 -38
- package/build/backend/commands/api-tokens/create.command.d.ts +7 -6
- package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
- package/build/backend/commands/api-tokens/create.command.js +2 -0
- package/build/backend/commands/api-tokens/delete.command.d.ts +1 -0
- package/build/backend/commands/api-tokens/delete.command.d.ts.map +1 -1
- package/build/backend/commands/api-tokens/delete.command.js +2 -0
- package/build/backend/commands/api-tokens/find.command.d.ts +7 -6
- package/build/backend/commands/api-tokens/find.command.d.ts.map +1 -1
- package/build/backend/commands/api-tokens/find.command.js +3 -1
- package/build/backend/commands/auth/get-status.command.d.ts +1 -0
- package/build/backend/commands/auth/get-status.command.d.ts.map +1 -1
- package/build/backend/commands/auth/get-status.command.js +2 -0
- package/build/backend/commands/auth/login.command.d.ts +1 -0
- package/build/backend/commands/auth/login.command.d.ts.map +1 -1
- package/build/backend/commands/auth/login.command.js +2 -0
- package/build/backend/commands/auth/register.command.d.ts +1 -0
- package/build/backend/commands/auth/register.command.d.ts.map +1 -1
- package/build/backend/commands/auth/register.command.js +2 -0
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +5 -4
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.js +3 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +5 -4
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.js +3 -1
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +5 -4
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.js +3 -1
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +5 -4
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.js +3 -1
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +5 -4
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.js +3 -1
- package/build/backend/commands/hosts/create.command.d.ts +7 -6
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +6 -5
- package/build/backend/commands/hosts/delete.command.d.ts +1 -0
- package/build/backend/commands/hosts/delete.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/delete.command.js +2 -0
- package/build/backend/commands/hosts/get-all.command.d.ts +7 -6
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-all.command.js +4 -2
- package/build/backend/commands/hosts/get-one.command.d.ts +5 -4
- package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-one.command.js +4 -2
- package/build/backend/commands/hosts/reorder.command.d.ts +3 -2
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.js +4 -2
- package/build/backend/commands/hosts/update.command.d.ts +10 -9
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +6 -5
- package/build/backend/commands/hwid/create-user-hwid-device.command.d.ts +3 -2
- package/build/backend/commands/hwid/create-user-hwid-device.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/create-user-hwid-device.command.js +2 -0
- package/build/backend/commands/hwid/delete-user-hwid-device.command.d.ts +1 -0
- package/build/backend/commands/hwid/delete-user-hwid-device.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/delete-user-hwid-device.command.js +2 -0
- package/build/backend/commands/hwid/get-user-hwid-devices.command.d.ts +1 -0
- package/build/backend/commands/hwid/get-user-hwid-devices.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/get-user-hwid-devices.command.js +2 -0
- package/build/backend/commands/inbounds/bulk/add-inbound-to-nodes.command.d.ts +1 -0
- package/build/backend/commands/inbounds/bulk/add-inbound-to-nodes.command.d.ts.map +1 -1
- package/build/backend/commands/inbounds/bulk/add-inbound-to-nodes.command.js +2 -0
- package/build/backend/commands/inbounds/bulk/add-inbound-to-users.command.d.ts +1 -0
- package/build/backend/commands/inbounds/bulk/add-inbound-to-users.command.d.ts.map +1 -1
- package/build/backend/commands/inbounds/bulk/add-inbound-to-users.command.js +2 -0
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-nodes.command.d.ts +1 -0
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-nodes.command.d.ts.map +1 -1
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-nodes.command.js +2 -0
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-users.command.d.ts +1 -0
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-users.command.d.ts.map +1 -1
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-users.command.js +2 -0
- package/build/backend/commands/inbounds/get-full-inbounds.command.d.ts +5 -4
- package/build/backend/commands/inbounds/get-full-inbounds.command.d.ts.map +1 -1
- package/build/backend/commands/inbounds/get-full-inbounds.command.js +2 -0
- package/build/backend/commands/inbounds/get-inbounds.command.d.ts +5 -4
- package/build/backend/commands/inbounds/get-inbounds.command.d.ts.map +1 -1
- package/build/backend/commands/inbounds/get-inbounds.command.js +2 -0
- package/build/backend/commands/keygen/get-pubkey.command.d.ts +3 -2
- package/build/backend/commands/keygen/get-pubkey.command.d.ts.map +1 -1
- package/build/backend/commands/keygen/get-pubkey.command.js +2 -0
- package/build/backend/commands/nodes/{disable.command.d.ts → actions/disable.command.d.ts} +7 -6
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -0
- package/build/backend/commands/nodes/{disable.command.js → actions/disable.command.js} +5 -3
- package/build/backend/commands/nodes/{enable.command.d.ts → actions/enable.command.d.ts} +7 -6
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -0
- package/build/backend/commands/nodes/{enable.command.js → actions/enable.command.js} +5 -3
- package/build/backend/commands/nodes/actions/index.d.ts +6 -0
- package/build/backend/commands/nodes/actions/index.d.ts.map +1 -0
- package/build/backend/commands/nodes/actions/index.js +21 -0
- package/build/backend/commands/nodes/{reorder.command.d.ts → actions/reorder.command.d.ts} +11 -10
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -0
- package/build/{frontend/commands/nodes → backend/commands/nodes/actions}/reorder.command.js +5 -3
- package/build/backend/commands/nodes/{restart-all.command.d.ts → actions/restart-all.command.d.ts} +3 -2
- package/build/backend/commands/nodes/actions/restart-all.command.d.ts.map +1 -0
- package/build/{frontend/commands/nodes → backend/commands/nodes/actions}/restart-all.command.js +4 -2
- package/build/backend/commands/nodes/{restart.command.d.ts → actions/restart.command.d.ts} +1 -0
- package/build/backend/commands/nodes/actions/restart.command.d.ts.map +1 -0
- package/build/{frontend/commands/nodes → backend/commands/nodes/actions}/restart.command.js +4 -2
- package/build/backend/commands/nodes/create.command.d.ts +9 -8
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +3 -1
- package/build/backend/commands/nodes/delete.command.d.ts +1 -0
- package/build/backend/commands/nodes/delete.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/delete.command.js +2 -0
- package/build/backend/commands/nodes/get-all.command.d.ts +9 -8
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-all.command.js +4 -2
- package/build/backend/commands/nodes/get-one.command.d.ts +7 -6
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.js +4 -2
- package/build/backend/commands/nodes/index.d.ts +2 -8
- package/build/backend/commands/nodes/index.d.ts.map +1 -1
- package/build/backend/commands/nodes/index.js +2 -8
- package/build/backend/commands/nodes/{get-node-user-usage-by-range.command.d.ts → stats/get-node-user-usage-by-range.command.d.ts} +5 -4
- package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts.map +1 -0
- package/build/backend/commands/nodes/{get-node-user-usage-by-range.command.js → stats/get-node-user-usage-by-range.command.js} +3 -1
- package/build/backend/commands/nodes/{get-nodes-usage-by-range.command.d.ts → stats/get-nodes-usage-by-range.command.d.ts} +3 -2
- package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts.map +1 -0
- package/build/backend/commands/nodes/{get-nodes-usage-by-range.command.js → stats/get-nodes-usage-by-range.command.js} +3 -1
- package/build/backend/commands/nodes/{get-realtime-usage.command.d.ts → stats/get-realtime-usage.command.d.ts} +1 -0
- package/build/backend/commands/nodes/stats/get-realtime-usage.command.d.ts.map +1 -0
- package/build/backend/commands/nodes/{get-realtime-usage.command.js → stats/get-realtime-usage.command.js} +3 -1
- package/build/backend/commands/nodes/stats/index.d.ts +4 -0
- package/build/backend/commands/nodes/stats/index.d.ts.map +1 -0
- package/build/backend/commands/nodes/stats/index.js +19 -0
- package/build/backend/commands/nodes/update.command.d.ts +14 -13
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +3 -1
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +1 -0
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.js +2 -0
- package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts +3 -2
- package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-settings/get-subscription-settings.command.js +4 -2
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts +3 -2
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.js +4 -2
- package/build/backend/commands/subscription-template/get-template.command.d.ts +1 -0
- package/build/backend/commands/subscription-template/get-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/get-template.command.js +4 -2
- package/build/backend/commands/subscription-template/update-template.command.d.ts +3 -2
- package/build/backend/commands/subscription-template/update-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/update-template.command.js +4 -2
- package/build/backend/commands/system/get-bandwidth-stats.command.d.ts +1 -0
- package/build/backend/commands/system/get-bandwidth-stats.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-bandwidth-stats.command.js +2 -0
- package/build/backend/commands/system/get-nodes-statistics.d.ts +1 -0
- package/build/backend/commands/system/get-nodes-statistics.d.ts.map +1 -1
- package/build/backend/commands/system/get-nodes-statistics.js +2 -0
- package/build/backend/commands/system/get-stats.command.d.ts +1 -0
- package/build/backend/commands/system/get-stats.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-stats.command.js +3 -1
- package/build/backend/commands/users/{activate-all-inbounds.command.d.ts → actions/activate-all-inbounds.command.d.ts} +18 -17
- package/build/backend/commands/users/actions/activate-all-inbounds.command.d.ts.map +1 -0
- package/build/{frontend/commands/users → backend/commands/users/actions}/activate-all-inbounds.command.js +5 -3
- package/build/backend/commands/users/{disable-user.command.d.ts → actions/disable-user.command.d.ts} +18 -17
- package/build/backend/commands/users/actions/disable-user.command.d.ts.map +1 -0
- package/build/backend/commands/users/{disable-user.command.js → actions/disable-user.command.js} +5 -3
- package/build/backend/commands/users/{enable-user.command.d.ts → actions/enable-user.command.d.ts} +18 -17
- package/build/backend/commands/users/actions/enable-user.command.d.ts.map +1 -0
- package/build/{frontend/commands/users → backend/commands/users/actions}/enable-user.command.js +5 -3
- package/build/backend/commands/users/actions/index.d.ts +6 -0
- package/build/backend/commands/users/actions/index.d.ts.map +1 -0
- package/build/backend/commands/users/actions/index.js +21 -0
- package/build/backend/commands/users/{reset-user-traffic.command.d.ts → actions/reset-user-traffic.command.d.ts} +18 -17
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts.map +1 -0
- package/build/{frontend/commands/users → backend/commands/users/actions}/reset-user-traffic.command.js +5 -3
- package/build/backend/commands/users/{revoke-user-subscription.command.d.ts → actions/revoke-user-subscription.command.d.ts} +18 -17
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts.map +1 -0
- package/build/backend/commands/users/{revoke-user-subscription.command.js → actions/revoke-user-subscription.command.js} +5 -3
- package/build/backend/commands/users/bulk/bulk-delete-users-by-status.command.d.ts +1 -0
- package/build/backend/commands/users/bulk/bulk-delete-users-by-status.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-delete-users-by-status.command.js +3 -1
- package/build/backend/commands/users/bulk/bulk-delete-users.command.d.ts +1 -0
- package/build/backend/commands/users/bulk/bulk-delete-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-delete-users.command.js +2 -0
- package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.d.ts +1 -0
- package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.js +2 -0
- package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.d.ts +1 -0
- package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.js +2 -0
- package/build/backend/commands/users/bulk/bulk-update-users-inbounds.command.d.ts +1 -0
- package/build/backend/commands/users/bulk/bulk-update-users-inbounds.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-update-users-inbounds.command.js +2 -0
- package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts +5 -4
- package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-update-users.command.js +4 -2
- package/build/backend/commands/users/bulk-all/bulk-all-reset-traffic-users.command.d.ts +1 -0
- package/build/backend/commands/users/bulk-all/bulk-all-reset-traffic-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk-all/bulk-all-reset-traffic-users.command.js +2 -0
- package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.d.ts +3 -2
- package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.js +4 -2
- package/build/backend/commands/users/create-user.command.d.ts +20 -19
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.js +2 -1
- package/build/backend/commands/users/delete-user.command.d.ts +1 -0
- package/build/backend/commands/users/delete-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/delete-user.command.js +3 -1
- package/build/backend/commands/users/{get-all-users-v2.command.d.ts → get-all-users.command.d.ts} +28 -27
- package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -0
- package/build/{frontend/commands/users/get-all-users-v2.command.js → backend/commands/users/get-all-users.command.js} +10 -8
- package/build/backend/commands/users/{get-user-by-email.command.d.ts → get-by/get-user-by-email.command.d.ts} +18 -17
- package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts.map +1 -0
- package/build/backend/commands/users/{get-user-by-email.command.js → get-by/get-user-by-email.command.js} +5 -3
- package/build/backend/commands/users/{get-user-by-short-uuid.command.d.ts → get-by/get-user-by-short-uuid.command.d.ts} +18 -17
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts.map +1 -0
- package/build/{frontend/commands/users → backend/commands/users/get-by}/get-user-by-short-uuid.command.js +5 -3
- package/build/backend/commands/users/{get-user-by-subscription-uuid.command.d.ts → get-by/get-user-by-subscription-uuid.command.d.ts} +18 -17
- package/build/backend/commands/users/get-by/get-user-by-subscription-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/users/{get-user-by-subscription-uuid.command.js → get-by/get-user-by-subscription-uuid.command.js} +5 -3
- package/build/backend/commands/users/{get-user-by-telegram-id.command.d.ts → get-by/get-user-by-telegram-id.command.d.ts} +18 -17
- package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts.map +1 -0
- package/build/backend/commands/users/{get-user-by-telegram-id.command.js → get-by/get-user-by-telegram-id.command.js} +5 -3
- package/build/backend/commands/users/{get-user-by-username.command.d.ts → get-by/get-user-by-username.command.d.ts} +18 -17
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts.map +1 -0
- package/build/backend/commands/users/{get-user-by-username.command.js → get-by/get-user-by-username.command.js} +5 -3
- package/build/backend/commands/users/get-by/index.d.ts +6 -0
- package/build/backend/commands/users/get-by/index.d.ts.map +1 -0
- package/build/backend/commands/users/get-by/index.js +21 -0
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts +18 -17
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-uuid.command.js +2 -0
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +1 -0
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-usage-by-range.command.js +2 -0
- package/build/backend/commands/users/index.d.ts +3 -11
- package/build/backend/commands/users/index.d.ts.map +1 -1
- package/build/backend/commands/users/index.js +3 -11
- package/build/backend/commands/users/update-user.command.d.ts +27 -26
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.js +2 -1
- package/build/backend/commands/xray/get-config.command.d.ts +3 -2
- package/build/backend/commands/xray/get-config.command.d.ts.map +1 -1
- package/build/backend/commands/xray/get-config.command.js +3 -1
- package/build/backend/commands/xray/update-config.command.d.ts +3 -2
- package/build/backend/commands/xray/update-config.command.d.ts.map +1 -1
- package/build/backend/commands/xray/update-config.command.js +3 -1
- package/build/backend/constants/base-api/base-api-endpoint.d.ts +8 -0
- package/build/backend/constants/base-api/base-api-endpoint.d.ts.map +1 -0
- package/build/backend/constants/base-api/base-api-endpoint.js +11 -0
- package/build/backend/constants/base-api/index.d.ts +2 -0
- package/build/backend/constants/base-api/index.d.ts.map +1 -0
- package/build/backend/constants/base-api/index.js +17 -0
- package/build/backend/constants/index.d.ts +1 -0
- package/build/backend/constants/index.d.ts.map +1 -1
- package/build/backend/constants/index.js +1 -0
- package/build/backend/models/api-tokens.schema.d.ts +2 -2
- package/build/backend/models/extented-users.schema.d.ts +11 -11
- package/build/backend/models/full-inbounds.schema.d.ts +2 -2
- package/build/backend/models/hosts.schema.d.ts +2 -2
- package/build/backend/models/inbounds.schema.d.ts +2 -2
- package/build/backend/models/nodes.schema.d.ts +4 -4
- package/build/backend/models/users.schema.d.ts +8 -8
- package/build/frontend/api/controllers/api-tokens.js +3 -3
- package/build/frontend/api/controllers/hosts.js +10 -8
- package/build/frontend/api/controllers/hwid.js +2 -2
- package/build/frontend/api/controllers/inbounds.js +0 -1
- package/build/frontend/api/controllers/keygen.js +1 -1
- package/build/frontend/api/controllers/nodes.js +16 -13
- package/build/frontend/api/controllers/subscription-settings.js +2 -2
- package/build/frontend/api/controllers/subscription-template.js +2 -2
- package/build/frontend/api/controllers/subscription.js +1 -1
- package/build/frontend/api/controllers/users.js +21 -16
- package/build/frontend/api/controllers/xray.js +2 -2
- package/build/frontend/api/routes.js +44 -38
- package/build/frontend/commands/api-tokens/create.command.js +2 -0
- package/build/frontend/commands/api-tokens/delete.command.js +2 -0
- package/build/frontend/commands/api-tokens/find.command.js +3 -1
- package/build/frontend/commands/auth/get-status.command.js +2 -0
- package/build/frontend/commands/auth/login.command.js +2 -0
- package/build/frontend/commands/auth/register.command.js +2 -0
- package/build/frontend/commands/hosts/bulk/delete-many-hosts.command.js +3 -1
- package/build/frontend/commands/hosts/bulk/disable-many-hosts.command.js +3 -1
- package/build/frontend/commands/hosts/bulk/enable-many-hosts.command.js +3 -1
- package/build/frontend/commands/hosts/bulk/set-inbound-to-many-hosts.command.js +3 -1
- package/build/frontend/commands/hosts/bulk/set-port-to-many-hosts.command.js +3 -1
- package/build/frontend/commands/hosts/create.command.js +6 -5
- package/build/frontend/commands/hosts/delete.command.js +2 -0
- package/build/frontend/commands/hosts/get-all.command.js +4 -2
- package/build/frontend/commands/hosts/get-one.command.js +4 -2
- package/build/frontend/commands/hosts/reorder.command.js +4 -2
- package/build/frontend/commands/hosts/update.command.js +6 -5
- package/build/frontend/commands/hwid/create-user-hwid-device.command.js +2 -0
- package/build/frontend/commands/hwid/delete-user-hwid-device.command.js +2 -0
- package/build/frontend/commands/hwid/get-user-hwid-devices.command.js +2 -0
- package/build/frontend/commands/inbounds/bulk/add-inbound-to-nodes.command.js +2 -0
- package/build/frontend/commands/inbounds/bulk/add-inbound-to-users.command.js +2 -0
- package/build/frontend/commands/inbounds/bulk/remove-inbound-from-nodes.command.js +2 -0
- package/build/frontend/commands/inbounds/bulk/remove-inbound-from-users.command.js +2 -0
- package/build/frontend/commands/inbounds/get-full-inbounds.command.js +2 -0
- package/build/frontend/commands/inbounds/get-inbounds.command.js +2 -0
- package/build/frontend/commands/keygen/get-pubkey.command.js +2 -0
- package/build/frontend/commands/nodes/{disable.command.js → actions/disable.command.js} +5 -3
- package/build/frontend/commands/nodes/{enable.command.js → actions/enable.command.js} +5 -3
- package/build/frontend/commands/nodes/actions/index.js +21 -0
- package/build/{backend/commands/nodes → frontend/commands/nodes/actions}/reorder.command.js +5 -3
- package/build/{backend/commands/nodes → frontend/commands/nodes/actions}/restart-all.command.js +4 -2
- package/build/{backend/commands/nodes → frontend/commands/nodes/actions}/restart.command.js +4 -2
- package/build/frontend/commands/nodes/create.command.js +3 -1
- package/build/frontend/commands/nodes/delete.command.js +2 -0
- package/build/frontend/commands/nodes/get-all.command.js +4 -2
- package/build/frontend/commands/nodes/get-one.command.js +4 -2
- package/build/frontend/commands/nodes/index.js +2 -8
- package/build/frontend/commands/nodes/{get-node-user-usage-by-range.command.js → stats/get-node-user-usage-by-range.command.js} +3 -1
- package/build/frontend/commands/nodes/{get-nodes-usage-by-range.command.js → stats/get-nodes-usage-by-range.command.js} +3 -1
- package/build/frontend/commands/nodes/{get-realtime-usage.command.js → stats/get-realtime-usage.command.js} +3 -1
- package/build/frontend/commands/nodes/stats/index.js +19 -0
- package/build/frontend/commands/nodes/update.command.js +3 -1
- package/build/frontend/commands/subscription/get-subscription-info-by-short-uuid.command.js +2 -0
- package/build/frontend/commands/subscription-settings/get-subscription-settings.command.js +4 -2
- package/build/frontend/commands/subscription-settings/update-subscription-settings.command.js +4 -2
- package/build/frontend/commands/subscription-template/get-template.command.js +4 -2
- package/build/frontend/commands/subscription-template/update-template.command.js +4 -2
- package/build/frontend/commands/system/get-bandwidth-stats.command.js +2 -0
- package/build/frontend/commands/system/get-nodes-statistics.js +2 -0
- package/build/frontend/commands/system/get-stats.command.js +3 -1
- package/build/{backend/commands/users → frontend/commands/users/actions}/activate-all-inbounds.command.js +5 -3
- package/build/frontend/commands/users/{disable-user.command.js → actions/disable-user.command.js} +5 -3
- package/build/{backend/commands/users → frontend/commands/users/actions}/enable-user.command.js +5 -3
- package/build/frontend/commands/users/actions/index.js +21 -0
- package/build/{backend/commands/users → frontend/commands/users/actions}/reset-user-traffic.command.js +5 -3
- package/build/frontend/commands/users/{revoke-user-subscription.command.js → actions/revoke-user-subscription.command.js} +5 -3
- package/build/frontend/commands/users/bulk/bulk-delete-users-by-status.command.js +3 -1
- package/build/frontend/commands/users/bulk/bulk-delete-users.command.js +2 -0
- package/build/frontend/commands/users/bulk/bulk-reset-traffic-users.command.js +2 -0
- package/build/frontend/commands/users/bulk/bulk-revoke-users-subscription.command.js +2 -0
- package/build/frontend/commands/users/bulk/bulk-update-users-inbounds.command.js +2 -0
- package/build/frontend/commands/users/bulk/bulk-update-users.command.js +4 -2
- package/build/frontend/commands/users/bulk-all/bulk-all-reset-traffic-users.command.js +2 -0
- package/build/frontend/commands/users/bulk-all/bulk-all-update-users.command.js +4 -2
- package/build/frontend/commands/users/create-user.command.js +2 -1
- package/build/frontend/commands/users/delete-user.command.js +3 -1
- package/build/{backend/commands/users/get-all-users-v2.command.js → frontend/commands/users/get-all-users.command.js} +10 -8
- package/build/frontend/commands/users/{get-user-by-email.command.js → get-by/get-user-by-email.command.js} +5 -3
- package/build/{backend/commands/users → frontend/commands/users/get-by}/get-user-by-short-uuid.command.js +5 -3
- package/build/frontend/commands/users/{get-user-by-subscription-uuid.command.js → get-by/get-user-by-subscription-uuid.command.js} +5 -3
- package/build/frontend/commands/users/{get-user-by-telegram-id.command.js → get-by/get-user-by-telegram-id.command.js} +5 -3
- package/build/frontend/commands/users/{get-user-by-username.command.js → get-by/get-user-by-username.command.js} +5 -3
- package/build/frontend/commands/users/get-by/index.js +21 -0
- package/build/frontend/commands/users/get-user-by-uuid.command.js +2 -0
- package/build/frontend/commands/users/get-user-usage-by-range.command.js +2 -0
- package/build/frontend/commands/users/index.js +3 -11
- package/build/frontend/commands/users/update-user.command.js +2 -1
- package/build/frontend/commands/xray/get-config.command.js +3 -1
- package/build/frontend/commands/xray/update-config.command.js +3 -1
- package/build/frontend/constants/base-api/base-api-endpoint.js +11 -0
- package/build/frontend/constants/base-api/index.js +17 -0
- package/build/frontend/constants/index.js +1 -0
- package/package.json +1 -1
- package/build/backend/commands/nodes/disable.command.d.ts.map +0 -1
- package/build/backend/commands/nodes/enable.command.d.ts.map +0 -1
- package/build/backend/commands/nodes/get-node-user-usage-by-range.command.d.ts.map +0 -1
- package/build/backend/commands/nodes/get-nodes-usage-by-range.command.d.ts.map +0 -1
- package/build/backend/commands/nodes/get-realtime-usage.command.d.ts.map +0 -1
- package/build/backend/commands/nodes/reorder.command.d.ts.map +0 -1
- package/build/backend/commands/nodes/restart-all.command.d.ts.map +0 -1
- package/build/backend/commands/nodes/restart.command.d.ts.map +0 -1
- package/build/backend/commands/users/activate-all-inbounds.command.d.ts.map +0 -1
- package/build/backend/commands/users/disable-user.command.d.ts.map +0 -1
- package/build/backend/commands/users/enable-user.command.d.ts.map +0 -1
- package/build/backend/commands/users/get-all-users-v2.command.d.ts.map +0 -1
- package/build/backend/commands/users/get-user-by-email.command.d.ts.map +0 -1
- package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/users/get-user-by-telegram-id.command.d.ts.map +0 -1
- package/build/backend/commands/users/get-user-by-username.command.d.ts.map +0 -1
- package/build/backend/commands/users/reset-user-traffic.command.d.ts.map +0 -1
- package/build/backend/commands/users/revoke-user-subscription.command.d.ts.map +0 -1
@@ -2,12 +2,14 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.GetSubscriptionTemplateCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
const constants_1 = require("../../constants");
|
6
5
|
const api_1 = require("../../api");
|
6
|
+
const constants_1 = require("../../constants");
|
7
|
+
const constants_2 = require("../../constants");
|
7
8
|
var GetSubscriptionTemplateCommand;
|
8
9
|
(function (GetSubscriptionTemplateCommand) {
|
9
|
-
GetSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.
|
10
|
+
GetSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.GET;
|
10
11
|
GetSubscriptionTemplateCommand.TSQ_url = GetSubscriptionTemplateCommand.url(':templateType');
|
12
|
+
GetSubscriptionTemplateCommand.baseApiEndpoint = (0, constants_2.getBaseApiEndpoint)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.GET(':templateType'), 'get', 'Get subscription template');
|
11
13
|
GetSubscriptionTemplateCommand.RequestSchema = zod_1.z.object({
|
12
14
|
templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
13
15
|
});
|
@@ -2,12 +2,14 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.UpdateSubscriptionTemplateCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
const constants_1 = require("../../constants");
|
6
5
|
const api_1 = require("../../api");
|
6
|
+
const constants_1 = require("../../constants");
|
7
|
+
const constants_2 = require("../../constants");
|
7
8
|
var UpdateSubscriptionTemplateCommand;
|
8
9
|
(function (UpdateSubscriptionTemplateCommand) {
|
9
|
-
UpdateSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.
|
10
|
+
UpdateSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.UPDATE;
|
10
11
|
UpdateSubscriptionTemplateCommand.TSQ_url = UpdateSubscriptionTemplateCommand.url;
|
12
|
+
UpdateSubscriptionTemplateCommand.baseApiEndpoint = (0, constants_2.getBaseApiEndpoint)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.UPDATE, 'put', 'Update subscription template');
|
11
13
|
UpdateSubscriptionTemplateCommand.RequestSchema = zod_1.z.object({
|
12
14
|
templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
13
15
|
templateJson: zod_1.z.optional(zod_1.z.object({}).passthrough()),
|
@@ -3,11 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetBandwidthStatsCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
const base_stat_schema_1 = require("../../models/base-stat.schema");
|
6
|
+
const constants_1 = require("../../constants");
|
6
7
|
const api_1 = require("../../api");
|
7
8
|
var GetBandwidthStatsCommand;
|
8
9
|
(function (GetBandwidthStatsCommand) {
|
9
10
|
GetBandwidthStatsCommand.url = api_1.REST_API.SYSTEM.BANDWIDTH;
|
10
11
|
GetBandwidthStatsCommand.TSQ_url = GetBandwidthStatsCommand.url;
|
12
|
+
GetBandwidthStatsCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.SYSTEM_ROUTES.BANDWIDTH, 'get', 'Get Bandwidth Stats');
|
11
13
|
GetBandwidthStatsCommand.RequestQuerySchema = zod_1.z.object({
|
12
14
|
tz: zod_1.z.string().optional(),
|
13
15
|
});
|
@@ -2,11 +2,13 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.GetNodesStatisticsCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
+
const constants_1 = require("../../constants");
|
5
6
|
const api_1 = require("../../api");
|
6
7
|
var GetNodesStatisticsCommand;
|
7
8
|
(function (GetNodesStatisticsCommand) {
|
8
9
|
GetNodesStatisticsCommand.url = api_1.REST_API.SYSTEM.NODES_STATISTIC;
|
9
10
|
GetNodesStatisticsCommand.TSQ_url = GetNodesStatisticsCommand.url;
|
11
|
+
GetNodesStatisticsCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.SYSTEM_ROUTES.STATISTIC.NODES, 'get', 'Get Nodes Statistics');
|
10
12
|
GetNodesStatisticsCommand.RequestQuerySchema = zod_1.z.object({
|
11
13
|
tz: zod_1.z.string().optional(),
|
12
14
|
});
|
@@ -4,10 +4,12 @@ exports.GetStatsCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
const constants_1 = require("../../constants");
|
6
6
|
const api_1 = require("../../api");
|
7
|
+
const constants_2 = require("../../constants");
|
7
8
|
var GetStatsCommand;
|
8
9
|
(function (GetStatsCommand) {
|
9
10
|
GetStatsCommand.url = api_1.REST_API.SYSTEM.STATS;
|
10
11
|
GetStatsCommand.TSQ_url = GetStatsCommand.url;
|
12
|
+
GetStatsCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.SYSTEM_ROUTES.STATS, 'get', 'Get Stats');
|
11
13
|
GetStatsCommand.RequestQuerySchema = zod_1.z.object({
|
12
14
|
tz: zod_1.z.string().optional(),
|
13
15
|
});
|
@@ -27,7 +29,7 @@ var GetStatsCommand;
|
|
27
29
|
uptime: zod_1.z.number(),
|
28
30
|
timestamp: zod_1.z.number(),
|
29
31
|
users: zod_1.z.object({
|
30
|
-
statusCounts: zod_1.z.record(zod_1.z.enum(Object.values(
|
32
|
+
statusCounts: zod_1.z.record(zod_1.z.enum(Object.values(constants_2.USERS_STATUS)), zod_1.z.number()),
|
31
33
|
totalUsers: zod_1.z.number(),
|
32
34
|
totalTrafficBytes: zod_1.z.string(),
|
33
35
|
}),
|
@@ -2,12 +2,14 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ActivateAllInboundsCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
const
|
6
|
-
const
|
5
|
+
const constants_1 = require("../../../constants");
|
6
|
+
const models_1 = require("../../../models");
|
7
|
+
const api_1 = require("../../../api");
|
7
8
|
var ActivateAllInboundsCommand;
|
8
9
|
(function (ActivateAllInboundsCommand) {
|
9
|
-
ActivateAllInboundsCommand.url = api_1.REST_API.USERS.ACTIVATE_ALL_INBOUNDS;
|
10
|
+
ActivateAllInboundsCommand.url = api_1.REST_API.USERS.ACTIONS.ACTIVATE_ALL_INBOUNDS;
|
10
11
|
ActivateAllInboundsCommand.TSQ_url = ActivateAllInboundsCommand.url(':uuid');
|
12
|
+
ActivateAllInboundsCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.ACTIONS.ACTIVATE_ALL_INBOUNDS(':uuid'), 'post', 'Activate all inbounds');
|
11
13
|
ActivateAllInboundsCommand.RequestSchema = zod_1.z.object({
|
12
14
|
uuid: zod_1.z.string().uuid(),
|
13
15
|
});
|
package/build/frontend/commands/users/{disable-user.command.js → actions/disable-user.command.js}
RENAMED
@@ -2,12 +2,14 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.DisableUserCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
const
|
6
|
-
const
|
5
|
+
const constants_1 = require("../../../constants");
|
6
|
+
const models_1 = require("../../../models");
|
7
|
+
const api_1 = require("../../../api");
|
7
8
|
var DisableUserCommand;
|
8
9
|
(function (DisableUserCommand) {
|
9
|
-
DisableUserCommand.url = api_1.REST_API.USERS.
|
10
|
+
DisableUserCommand.url = api_1.REST_API.USERS.ACTIONS.DISABLE;
|
10
11
|
DisableUserCommand.TSQ_url = DisableUserCommand.url(':uuid');
|
12
|
+
DisableUserCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.ACTIONS.DISABLE(':uuid'), 'post', 'Disable user');
|
11
13
|
DisableUserCommand.RequestSchema = zod_1.z.object({
|
12
14
|
uuid: zod_1.z.string().uuid(),
|
13
15
|
});
|
package/build/{backend/commands/users → frontend/commands/users/actions}/enable-user.command.js
RENAMED
@@ -2,12 +2,14 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.EnableUserCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
const
|
6
|
-
const
|
5
|
+
const constants_1 = require("../../../constants");
|
6
|
+
const models_1 = require("../../../models");
|
7
|
+
const api_1 = require("../../../api");
|
7
8
|
var EnableUserCommand;
|
8
9
|
(function (EnableUserCommand) {
|
9
|
-
EnableUserCommand.url = api_1.REST_API.USERS.
|
10
|
+
EnableUserCommand.url = api_1.REST_API.USERS.ACTIONS.ENABLE;
|
10
11
|
EnableUserCommand.TSQ_url = EnableUserCommand.url(':uuid');
|
12
|
+
EnableUserCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.ACTIONS.ENABLE(':uuid'), 'post', 'Enable user');
|
11
13
|
EnableUserCommand.RequestSchema = zod_1.z.object({
|
12
14
|
uuid: zod_1.z.string().uuid(),
|
13
15
|
});
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./activate-all-inbounds.command"), exports);
|
18
|
+
__exportStar(require("./disable-user.command"), exports);
|
19
|
+
__exportStar(require("./enable-user.command"), exports);
|
20
|
+
__exportStar(require("./reset-user-traffic.command"), exports);
|
21
|
+
__exportStar(require("./revoke-user-subscription.command"), exports);
|
@@ -2,12 +2,14 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ResetUserTrafficCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
const
|
6
|
-
const
|
5
|
+
const constants_1 = require("../../../constants");
|
6
|
+
const models_1 = require("../../../models");
|
7
|
+
const api_1 = require("../../../api");
|
7
8
|
var ResetUserTrafficCommand;
|
8
9
|
(function (ResetUserTrafficCommand) {
|
9
|
-
ResetUserTrafficCommand.url = api_1.REST_API.USERS.
|
10
|
+
ResetUserTrafficCommand.url = api_1.REST_API.USERS.ACTIONS.RESET_TRAFFIC;
|
10
11
|
ResetUserTrafficCommand.TSQ_url = ResetUserTrafficCommand.url(':uuid');
|
12
|
+
ResetUserTrafficCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.ACTIONS.RESET_TRAFFIC(':uuid'), 'post', 'Reset user traffic');
|
11
13
|
ResetUserTrafficCommand.RequestSchema = zod_1.z.object({
|
12
14
|
uuid: zod_1.z.string().uuid(),
|
13
15
|
});
|
@@ -2,12 +2,14 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.RevokeUserSubscriptionCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
const
|
6
|
-
const
|
5
|
+
const constants_1 = require("../../../constants");
|
6
|
+
const models_1 = require("../../../models");
|
7
|
+
const api_1 = require("../../../api");
|
7
8
|
var RevokeUserSubscriptionCommand;
|
8
9
|
(function (RevokeUserSubscriptionCommand) {
|
9
|
-
RevokeUserSubscriptionCommand.url = api_1.REST_API.USERS.REVOKE_SUBSCRIPTION;
|
10
|
+
RevokeUserSubscriptionCommand.url = api_1.REST_API.USERS.ACTIONS.REVOKE_SUBSCRIPTION;
|
10
11
|
RevokeUserSubscriptionCommand.TSQ_url = RevokeUserSubscriptionCommand.url(':uuid');
|
12
|
+
RevokeUserSubscriptionCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.ACTIONS.REVOKE_SUBSCRIPTION(':uuid'), 'post', 'Revoke user subscription');
|
11
13
|
RevokeUserSubscriptionCommand.RequestSchema = zod_1.z.object({
|
12
14
|
uuid: zod_1.z.string().uuid(),
|
13
15
|
});
|
@@ -2,12 +2,14 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.BulkDeleteUsersByStatusCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
const
|
5
|
+
const constants_1 = require("../../../constants");
|
6
6
|
const api_1 = require("../../../api");
|
7
|
+
const models_1 = require("../../../models");
|
7
8
|
var BulkDeleteUsersByStatusCommand;
|
8
9
|
(function (BulkDeleteUsersByStatusCommand) {
|
9
10
|
BulkDeleteUsersByStatusCommand.url = api_1.REST_API.USERS.BULK.DELETE_BY_STATUS;
|
10
11
|
BulkDeleteUsersByStatusCommand.TSQ_url = BulkDeleteUsersByStatusCommand.url;
|
12
|
+
BulkDeleteUsersByStatusCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.BULK.DELETE_BY_STATUS, 'post', 'Bulk delete users by status');
|
11
13
|
BulkDeleteUsersByStatusCommand.RequestSchema = zod_1.z.object({
|
12
14
|
status: models_1.UsersSchema.shape.status,
|
13
15
|
});
|
@@ -2,11 +2,13 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.BulkDeleteUsersCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
+
const constants_1 = require("../../../constants");
|
5
6
|
const api_1 = require("../../../api");
|
6
7
|
var BulkDeleteUsersCommand;
|
7
8
|
(function (BulkDeleteUsersCommand) {
|
8
9
|
BulkDeleteUsersCommand.url = api_1.REST_API.USERS.BULK.DELETE;
|
9
10
|
BulkDeleteUsersCommand.TSQ_url = BulkDeleteUsersCommand.url;
|
11
|
+
BulkDeleteUsersCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.BULK.DELETE, 'post', 'Bulk delete users by UUIDs');
|
10
12
|
BulkDeleteUsersCommand.RequestSchema = zod_1.z.object({
|
11
13
|
uuids: zod_1.z.array(zod_1.z.string().uuid()),
|
12
14
|
});
|
@@ -2,11 +2,13 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.BulkResetTrafficUsersCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
+
const constants_1 = require("../../../constants");
|
5
6
|
const api_1 = require("../../../api");
|
6
7
|
var BulkResetTrafficUsersCommand;
|
7
8
|
(function (BulkResetTrafficUsersCommand) {
|
8
9
|
BulkResetTrafficUsersCommand.url = api_1.REST_API.USERS.BULK.RESET_TRAFFIC;
|
9
10
|
BulkResetTrafficUsersCommand.TSQ_url = BulkResetTrafficUsersCommand.url;
|
11
|
+
BulkResetTrafficUsersCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.BULK.RESET_TRAFFIC, 'post', 'Bulk reset traffic users by UUIDs');
|
10
12
|
BulkResetTrafficUsersCommand.RequestSchema = zod_1.z.object({
|
11
13
|
uuids: zod_1.z.array(zod_1.z.string().uuid()),
|
12
14
|
});
|
@@ -2,11 +2,13 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.BulkRevokeUsersSubscriptionCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
+
const constants_1 = require("../../../constants");
|
5
6
|
const api_1 = require("../../../api");
|
6
7
|
var BulkRevokeUsersSubscriptionCommand;
|
7
8
|
(function (BulkRevokeUsersSubscriptionCommand) {
|
8
9
|
BulkRevokeUsersSubscriptionCommand.url = api_1.REST_API.USERS.BULK.REVOKE_SUBSCRIPTION;
|
9
10
|
BulkRevokeUsersSubscriptionCommand.TSQ_url = BulkRevokeUsersSubscriptionCommand.url;
|
11
|
+
BulkRevokeUsersSubscriptionCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.BULK.REVOKE_SUBSCRIPTION, 'post', 'Revoke users subscription by User UUIDs');
|
10
12
|
BulkRevokeUsersSubscriptionCommand.RequestSchema = zod_1.z.object({
|
11
13
|
uuids: zod_1.z.array(zod_1.z.string().uuid()),
|
12
14
|
});
|
@@ -2,11 +2,13 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.BulkUpdateUsersInboundsCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
+
const constants_1 = require("../../../constants");
|
5
6
|
const api_1 = require("../../../api");
|
6
7
|
var BulkUpdateUsersInboundsCommand;
|
7
8
|
(function (BulkUpdateUsersInboundsCommand) {
|
8
9
|
BulkUpdateUsersInboundsCommand.url = api_1.REST_API.USERS.BULK.UPDATE_INBOUNDS;
|
9
10
|
BulkUpdateUsersInboundsCommand.TSQ_url = BulkUpdateUsersInboundsCommand.url;
|
11
|
+
BulkUpdateUsersInboundsCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.BULK.UPDATE_INBOUNDS, 'post', 'Bulk update users inbounds by UUIDs');
|
10
12
|
BulkUpdateUsersInboundsCommand.RequestSchema = zod_1.z.object({
|
11
13
|
uuids: zod_1.z.array(zod_1.z.string().uuid()),
|
12
14
|
activeUserInbounds: zod_1.z.array(zod_1.z.string().uuid(), {
|
@@ -3,12 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BulkUpdateUsersCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
const constants_1 = require("../../../constants");
|
6
|
-
const models_1 = require("../../../models");
|
7
6
|
const api_1 = require("../../../api");
|
7
|
+
const constants_2 = require("../../../constants");
|
8
|
+
const models_1 = require("../../../models");
|
8
9
|
var BulkUpdateUsersCommand;
|
9
10
|
(function (BulkUpdateUsersCommand) {
|
10
11
|
BulkUpdateUsersCommand.url = api_1.REST_API.USERS.BULK.UPDATE;
|
11
12
|
BulkUpdateUsersCommand.TSQ_url = BulkUpdateUsersCommand.url;
|
13
|
+
BulkUpdateUsersCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.BULK.UPDATE, 'post', 'Bulk update users by UUIDs');
|
12
14
|
BulkUpdateUsersCommand.RequestSchema = zod_1.z.object({
|
13
15
|
uuids: zod_1.z.array(zod_1.z.string().uuid()),
|
14
16
|
fields: zod_1.z.object({
|
@@ -21,7 +23,7 @@ var BulkUpdateUsersCommand;
|
|
21
23
|
.min(0, 'Traffic limit must be greater than 0')
|
22
24
|
.describe('Traffic limit in bytes. 0 - unlimited')),
|
23
25
|
trafficLimitStrategy: zod_1.z.optional(zod_1.z
|
24
|
-
.nativeEnum(
|
26
|
+
.nativeEnum(constants_2.RESET_PERIODS, {
|
25
27
|
description: 'Available reset periods',
|
26
28
|
})
|
27
29
|
.describe('Traffic limit reset strategy')),
|
@@ -2,11 +2,13 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.BulkAllResetTrafficUsersCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
+
const constants_1 = require("../../../constants");
|
5
6
|
const api_1 = require("../../../api");
|
6
7
|
var BulkAllResetTrafficUsersCommand;
|
7
8
|
(function (BulkAllResetTrafficUsersCommand) {
|
8
9
|
BulkAllResetTrafficUsersCommand.url = api_1.REST_API.USERS.BULK.ALL.RESET_TRAFFIC;
|
9
10
|
BulkAllResetTrafficUsersCommand.TSQ_url = BulkAllResetTrafficUsersCommand.url;
|
11
|
+
BulkAllResetTrafficUsersCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.BULK.ALL.RESET_TRAFFIC, 'post', 'Reset user used traffic for all users');
|
10
12
|
BulkAllResetTrafficUsersCommand.ResponseSchema = zod_1.z.object({
|
11
13
|
response: zod_1.z.object({
|
12
14
|
eventSent: zod_1.z.boolean(),
|
@@ -3,12 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BulkAllUpdateUsersCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
const constants_1 = require("../../../constants");
|
6
|
-
const models_1 = require("../../../models");
|
7
6
|
const api_1 = require("../../../api");
|
7
|
+
const constants_2 = require("../../../constants");
|
8
|
+
const models_1 = require("../../../models");
|
8
9
|
var BulkAllUpdateUsersCommand;
|
9
10
|
(function (BulkAllUpdateUsersCommand) {
|
10
11
|
BulkAllUpdateUsersCommand.url = api_1.REST_API.USERS.BULK.ALL.UPDATE;
|
11
12
|
BulkAllUpdateUsersCommand.TSQ_url = BulkAllUpdateUsersCommand.url;
|
13
|
+
BulkAllUpdateUsersCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.BULK.ALL.UPDATE, 'post', 'Bulk update all users');
|
12
14
|
BulkAllUpdateUsersCommand.RequestSchema = zod_1.z.object({
|
13
15
|
status: models_1.UsersSchema.shape.status.optional(),
|
14
16
|
trafficLimitBytes: zod_1.z.optional(zod_1.z
|
@@ -19,7 +21,7 @@ var BulkAllUpdateUsersCommand;
|
|
19
21
|
.min(0, 'Traffic limit must be 0 or greater')
|
20
22
|
.describe('Traffic limit in bytes. 0 - unlimited')),
|
21
23
|
trafficLimitStrategy: zod_1.z.optional(zod_1.z
|
22
|
-
.nativeEnum(
|
24
|
+
.nativeEnum(constants_2.RESET_PERIODS, {
|
23
25
|
description: 'Available reset periods',
|
24
26
|
})
|
25
27
|
.describe('Traffic limit reset strategy')),
|
@@ -2,13 +2,14 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.CreateUserCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
const models_1 = require("../../models");
|
6
5
|
const constants_1 = require("../../constants");
|
6
|
+
const models_1 = require("../../models");
|
7
7
|
const api_1 = require("../../api");
|
8
8
|
var CreateUserCommand;
|
9
9
|
(function (CreateUserCommand) {
|
10
10
|
CreateUserCommand.url = api_1.REST_API.USERS.CREATE;
|
11
11
|
CreateUserCommand.TSQ_url = CreateUserCommand.url;
|
12
|
+
CreateUserCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.CREATE, 'post', 'Create a new user');
|
12
13
|
CreateUserCommand.RequestSchema = zod_1.z.object({
|
13
14
|
username: zod_1.z
|
14
15
|
.string({
|
@@ -2,11 +2,13 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.DeleteUserCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
+
const constants_1 = require("../../constants");
|
5
6
|
const api_1 = require("../../api");
|
6
7
|
var DeleteUserCommand;
|
7
8
|
(function (DeleteUserCommand) {
|
8
|
-
DeleteUserCommand.url = api_1.REST_API.USERS.
|
9
|
+
DeleteUserCommand.url = api_1.REST_API.USERS.DELETE;
|
9
10
|
DeleteUserCommand.TSQ_url = DeleteUserCommand.url(':uuid');
|
11
|
+
DeleteUserCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.DELETE(':uuid'), 'delete', 'Delete user');
|
10
12
|
DeleteUserCommand.RequestSchema = zod_1.z.object({
|
11
13
|
uuid: zod_1.z.string().uuid(),
|
12
14
|
});
|
@@ -1,13 +1,15 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.GetAllUsersCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
+
const constants_1 = require("../../constants");
|
5
6
|
const models_1 = require("../../models");
|
6
7
|
const api_1 = require("../../api");
|
7
|
-
var
|
8
|
-
(function (
|
9
|
-
|
10
|
-
|
8
|
+
var GetAllUsersCommand;
|
9
|
+
(function (GetAllUsersCommand) {
|
10
|
+
GetAllUsersCommand.url = api_1.REST_API.USERS.GET;
|
11
|
+
GetAllUsersCommand.TSQ_url = GetAllUsersCommand.url;
|
12
|
+
GetAllUsersCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.GET, 'get', 'Get all users');
|
11
13
|
const FilterSchema = zod_1.z.object({
|
12
14
|
id: zod_1.z.string(),
|
13
15
|
value: zod_1.z.unknown(),
|
@@ -16,7 +18,7 @@ var GetAllUsersV2Command;
|
|
16
18
|
id: zod_1.z.string(),
|
17
19
|
desc: zod_1.z.boolean(),
|
18
20
|
});
|
19
|
-
|
21
|
+
GetAllUsersCommand.RequestQuerySchema = zod_1.z.object({
|
20
22
|
start: zod_1.z.coerce
|
21
23
|
.number()
|
22
24
|
.default(0)
|
@@ -38,10 +40,10 @@ var GetAllUsersV2Command;
|
|
38
40
|
.preprocess((str) => (typeof str === 'string' ? JSON.parse(str) : str), zod_1.z.array(SortingSchema))
|
39
41
|
.optional(),
|
40
42
|
});
|
41
|
-
|
43
|
+
GetAllUsersCommand.ResponseSchema = zod_1.z.object({
|
42
44
|
response: zod_1.z.object({
|
43
45
|
users: zod_1.z.array(models_1.ExtendedUsersSchema),
|
44
46
|
total: zod_1.z.number(),
|
45
47
|
}),
|
46
48
|
});
|
47
|
-
})(
|
49
|
+
})(GetAllUsersCommand || (exports.GetAllUsersCommand = GetAllUsersCommand = {}));
|
@@ -2,12 +2,14 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.GetUserByEmailCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
const
|
6
|
-
const
|
5
|
+
const constants_1 = require("../../../constants");
|
6
|
+
const models_1 = require("../../../models");
|
7
|
+
const api_1 = require("../../../api");
|
7
8
|
var GetUserByEmailCommand;
|
8
9
|
(function (GetUserByEmailCommand) {
|
9
|
-
GetUserByEmailCommand.url = api_1.REST_API.USERS.
|
10
|
+
GetUserByEmailCommand.url = api_1.REST_API.USERS.GET_BY.EMAIL;
|
10
11
|
GetUserByEmailCommand.TSQ_url = GetUserByEmailCommand.url(':email');
|
12
|
+
GetUserByEmailCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.GET_BY.EMAIL(':email'), 'get', 'Get users by email');
|
11
13
|
GetUserByEmailCommand.RequestSchema = zod_1.z.object({
|
12
14
|
email: zod_1.z.string().email(),
|
13
15
|
});
|
@@ -2,12 +2,14 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.GetUserByShortUuidCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
const
|
6
|
-
const
|
5
|
+
const constants_1 = require("../../../constants");
|
6
|
+
const models_1 = require("../../../models");
|
7
|
+
const api_1 = require("../../../api");
|
7
8
|
var GetUserByShortUuidCommand;
|
8
9
|
(function (GetUserByShortUuidCommand) {
|
9
|
-
GetUserByShortUuidCommand.url = api_1.REST_API.USERS.
|
10
|
+
GetUserByShortUuidCommand.url = api_1.REST_API.USERS.GET_BY.SHORT_UUID;
|
10
11
|
GetUserByShortUuidCommand.TSQ_url = GetUserByShortUuidCommand.url(':shortUuid');
|
12
|
+
GetUserByShortUuidCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.GET_BY.SHORT_UUID(':shortUuid'), 'get', 'Get user by Short UUID');
|
11
13
|
GetUserByShortUuidCommand.RequestSchema = zod_1.z.object({
|
12
14
|
shortUuid: zod_1.z.string(),
|
13
15
|
});
|
@@ -2,12 +2,14 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.GetUserBySubscriptionUuidCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
const
|
6
|
-
const
|
5
|
+
const constants_1 = require("../../../constants");
|
6
|
+
const models_1 = require("../../../models");
|
7
|
+
const api_1 = require("../../../api");
|
7
8
|
var GetUserBySubscriptionUuidCommand;
|
8
9
|
(function (GetUserBySubscriptionUuidCommand) {
|
9
|
-
GetUserBySubscriptionUuidCommand.url = api_1.REST_API.USERS.
|
10
|
+
GetUserBySubscriptionUuidCommand.url = api_1.REST_API.USERS.GET_BY.SUBSCRIPTION_UUID;
|
10
11
|
GetUserBySubscriptionUuidCommand.TSQ_url = GetUserBySubscriptionUuidCommand.url(':subscriptionUuid');
|
12
|
+
GetUserBySubscriptionUuidCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.GET_BY.SUBSCRIPTION_UUID(':subscriptionUuid'), 'get', 'Get user by subscription UUID');
|
11
13
|
GetUserBySubscriptionUuidCommand.RequestSchema = zod_1.z.object({
|
12
14
|
subscriptionUuid: zod_1.z.string(),
|
13
15
|
});
|
@@ -2,12 +2,14 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.GetUserByTelegramIdCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
const
|
6
|
-
const
|
5
|
+
const constants_1 = require("../../../constants");
|
6
|
+
const models_1 = require("../../../models");
|
7
|
+
const api_1 = require("../../../api");
|
7
8
|
var GetUserByTelegramIdCommand;
|
8
9
|
(function (GetUserByTelegramIdCommand) {
|
9
|
-
GetUserByTelegramIdCommand.url = api_1.REST_API.USERS.
|
10
|
+
GetUserByTelegramIdCommand.url = api_1.REST_API.USERS.GET_BY.TELEGRAM_ID;
|
10
11
|
GetUserByTelegramIdCommand.TSQ_url = GetUserByTelegramIdCommand.url(':telegramId');
|
12
|
+
GetUserByTelegramIdCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.GET_BY.TELEGRAM_ID(':telegramId'), 'get', 'Get users by telegram ID');
|
11
13
|
GetUserByTelegramIdCommand.RequestSchema = zod_1.z.object({
|
12
14
|
telegramId: zod_1.z.string(),
|
13
15
|
});
|
@@ -2,12 +2,14 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.GetUserByUsernameCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
const
|
6
|
-
const
|
5
|
+
const constants_1 = require("../../../constants");
|
6
|
+
const models_1 = require("../../../models");
|
7
|
+
const api_1 = require("../../../api");
|
7
8
|
var GetUserByUsernameCommand;
|
8
9
|
(function (GetUserByUsernameCommand) {
|
9
|
-
GetUserByUsernameCommand.url = api_1.REST_API.USERS.
|
10
|
+
GetUserByUsernameCommand.url = api_1.REST_API.USERS.GET_BY.USERNAME;
|
10
11
|
GetUserByUsernameCommand.TSQ_url = GetUserByUsernameCommand.url(':username');
|
12
|
+
GetUserByUsernameCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.GET_BY.USERNAME(':username'), 'get', 'Get user by username');
|
11
13
|
GetUserByUsernameCommand.RequestSchema = zod_1.z.object({
|
12
14
|
username: zod_1.z.string(),
|
13
15
|
});
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./get-user-by-email.command"), exports);
|
18
|
+
__exportStar(require("./get-user-by-short-uuid.command"), exports);
|
19
|
+
__exportStar(require("./get-user-by-subscription-uuid.command"), exports);
|
20
|
+
__exportStar(require("./get-user-by-telegram-id.command"), exports);
|
21
|
+
__exportStar(require("./get-user-by-username.command"), exports);
|
@@ -2,12 +2,14 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.GetUserByUuidCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
+
const constants_1 = require("../../constants");
|
5
6
|
const models_1 = require("../../models");
|
6
7
|
const api_1 = require("../../api");
|
7
8
|
var GetUserByUuidCommand;
|
8
9
|
(function (GetUserByUuidCommand) {
|
9
10
|
GetUserByUuidCommand.url = api_1.REST_API.USERS.GET_BY_UUID;
|
10
11
|
GetUserByUuidCommand.TSQ_url = GetUserByUuidCommand.url(':uuid');
|
12
|
+
GetUserByUuidCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.GET_BY_UUID(':uuid'), 'get', 'Get user by UUID');
|
11
13
|
GetUserByUuidCommand.RequestSchema = zod_1.z.object({
|
12
14
|
uuid: zod_1.z.string().uuid(),
|
13
15
|
});
|
@@ -2,11 +2,13 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.GetUserUsageByRangeCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
+
const constants_1 = require("../../constants");
|
5
6
|
const api_1 = require("../../api");
|
6
7
|
var GetUserUsageByRangeCommand;
|
7
8
|
(function (GetUserUsageByRangeCommand) {
|
8
9
|
GetUserUsageByRangeCommand.url = api_1.REST_API.USERS.STATS.GET_USAGE_BY_RANGE;
|
9
10
|
GetUserUsageByRangeCommand.TSQ_url = GetUserUsageByRangeCommand.url(':uuid');
|
11
|
+
GetUserUsageByRangeCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.STATS.GET_USAGE_BY_RANGE(':uuid'), 'get', 'Get user usage by range');
|
10
12
|
GetUserUsageByRangeCommand.RequestSchema = zod_1.z.object({
|
11
13
|
uuid: zod_1.z.string().uuid(),
|
12
14
|
});
|
@@ -14,21 +14,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./
|
17
|
+
__exportStar(require("./actions"), exports);
|
18
18
|
__exportStar(require("./bulk"), exports);
|
19
19
|
__exportStar(require("./bulk-all"), exports);
|
20
20
|
__exportStar(require("./create-user.command"), exports);
|
21
21
|
__exportStar(require("./delete-user.command"), exports);
|
22
|
-
__exportStar(require("./
|
23
|
-
__exportStar(require("./
|
24
|
-
__exportStar(require("./get-all-users-v2.command"), exports);
|
25
|
-
__exportStar(require("./get-user-by-email.command"), exports);
|
26
|
-
__exportStar(require("./get-user-by-short-uuid.command"), exports);
|
27
|
-
__exportStar(require("./get-user-by-subscription-uuid.command"), exports);
|
28
|
-
__exportStar(require("./get-user-by-telegram-id.command"), exports);
|
29
|
-
__exportStar(require("./get-user-by-username.command"), exports);
|
22
|
+
__exportStar(require("./get-all-users.command"), exports);
|
23
|
+
__exportStar(require("./get-by"), exports);
|
30
24
|
__exportStar(require("./get-user-by-uuid.command"), exports);
|
31
25
|
__exportStar(require("./get-user-usage-by-range.command"), exports);
|
32
|
-
__exportStar(require("./reset-user-traffic.command"), exports);
|
33
|
-
__exportStar(require("./revoke-user-subscription.command"), exports);
|
34
26
|
__exportStar(require("./update-user.command"), exports);
|
@@ -2,13 +2,14 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.UpdateUserCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
const models_1 = require("../../models");
|
6
5
|
const constants_1 = require("../../constants");
|
6
|
+
const models_1 = require("../../models");
|
7
7
|
const api_1 = require("../../api");
|
8
8
|
var UpdateUserCommand;
|
9
9
|
(function (UpdateUserCommand) {
|
10
10
|
UpdateUserCommand.url = api_1.REST_API.USERS.UPDATE;
|
11
11
|
UpdateUserCommand.TSQ_url = UpdateUserCommand.url;
|
12
|
+
UpdateUserCommand.baseApiEndpoint = (0, constants_1.getBaseApiEndpoint)(api_1.USERS_ROUTES.UPDATE, 'patch', 'Update a user');
|
12
13
|
UpdateUserCommand.RequestSchema = models_1.UsersSchema.pick({
|
13
14
|
uuid: true,
|
14
15
|
}).extend({
|