@remnawave/backend-contract 0.7.26 → 2.0.0-alpha.10
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/config-profiles.d.ts +11 -0
- package/build/backend/api/controllers/config-profiles.d.ts.map +1 -0
- package/build/backend/api/controllers/config-profiles.js +13 -0
- package/build/backend/api/controllers/index.d.ts +3 -2
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +3 -2
- package/build/backend/api/controllers/infra-billing.d.ts +16 -0
- package/build/backend/api/controllers/infra-billing.d.ts.map +1 -0
- package/build/backend/api/controllers/infra-billing.js +22 -0
- package/build/backend/api/controllers/internal-squads.d.ts +9 -0
- package/build/backend/api/controllers/internal-squads.d.ts.map +1 -0
- package/build/backend/api/controllers/internal-squads.js +11 -0
- package/build/backend/api/controllers/users.d.ts +2 -2
- package/build/backend/api/controllers/users.d.ts.map +1 -1
- package/build/backend/api/controllers/users.js +2 -2
- package/build/backend/api/routes.d.ts +32 -16
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +32 -16
- package/build/backend/commands/config-profiles/create-config-profile.command.d.ts +161 -0
- package/build/backend/commands/config-profiles/create-config-profile.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/create-config-profile.command.js +24 -0
- package/build/backend/commands/config-profiles/delete-config-profile.command.d.ts +33 -0
- package/build/backend/commands/config-profiles/delete-config-profile.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/delete-config-profile.command.js +20 -0
- package/build/backend/commands/config-profiles/get-all-inbounds.command.d.ts +93 -0
- package/build/backend/commands/config-profiles/get-all-inbounds.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/get-all-inbounds.command.js +19 -0
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts +154 -0
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.js +19 -0
- package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts +203 -0
- package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/get-config-profiles.command.js +19 -0
- package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.d.ts +101 -0
- package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.js +22 -0
- package/build/backend/commands/config-profiles/index.d.ts +8 -0
- package/build/backend/commands/config-profiles/index.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/index.js +23 -0
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts +161 -0
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/update-config-profile.command.js +20 -0
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +10 -10
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +10 -10
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +10 -10
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +16 -13
- 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 +2 -1
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +10 -10
- package/build/backend/commands/hosts/create.command.d.ts +18 -15
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +9 -2
- package/build/backend/commands/hosts/get-all.command.d.ts +10 -10
- package/build/backend/commands/hosts/get-one.command.d.ts +10 -10
- package/build/backend/commands/hosts/reorder.command.d.ts +2 -2
- package/build/backend/commands/hosts/update.command.d.ts +20 -17
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +7 -1
- package/build/backend/commands/index.d.ts +3 -2
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +3 -2
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +123 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.js +24 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +33 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +117 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +156 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.js +19 -0
- package/build/backend/commands/infra-billing/index.d.ts +6 -0
- package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
- package/build/backend/commands/{inbounds/bulk → infra-billing}/index.js +5 -4
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +126 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.js +26 -0
- package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts +145 -0
- package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/create-internal-squad.command.js +24 -0
- package/build/backend/commands/internal-squads/delete-internal-squad.command.d.ts +33 -0
- package/build/backend/commands/internal-squads/delete-internal-squad.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/delete-internal-squad.command.js +20 -0
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts +142 -0
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +1 -0
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..js +19 -0
- package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts +187 -0
- package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/get-internal-squads.command.js +19 -0
- package/build/backend/commands/internal-squads/index.d.ts +6 -0
- package/build/backend/commands/internal-squads/index.d.ts.map +1 -0
- package/build/backend/commands/{xray → internal-squads}/index.js +5 -2
- package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts +145 -0
- package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/update-internal-squad.command.js +20 -0
- package/build/backend/commands/nodes/actions/disable.command.d.ts +184 -22
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +184 -22
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +260 -24
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +199 -31
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +5 -3
- package/build/backend/commands/nodes/get-all.command.d.ts +184 -22
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +184 -22
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/nodes/stats/get-realtime-usage.command.d.ts +4 -4
- package/build/backend/commands/nodes/update.command.d.ts +275 -33
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +5 -3
- package/build/backend/commands/users/actions/disable-user.command.d.ts +12 -38
- package/build/backend/commands/users/actions/disable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/enable-user.command.d.ts +12 -38
- package/build/backend/commands/users/actions/enable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/index.d.ts +0 -1
- package/build/backend/commands/users/actions/index.d.ts.map +1 -1
- package/build/backend/commands/users/actions/index.js +0 -1
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +12 -38
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +12 -38
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/{bulk-update-users-inbounds.command.d.ts → bulk-update-users-squads.command.d.ts} +7 -7
- package/build/backend/commands/users/bulk/bulk-update-users-squads.command.d.ts.map +1 -0
- package/build/backend/commands/users/bulk/bulk-update-users-squads.command.js +23 -0
- package/build/backend/commands/users/bulk/index.d.ts +1 -1
- package/build/backend/commands/users/bulk/index.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/index.js +1 -1
- package/build/backend/commands/users/create-user.command.d.ts +15 -47
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.js +5 -16
- package/build/backend/commands/users/get-all-users.command.d.ts +16 -50
- package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts +12 -38
- package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +12 -38
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts +12 -38
- package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts +12 -38
- package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +12 -38
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/index.d.ts +0 -1
- package/build/backend/commands/users/get-by/index.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/index.js +0 -1
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +114 -0
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -0
- package/build/backend/commands/users/get-user-accessible-nodes.command.js +31 -0
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts +12 -38
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/users/index.d.ts +1 -0
- package/build/backend/commands/users/index.d.ts.map +1 -1
- package/build/backend/commands/users/index.js +1 -0
- package/build/backend/commands/users/update-user.command.d.ts +19 -55
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.js +5 -5
- package/build/backend/constants/errors/errors.d.ts +115 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +115 -0
- package/build/backend/models/base-internal-squad.schema.d.ts +12 -0
- package/build/backend/models/base-internal-squad.schema.d.ts.map +1 -0
- package/build/backend/models/base-internal-squad.schema.js +8 -0
- package/build/backend/models/{inbounds.schema.d.ts → config-profile-inbounds.schema.d.ts} +11 -2
- package/build/backend/models/config-profile-inbounds.schema.d.ts.map +1 -0
- package/build/{frontend/models/inbounds.schema.js → backend/models/config-profile-inbounds.schema.js} +5 -2
- package/build/backend/models/config-profile.schema.d.ts +92 -0
- package/build/backend/models/config-profile.schema.d.ts.map +1 -0
- package/build/backend/models/config-profile.schema.js +24 -0
- package/build/backend/models/extented-users.schema.d.ts +8 -26
- package/build/backend/models/extented-users.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.d.ts +6 -6
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +2 -2
- package/build/backend/models/index.d.ts +5 -2
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +5 -2
- package/build/backend/models/infra-provider.schema.d.ts +65 -0
- package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
- package/build/backend/models/infra-provider.schema.js +27 -0
- package/build/backend/models/internal-squad.schema.d.ts +84 -0
- package/build/backend/models/internal-squad.schema.d.ts.map +1 -0
- package/build/backend/models/internal-squad.schema.js +22 -0
- package/build/backend/models/nodes.schema.d.ts +130 -12
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +6 -2
- package/build/backend/models/users.schema.d.ts +8 -26
- package/build/backend/models/users.schema.d.ts.map +1 -1
- package/build/backend/models/users.schema.js +2 -3
- package/build/frontend/api/controllers/config-profiles.js +13 -0
- package/build/frontend/api/controllers/index.js +3 -2
- package/build/frontend/api/controllers/infra-billing.js +22 -0
- package/build/frontend/api/controllers/internal-squads.js +11 -0
- package/build/frontend/api/controllers/users.js +2 -2
- package/build/frontend/api/routes.js +32 -16
- package/build/frontend/commands/config-profiles/create-config-profile.command.js +24 -0
- package/build/frontend/commands/config-profiles/delete-config-profile.command.js +20 -0
- package/build/frontend/commands/config-profiles/get-all-inbounds.command.js +19 -0
- package/build/frontend/commands/config-profiles/get-config-profile-by-uuid.command.js +19 -0
- package/build/frontend/commands/config-profiles/get-config-profiles.command.js +19 -0
- package/build/frontend/commands/config-profiles/get-inbounds-by-profile-uuid.command.js +22 -0
- package/build/frontend/commands/config-profiles/index.js +23 -0
- package/build/frontend/commands/config-profiles/update-config-profile.command.js +20 -0
- package/build/frontend/commands/hosts/bulk/set-inbound-to-many-hosts.command.js +2 -1
- package/build/frontend/commands/hosts/create.command.js +9 -2
- package/build/frontend/commands/hosts/update.command.js +7 -1
- package/build/frontend/commands/index.js +3 -2
- package/build/frontend/commands/infra-billing/create-infra-provider.command.js +24 -0
- package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
- package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
- package/build/frontend/commands/infra-billing/get-infra-providers.command.js +19 -0
- package/build/frontend/commands/{inbounds/bulk → infra-billing}/index.js +5 -4
- package/build/frontend/commands/infra-billing/update-infra-provider.command.js +26 -0
- package/build/frontend/commands/internal-squads/create-internal-squad.command.js +24 -0
- package/build/frontend/commands/internal-squads/delete-internal-squad.command.js +20 -0
- package/build/frontend/commands/internal-squads/get-internal-squad-by-uuid..js +19 -0
- package/build/frontend/commands/internal-squads/get-internal-squads.command.js +19 -0
- package/build/{backend/commands/inbounds → frontend/commands/internal-squads}/index.js +5 -3
- package/build/frontend/commands/internal-squads/update-internal-squad.command.js +20 -0
- package/build/frontend/commands/nodes/create.command.js +5 -3
- package/build/frontend/commands/nodes/update.command.js +5 -3
- package/build/frontend/commands/users/actions/index.js +0 -1
- package/build/frontend/commands/users/bulk/bulk-update-users-squads.command.js +23 -0
- package/build/frontend/commands/users/bulk/index.js +1 -1
- package/build/frontend/commands/users/create-user.command.js +5 -16
- package/build/frontend/commands/users/get-by/index.js +0 -1
- package/build/frontend/commands/users/get-user-accessible-nodes.command.js +31 -0
- package/build/frontend/commands/users/index.js +1 -0
- package/build/frontend/commands/users/update-user.command.js +5 -5
- package/build/frontend/constants/errors/errors.js +115 -0
- package/build/frontend/models/base-internal-squad.schema.js +8 -0
- package/build/{backend/models/inbounds.schema.js → frontend/models/config-profile-inbounds.schema.js} +5 -2
- package/build/frontend/models/config-profile.schema.js +24 -0
- package/build/frontend/models/hosts.schema.js +2 -2
- package/build/frontend/models/index.js +5 -2
- package/build/frontend/models/infra-provider.schema.js +27 -0
- package/build/frontend/models/internal-squad.schema.js +22 -0
- package/build/frontend/models/nodes.schema.js +6 -2
- package/build/frontend/models/users.schema.js +2 -3
- package/package.json +1 -1
- package/build/backend/api/controllers/inbounds.d.ts +0 -12
- package/build/backend/api/controllers/inbounds.d.ts.map +0 -1
- package/build/backend/api/controllers/inbounds.js +0 -14
- package/build/backend/api/controllers/xray.d.ts +0 -6
- package/build/backend/api/controllers/xray.d.ts.map +0 -1
- package/build/backend/api/controllers/xray.js +0 -8
- package/build/backend/commands/inbounds/bulk/add-inbound-to-nodes.command.d.ts +0 -33
- package/build/backend/commands/inbounds/bulk/add-inbound-to-nodes.command.d.ts.map +0 -1
- package/build/backend/commands/inbounds/bulk/add-inbound-to-nodes.command.js +0 -24
- package/build/backend/commands/inbounds/bulk/add-inbound-to-users.command.d.ts +0 -33
- package/build/backend/commands/inbounds/bulk/add-inbound-to-users.command.d.ts.map +0 -1
- package/build/backend/commands/inbounds/bulk/add-inbound-to-users.command.js +0 -24
- package/build/backend/commands/inbounds/bulk/index.d.ts +0 -5
- package/build/backend/commands/inbounds/bulk/index.d.ts.map +0 -1
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-nodes.command.d.ts +0 -33
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-nodes.command.d.ts.map +0 -1
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-nodes.command.js +0 -24
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-users.command.d.ts +0 -33
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-users.command.d.ts.map +0 -1
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-users.command.js +0 -24
- package/build/backend/commands/inbounds/get-full-inbounds.command.d.ts +0 -115
- package/build/backend/commands/inbounds/get-full-inbounds.command.d.ts.map +0 -1
- package/build/backend/commands/inbounds/get-full-inbounds.command.js +0 -16
- package/build/backend/commands/inbounds/get-inbounds.command.d.ts +0 -50
- package/build/backend/commands/inbounds/get-inbounds.command.d.ts.map +0 -1
- package/build/backend/commands/inbounds/get-inbounds.command.js +0 -22
- package/build/backend/commands/inbounds/index.d.ts +0 -4
- package/build/backend/commands/inbounds/index.d.ts.map +0 -1
- package/build/backend/commands/users/actions/activate-all-inbounds.command.d.ts +0 -271
- package/build/backend/commands/users/actions/activate-all-inbounds.command.d.ts.map +0 -1
- package/build/backend/commands/users/actions/activate-all-inbounds.command.js +0 -19
- package/build/backend/commands/users/bulk/bulk-update-users-inbounds.command.d.ts.map +0 -1
- package/build/backend/commands/users/bulk/bulk-update-users-inbounds.command.js +0 -23
- package/build/backend/commands/users/get-by/get-user-by-subscription-uuid.command.d.ts +0 -271
- package/build/backend/commands/users/get-by/get-user-by-subscription-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/users/get-by/get-user-by-subscription-uuid.command.js +0 -19
- package/build/backend/commands/xray/get-config.command.d.ts +0 -25
- package/build/backend/commands/xray/get-config.command.d.ts.map +0 -1
- package/build/backend/commands/xray/get-config.command.js +0 -17
- package/build/backend/commands/xray/index.d.ts +0 -3
- package/build/backend/commands/xray/index.d.ts.map +0 -1
- package/build/backend/commands/xray/update-config.command.d.ts +0 -27
- package/build/backend/commands/xray/update-config.command.d.ts.map +0 -1
- package/build/backend/commands/xray/update-config.command.js +0 -18
- package/build/backend/models/full-inbounds.schema.d.ts +0 -67
- package/build/backend/models/full-inbounds.schema.d.ts.map +0 -1
- package/build/backend/models/full-inbounds.schema.js +0 -21
- package/build/backend/models/inbounds.schema.d.ts.map +0 -1
- package/build/frontend/api/controllers/inbounds.js +0 -14
- package/build/frontend/api/controllers/xray.js +0 -8
- package/build/frontend/commands/inbounds/bulk/add-inbound-to-nodes.command.js +0 -24
- package/build/frontend/commands/inbounds/bulk/add-inbound-to-users.command.js +0 -24
- package/build/frontend/commands/inbounds/bulk/remove-inbound-from-nodes.command.js +0 -24
- package/build/frontend/commands/inbounds/bulk/remove-inbound-from-users.command.js +0 -24
- package/build/frontend/commands/inbounds/get-full-inbounds.command.js +0 -16
- package/build/frontend/commands/inbounds/get-inbounds.command.js +0 -22
- package/build/frontend/commands/inbounds/index.js +0 -19
- package/build/frontend/commands/users/actions/activate-all-inbounds.command.js +0 -19
- package/build/frontend/commands/users/bulk/bulk-update-users-inbounds.command.js +0 -23
- package/build/frontend/commands/users/get-by/get-user-by-subscription-uuid.command.js +0 -19
- package/build/frontend/commands/xray/get-config.command.js +0 -17
- package/build/frontend/commands/xray/index.js +0 -18
- package/build/frontend/commands/xray/update-config.command.js +0 -18
- package/build/frontend/models/full-inbounds.schema.js +0 -21
@@ -0,0 +1,11 @@
|
|
1
|
+
export declare const CONFIG_PROFILES_CONTROLLER: "config-profiles";
|
2
|
+
export declare const CONFIG_PROFILES_ROUTES: {
|
3
|
+
readonly GET: "";
|
4
|
+
readonly CREATE: "";
|
5
|
+
readonly UPDATE: "";
|
6
|
+
readonly GET_BY_UUID: (uuid: string) => string;
|
7
|
+
readonly DELETE: (uuid: string) => string;
|
8
|
+
readonly GET_INBOUNDS_BY_PROFILE_UUID: (uuid: string) => string;
|
9
|
+
readonly GET_ALL_INBOUNDS: "inbounds";
|
10
|
+
};
|
11
|
+
//# sourceMappingURL=config-profiles.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"config-profiles.d.ts","sourceRoot":"","sources":["../../../../api/controllers/config-profiles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,EAAG,iBAA0B,CAAC;AAErE,eAAO,MAAM,sBAAsB;;;;iCAIX,MAAM;4BACX,MAAM;kDACgB,MAAM;;CAErC,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CONFIG_PROFILES_ROUTES = exports.CONFIG_PROFILES_CONTROLLER = void 0;
|
4
|
+
exports.CONFIG_PROFILES_CONTROLLER = 'config-profiles';
|
5
|
+
exports.CONFIG_PROFILES_ROUTES = {
|
6
|
+
GET: '', // Get list of all config profiles // get
|
7
|
+
CREATE: '', // Create new config profile // post
|
8
|
+
UPDATE: '', // Update config profile by uuid // patch
|
9
|
+
GET_BY_UUID: (uuid) => `${uuid}`, // Get config profile by uuid // get
|
10
|
+
DELETE: (uuid) => `${uuid}`, // Delete config profile by uuid // delete
|
11
|
+
GET_INBOUNDS_BY_PROFILE_UUID: (uuid) => `${uuid}/inbounds`, // Get list of all inbounds by config profile uuid // get
|
12
|
+
GET_ALL_INBOUNDS: 'inbounds', // Get list of all inbounds // get
|
13
|
+
};
|
@@ -1,8 +1,10 @@
|
|
1
1
|
export * from './api-tokens';
|
2
2
|
export * from './auth';
|
3
|
+
export * from './config-profiles';
|
3
4
|
export * from './hosts';
|
4
5
|
export * from './hwid';
|
5
|
-
export * from './
|
6
|
+
export * from './infra-billing';
|
7
|
+
export * from './internal-squads';
|
6
8
|
export * from './keygen';
|
7
9
|
export * from './nodes';
|
8
10
|
export * from './subscription';
|
@@ -11,5 +13,4 @@ export * from './subscription-template';
|
|
11
13
|
export * from './subscriptions';
|
12
14
|
export * from './system';
|
13
15
|
export * from './users';
|
14
|
-
export * from './xray';
|
15
16
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../api/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../api/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
@@ -16,9 +16,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./api-tokens"), exports);
|
18
18
|
__exportStar(require("./auth"), exports);
|
19
|
+
__exportStar(require("./config-profiles"), exports);
|
19
20
|
__exportStar(require("./hosts"), exports);
|
20
21
|
__exportStar(require("./hwid"), exports);
|
21
|
-
__exportStar(require("./
|
22
|
+
__exportStar(require("./infra-billing"), exports);
|
23
|
+
__exportStar(require("./internal-squads"), exports);
|
22
24
|
__exportStar(require("./keygen"), exports);
|
23
25
|
__exportStar(require("./nodes"), exports);
|
24
26
|
__exportStar(require("./subscription"), exports);
|
@@ -27,4 +29,3 @@ __exportStar(require("./subscription-template"), exports);
|
|
27
29
|
__exportStar(require("./subscriptions"), exports);
|
28
30
|
__exportStar(require("./system"), exports);
|
29
31
|
__exportStar(require("./users"), exports);
|
30
|
-
__exportStar(require("./xray"), exports);
|
@@ -0,0 +1,16 @@
|
|
1
|
+
export declare const INFRA_BILLING_CONTROLLER: "infra-billing";
|
2
|
+
export declare const INFRA_BILLING_ROUTES: {
|
3
|
+
readonly GET_PROVIDERS: "providers";
|
4
|
+
readonly CREATE_PROVIDER: "providers";
|
5
|
+
readonly UPDATE_PROVIDER: "providers";
|
6
|
+
readonly DELETE_PROVIDER: (uuid: string) => string;
|
7
|
+
readonly GET_PROVIDER_BY_UUID: (uuid: string) => string;
|
8
|
+
readonly GET_BILLING_NODES: "nodes";
|
9
|
+
readonly CREATE_BILLING_NODE: "nodes";
|
10
|
+
readonly UPDATE_BILLING_NODE: (uuid: string) => string;
|
11
|
+
readonly DELETE_BILLING_NODE: (uuid: string) => string;
|
12
|
+
readonly GET_BILLING_HISTORY: "history";
|
13
|
+
readonly CREATE_BILLING_HISTORY: "history";
|
14
|
+
readonly DELETE_BILLING_HISTORY: (uuid: string) => string;
|
15
|
+
};
|
16
|
+
//# sourceMappingURL=infra-billing.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"infra-billing.d.ts","sourceRoot":"","sources":["../../../../api/controllers/infra-billing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAG,eAAwB,CAAC;AAEjE,eAAO,MAAM,oBAAoB;;;;qCAIL,MAAM;0CACD,MAAM;;;yCAIP,MAAM;yCACN,MAAM;;;4CAIH,MAAM;CAM/B,CAAC"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.INFRA_BILLING_ROUTES = exports.INFRA_BILLING_CONTROLLER = void 0;
|
4
|
+
exports.INFRA_BILLING_CONTROLLER = 'infra-billing';
|
5
|
+
exports.INFRA_BILLING_ROUTES = {
|
6
|
+
GET_PROVIDERS: 'providers', // Get list of all providers // get
|
7
|
+
CREATE_PROVIDER: 'providers', // Create new provider // post
|
8
|
+
UPDATE_PROVIDER: 'providers', // Update provider by uuid // patch
|
9
|
+
DELETE_PROVIDER: (uuid) => `providers/${uuid}`, // Delete provider by uuid // delete
|
10
|
+
GET_PROVIDER_BY_UUID: (uuid) => `providers/${uuid}`, // Get provider by uuid // get
|
11
|
+
GET_BILLING_NODES: 'nodes', // Get list of all nodes billing // get
|
12
|
+
CREATE_BILLING_NODE: 'nodes', // Create new node billing // post
|
13
|
+
UPDATE_BILLING_NODE: (uuid) => `nodes/${uuid}`, // Update node billing by uuid // patch
|
14
|
+
DELETE_BILLING_NODE: (uuid) => `nodes/${uuid}`, // Delete node billing by uuid // delete
|
15
|
+
GET_BILLING_HISTORY: 'history', // Get list of all nodes billing history // get
|
16
|
+
CREATE_BILLING_HISTORY: 'history', // Create new node billing history // post
|
17
|
+
DELETE_BILLING_HISTORY: (uuid) => `history/${uuid}`, // Delete node billing history by uuid // delete
|
18
|
+
// GET_BILLING_HISTORY_BY_NODE_UUID: (nodeUuid: string) => `history/${nodeUuid}`, // Get list of all nodes billing history by node uuid // get
|
19
|
+
// GET_BILLING_HISTORY_BY_PROVIDER_UUID: (providerUuid: string) => `history/${providerUuid}`, // Get list of all nodes billing history by provider uuid // get
|
20
|
+
// GET_BILLING_HISTORY_BY_NODE_UUID_AND_PROVIDER_UUID: (nodeUuid: string, providerUuid: string) =>
|
21
|
+
// `history/${nodeUuid}/${providerUuid}`, // Get list of all nodes billing history by node uuid and provider uuid // get
|
22
|
+
};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export declare const INTERNAL_SQUADS_CONTROLLER: "internal-squads";
|
2
|
+
export declare const INTERNAL_SQUADS_ROUTES: {
|
3
|
+
readonly GET: "";
|
4
|
+
readonly CREATE: "";
|
5
|
+
readonly UPDATE: "";
|
6
|
+
readonly GET_BY_UUID: (uuid: string) => string;
|
7
|
+
readonly DELETE: (uuid: string) => string;
|
8
|
+
};
|
9
|
+
//# sourceMappingURL=internal-squads.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"internal-squads.d.ts","sourceRoot":"","sources":["../../../../api/controllers/internal-squads.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,EAAG,iBAA0B,CAAC;AAErE,eAAO,MAAM,sBAAsB;;;;iCAIX,MAAM;4BACX,MAAM;CACf,CAAC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.INTERNAL_SQUADS_ROUTES = exports.INTERNAL_SQUADS_CONTROLLER = void 0;
|
4
|
+
exports.INTERNAL_SQUADS_CONTROLLER = 'internal-squads';
|
5
|
+
exports.INTERNAL_SQUADS_ROUTES = {
|
6
|
+
GET: '', // Get list of all internal squads // get
|
7
|
+
CREATE: '', // Create new internal squad // post
|
8
|
+
UPDATE: '', // Update internal squad by uuid // patch
|
9
|
+
GET_BY_UUID: (uuid) => `${uuid}`, // Get internal squad by uuid // get
|
10
|
+
DELETE: (uuid) => `${uuid}`, // Delete internal squad by uuid // delete
|
11
|
+
};
|
@@ -6,11 +6,11 @@ export declare const USERS_ROUTES: {
|
|
6
6
|
readonly GET: "";
|
7
7
|
readonly DELETE: (uuid: string) => string;
|
8
8
|
readonly GET_BY_UUID: (uuid: string) => string;
|
9
|
+
readonly ACCESSIBLE_NODES: (uuid: string) => string;
|
9
10
|
readonly ACTIONS: {
|
10
11
|
readonly ENABLE: (uuid: string) => string;
|
11
12
|
readonly DISABLE: (uuid: string) => string;
|
12
13
|
readonly RESET_TRAFFIC: (uuid: string) => string;
|
13
|
-
readonly ACTIVATE_ALL_INBOUNDS: (uuid: string) => string;
|
14
14
|
readonly REVOKE_SUBSCRIPTION: (uuid: string) => string;
|
15
15
|
};
|
16
16
|
readonly GET_BY: {
|
@@ -27,7 +27,7 @@ export declare const USERS_ROUTES: {
|
|
27
27
|
readonly RESET_TRAFFIC: "bulk/reset-traffic";
|
28
28
|
readonly REVOKE_SUBSCRIPTION: "bulk/revoke-subscription";
|
29
29
|
readonly DELETE: "bulk/delete";
|
30
|
-
readonly
|
30
|
+
readonly UPDATE_SQUADS: "bulk/update-squads";
|
31
31
|
readonly ALL: {
|
32
32
|
readonly UPDATE: "bulk/all/update";
|
33
33
|
readonly RESET_TRAFFIC: "bulk/all/reset-traffic";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../../api/controllers/users.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,mBAAmB,EAAG,SAAkB,CAAC;AAEtD,eAAO,MAAM,YAAY;;;;4BAIN,MAAM;iCACD,MAAM;;
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../../api/controllers/users.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,mBAAmB,EAAG,SAAkB,CAAC;AAEtD,eAAO,MAAM,YAAY;;;;4BAIN,MAAM;iCACD,MAAM;sCACD,MAAM;;gCAEZ,MAAM;iCACL,MAAM;uCACA,MAAM;6CACA,MAAM;;;yCAGV,MAAM;sCACT,MAAM;uDACW,MAAM;2CAClB,MAAM;gCACjB,MAAM;4BACV,MAAM;;;;;;;;;;;;;;;4CAiBU,MAAM;;;;;CAM/B,CAAC"}
|
@@ -9,11 +9,11 @@ exports.USERS_ROUTES = {
|
|
9
9
|
GET: '',
|
10
10
|
DELETE: (uuid) => `${uuid}`,
|
11
11
|
GET_BY_UUID: (uuid) => `${uuid}`,
|
12
|
+
ACCESSIBLE_NODES: (uuid) => `${uuid}/accessible-nodes`,
|
12
13
|
ACTIONS: {
|
13
14
|
ENABLE: (uuid) => `${uuid}/${exports.USERS_ACTIONS_ROUTE}/enable`,
|
14
15
|
DISABLE: (uuid) => `${uuid}/${exports.USERS_ACTIONS_ROUTE}/disable`,
|
15
16
|
RESET_TRAFFIC: (uuid) => `${uuid}/${exports.USERS_ACTIONS_ROUTE}/reset-traffic`,
|
16
|
-
ACTIVATE_ALL_INBOUNDS: (uuid) => `${uuid}/${exports.USERS_ACTIONS_ROUTE}/activate-all-inbounds`,
|
17
17
|
REVOKE_SUBSCRIPTION: (uuid) => `${uuid}/${exports.USERS_ACTIONS_ROUTE}/revoke`,
|
18
18
|
},
|
19
19
|
GET_BY: {
|
@@ -30,7 +30,7 @@ exports.USERS_ROUTES = {
|
|
30
30
|
RESET_TRAFFIC: 'bulk/reset-traffic',
|
31
31
|
REVOKE_SUBSCRIPTION: 'bulk/revoke-subscription',
|
32
32
|
DELETE: 'bulk/delete',
|
33
|
-
|
33
|
+
UPDATE_SQUADS: 'bulk/update-squads',
|
34
34
|
ALL: {
|
35
35
|
UPDATE: 'bulk/all/update',
|
36
36
|
RESET_TRAFFIC: 'bulk/all/reset-traffic',
|
@@ -37,31 +37,17 @@ export declare const REST_API: {
|
|
37
37
|
readonly USAGE_REALTIME: "/api/nodes/usage/realtime";
|
38
38
|
};
|
39
39
|
};
|
40
|
-
readonly XRAY: {
|
41
|
-
readonly GET: "/api/xray/";
|
42
|
-
readonly UPDATE: "/api/xray/";
|
43
|
-
};
|
44
|
-
readonly INBOUNDS: {
|
45
|
-
readonly GET_INBOUNDS: "/api/inbounds/";
|
46
|
-
readonly GET_FULL_INBOUNDS: "/api/inbounds/full";
|
47
|
-
readonly BULK: {
|
48
|
-
readonly ADD_INBOUND_TO_USERS: "/api/inbounds/bulk/add-to-users";
|
49
|
-
readonly REMOVE_INBOUND_FROM_USERS: "/api/inbounds/bulk/remove-from-users";
|
50
|
-
readonly ADD_INBOUND_TO_NODES: "/api/inbounds/bulk/add-to-nodes";
|
51
|
-
readonly REMOVE_INBOUND_FROM_NODES: "/api/inbounds/bulk/remove-from-nodes";
|
52
|
-
};
|
53
|
-
};
|
54
40
|
readonly USERS: {
|
55
41
|
readonly CREATE: "/api/users/";
|
56
42
|
readonly UPDATE: "/api/users/";
|
57
43
|
readonly GET: "/api/users/";
|
58
44
|
readonly DELETE: (uuid: string) => string;
|
59
45
|
readonly GET_BY_UUID: (uuid: string) => string;
|
46
|
+
readonly ACCESSIBLE_NODES: (uuid: string) => string;
|
60
47
|
readonly ACTIONS: {
|
61
48
|
readonly DISABLE: (uuid: string) => string;
|
62
49
|
readonly ENABLE: (uuid: string) => string;
|
63
50
|
readonly RESET_TRAFFIC: (uuid: string) => string;
|
64
|
-
readonly ACTIVATE_ALL_INBOUNDS: (uuid: string) => string;
|
65
51
|
readonly REVOKE_SUBSCRIPTION: (uuid: string) => string;
|
66
52
|
};
|
67
53
|
readonly GET_BY: {
|
@@ -78,7 +64,7 @@ export declare const REST_API: {
|
|
78
64
|
readonly RESET_TRAFFIC: "/api/users/bulk/reset-traffic";
|
79
65
|
readonly REVOKE_SUBSCRIPTION: "/api/users/bulk/revoke-subscription";
|
80
66
|
readonly DELETE: "/api/users/bulk/delete";
|
81
|
-
readonly
|
67
|
+
readonly UPDATE_SQUADS: "/api/users/bulk/update-squads";
|
82
68
|
readonly ALL: {
|
83
69
|
readonly UPDATE: "/api/users/bulk/all/update";
|
84
70
|
readonly RESET_TRAFFIC: "/api/users/bulk/all/reset-traffic";
|
@@ -140,5 +126,35 @@ export declare const REST_API: {
|
|
140
126
|
readonly USERNAME: (username: string) => string;
|
141
127
|
};
|
142
128
|
};
|
129
|
+
readonly CONFIG_PROFILES: {
|
130
|
+
readonly GET: "/api/config-profiles/";
|
131
|
+
readonly CREATE: "/api/config-profiles/";
|
132
|
+
readonly UPDATE: "/api/config-profiles/";
|
133
|
+
readonly GET_BY_UUID: (uuid: string) => string;
|
134
|
+
readonly DELETE: (uuid: string) => string;
|
135
|
+
readonly GET_INBOUNDS_BY_PROFILE_UUID: (uuid: string) => string;
|
136
|
+
readonly GET_ALL_INBOUNDS: "/api/config-profiles/inbounds";
|
137
|
+
};
|
138
|
+
readonly INTERNAL_SQUADS: {
|
139
|
+
readonly GET: "/api/internal-squads/";
|
140
|
+
readonly CREATE: "/api/internal-squads/";
|
141
|
+
readonly UPDATE: "/api/internal-squads/";
|
142
|
+
readonly GET_BY_UUID: (uuid: string) => string;
|
143
|
+
readonly DELETE: (uuid: string) => string;
|
144
|
+
};
|
145
|
+
readonly INFRA_BILLING: {
|
146
|
+
readonly GET_PROVIDERS: "/api/infra-billing/providers";
|
147
|
+
readonly CREATE_PROVIDER: "/api/infra-billing/providers";
|
148
|
+
readonly UPDATE_PROVIDER: "/api/infra-billing/providers";
|
149
|
+
readonly DELETE_PROVIDER: (uuid: string) => string;
|
150
|
+
readonly GET_PROVIDER_BY_UUID: (uuid: string) => string;
|
151
|
+
readonly GET_BILLING_NODES: "/api/infra-billing/nodes";
|
152
|
+
readonly CREATE_BILLING_NODE: "/api/infra-billing/nodes";
|
153
|
+
readonly UPDATE_BILLING_NODE: (uuid: string) => string;
|
154
|
+
readonly DELETE_BILLING_NODE: (uuid: string) => string;
|
155
|
+
readonly GET_BILLING_HISTORY: "/api/infra-billing/history";
|
156
|
+
readonly CREATE_BILLING_HISTORY: "/api/infra-billing/history";
|
157
|
+
readonly DELETE_BILLING_HISTORY: (uuid: string) => string;
|
158
|
+
};
|
143
159
|
};
|
144
160
|
//# sourceMappingURL=routes.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;gCAYE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;;;;;iDAUM,MAAM
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;gCAYE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;;;;;iDAUM,MAAM;;;;;;;;gCAWvB,MAAM;qCAGD,MAAM;0CAED,MAAM;;qCAIX,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;6CAOV,MAAM;0CAIT,MAAM;2DAIW,MAAM;+CAIlB,MAAM;oCAIjB,MAAM;gCAIV,MAAM;;;;;;;;;;;;;;;gDAmBU,MAAM;;;;;;;kCAWpB,MAAM;0CAEE,MAAM;uCAET,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;qCAuBD,MAAM;;;;;;;;;mDAYQ,MAAM;;;;;;0CASf,MAAM;;;;;;;qCAUX,MAAM;gCAIX,MAAM;sDAIgB,MAAM;;;;;;;qCAUvB,MAAM;gCAIX,MAAM;;;;;;yCAUG,MAAM;8CAED,MAAM;;;6CAKP,MAAM;6CAEN,MAAM;;;gDAKH,MAAM;;CAGnC,CAAC"}
|
@@ -74,31 +74,17 @@ exports.REST_API = {
|
|
74
74
|
USAGE_REALTIME: `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.STATS.USAGE_REALTIME}`,
|
75
75
|
},
|
76
76
|
},
|
77
|
-
XRAY: {
|
78
|
-
GET: `${exports.ROOT}/${CONTROLLERS.XRAY_CONTROLLER}/${CONTROLLERS.XRAY_ROUTES.GET}`,
|
79
|
-
UPDATE: `${exports.ROOT}/${CONTROLLERS.XRAY_CONTROLLER}/${CONTROLLERS.XRAY_ROUTES.UPDATE}`,
|
80
|
-
},
|
81
|
-
INBOUNDS: {
|
82
|
-
GET_INBOUNDS: `${exports.ROOT}/${CONTROLLERS.INBOUNDS_CONTROLLER}/${CONTROLLERS.INBOUNDS_ROUTES.GET_INBOUNDS}`,
|
83
|
-
GET_FULL_INBOUNDS: `${exports.ROOT}/${CONTROLLERS.INBOUNDS_CONTROLLER}/${CONTROLLERS.INBOUNDS_ROUTES.GET_FULL_INBOUNDS}`,
|
84
|
-
BULK: {
|
85
|
-
ADD_INBOUND_TO_USERS: `${exports.ROOT}/${CONTROLLERS.INBOUNDS_CONTROLLER}/${CONTROLLERS.INBOUNDS_ROUTES.BULK.ADD_INBOUND_TO_USERS}`,
|
86
|
-
REMOVE_INBOUND_FROM_USERS: `${exports.ROOT}/${CONTROLLERS.INBOUNDS_CONTROLLER}/${CONTROLLERS.INBOUNDS_ROUTES.BULK.REMOVE_INBOUND_FROM_USERS}`,
|
87
|
-
ADD_INBOUND_TO_NODES: `${exports.ROOT}/${CONTROLLERS.INBOUNDS_CONTROLLER}/${CONTROLLERS.INBOUNDS_ROUTES.BULK.ADD_INBOUND_TO_NODES}`,
|
88
|
-
REMOVE_INBOUND_FROM_NODES: `${exports.ROOT}/${CONTROLLERS.INBOUNDS_CONTROLLER}/${CONTROLLERS.INBOUNDS_ROUTES.BULK.REMOVE_INBOUND_FROM_NODES}`,
|
89
|
-
},
|
90
|
-
},
|
91
77
|
USERS: {
|
92
78
|
CREATE: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.CREATE}`,
|
93
79
|
UPDATE: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.UPDATE}`,
|
94
80
|
GET: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET}`,
|
95
81
|
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.DELETE(uuid)}`,
|
96
82
|
GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET_BY_UUID(uuid)}`,
|
83
|
+
ACCESSIBLE_NODES: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACCESSIBLE_NODES(uuid)}`,
|
97
84
|
ACTIONS: {
|
98
85
|
DISABLE: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACTIONS.DISABLE(uuid)}`,
|
99
86
|
ENABLE: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACTIONS.ENABLE(uuid)}`,
|
100
87
|
RESET_TRAFFIC: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACTIONS.RESET_TRAFFIC(uuid)}`,
|
101
|
-
ACTIVATE_ALL_INBOUNDS: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACTIONS.ACTIVATE_ALL_INBOUNDS(uuid)}`,
|
102
88
|
REVOKE_SUBSCRIPTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACTIONS.REVOKE_SUBSCRIPTION(uuid)}`,
|
103
89
|
},
|
104
90
|
GET_BY: {
|
@@ -115,7 +101,7 @@ exports.REST_API = {
|
|
115
101
|
RESET_TRAFFIC: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.BULK.RESET_TRAFFIC}`,
|
116
102
|
REVOKE_SUBSCRIPTION: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.BULK.REVOKE_SUBSCRIPTION}`,
|
117
103
|
DELETE: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.BULK.DELETE}`,
|
118
|
-
|
104
|
+
UPDATE_SQUADS: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.BULK.UPDATE_SQUADS}`,
|
119
105
|
ALL: {
|
120
106
|
UPDATE: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.BULK.ALL.UPDATE}`,
|
121
107
|
RESET_TRAFFIC: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.BULK.ALL.RESET_TRAFFIC}`,
|
@@ -177,4 +163,34 @@ exports.REST_API = {
|
|
177
163
|
USERNAME: (username) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTIONS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTIONS_ROUTES.GET_BY.USERNAME(username)}`,
|
178
164
|
},
|
179
165
|
},
|
166
|
+
CONFIG_PROFILES: {
|
167
|
+
GET: `${exports.ROOT}/${CONTROLLERS.CONFIG_PROFILES_CONTROLLER}/${CONTROLLERS.CONFIG_PROFILES_ROUTES.GET}`,
|
168
|
+
CREATE: `${exports.ROOT}/${CONTROLLERS.CONFIG_PROFILES_CONTROLLER}/${CONTROLLERS.CONFIG_PROFILES_ROUTES.CREATE}`,
|
169
|
+
UPDATE: `${exports.ROOT}/${CONTROLLERS.CONFIG_PROFILES_CONTROLLER}/${CONTROLLERS.CONFIG_PROFILES_ROUTES.UPDATE}`,
|
170
|
+
GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.CONFIG_PROFILES_CONTROLLER}/${CONTROLLERS.CONFIG_PROFILES_ROUTES.GET_BY_UUID(uuid)}`,
|
171
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.CONFIG_PROFILES_CONTROLLER}/${CONTROLLERS.CONFIG_PROFILES_ROUTES.DELETE(uuid)}`,
|
172
|
+
GET_INBOUNDS_BY_PROFILE_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.CONFIG_PROFILES_CONTROLLER}/${CONTROLLERS.CONFIG_PROFILES_ROUTES.GET_INBOUNDS_BY_PROFILE_UUID(uuid)}`,
|
173
|
+
GET_ALL_INBOUNDS: `${exports.ROOT}/${CONTROLLERS.CONFIG_PROFILES_CONTROLLER}/${CONTROLLERS.CONFIG_PROFILES_ROUTES.GET_ALL_INBOUNDS}`,
|
174
|
+
},
|
175
|
+
INTERNAL_SQUADS: {
|
176
|
+
GET: `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.GET}`,
|
177
|
+
CREATE: `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.CREATE}`,
|
178
|
+
UPDATE: `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.UPDATE}`,
|
179
|
+
GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.GET_BY_UUID(uuid)}`,
|
180
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.DELETE(uuid)}`,
|
181
|
+
},
|
182
|
+
INFRA_BILLING: {
|
183
|
+
GET_PROVIDERS: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_PROVIDERS}`,
|
184
|
+
CREATE_PROVIDER: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_PROVIDER}`,
|
185
|
+
UPDATE_PROVIDER: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.UPDATE_PROVIDER}`,
|
186
|
+
DELETE_PROVIDER: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_PROVIDER(uuid)}`,
|
187
|
+
GET_PROVIDER_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_PROVIDER_BY_UUID(uuid)}`,
|
188
|
+
GET_BILLING_NODES: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_BILLING_NODES}`,
|
189
|
+
CREATE_BILLING_NODE: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_BILLING_NODE}`,
|
190
|
+
UPDATE_BILLING_NODE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.UPDATE_BILLING_NODE(uuid)}`,
|
191
|
+
DELETE_BILLING_NODE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_BILLING_NODE(uuid)}`,
|
192
|
+
GET_BILLING_HISTORY: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_BILLING_HISTORY}`,
|
193
|
+
CREATE_BILLING_HISTORY: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_BILLING_HISTORY}`,
|
194
|
+
DELETE_BILLING_HISTORY: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_BILLING_HISTORY(uuid)}`,
|
195
|
+
},
|
180
196
|
};
|
@@ -0,0 +1,161 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace CreateConfigProfileCommand {
|
3
|
+
const url: "/api/config-profiles/";
|
4
|
+
const TSQ_url: "/api/config-profiles/";
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
6
|
+
const RequestSchema: z.ZodObject<{
|
7
|
+
name: z.ZodString;
|
8
|
+
config: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
10
|
+
name: string;
|
11
|
+
config: {} & {
|
12
|
+
[k: string]: unknown;
|
13
|
+
};
|
14
|
+
}, {
|
15
|
+
name: string;
|
16
|
+
config: {} & {
|
17
|
+
[k: string]: unknown;
|
18
|
+
};
|
19
|
+
}>;
|
20
|
+
type Request = z.infer<typeof RequestSchema>;
|
21
|
+
const ResponseSchema: z.ZodObject<{
|
22
|
+
response: z.ZodObject<{
|
23
|
+
uuid: z.ZodString;
|
24
|
+
name: z.ZodString;
|
25
|
+
config: z.ZodUnknown;
|
26
|
+
inbounds: z.ZodArray<z.ZodObject<{
|
27
|
+
uuid: z.ZodString;
|
28
|
+
profileUuid: z.ZodString;
|
29
|
+
tag: z.ZodString;
|
30
|
+
type: z.ZodString;
|
31
|
+
network: z.ZodNullable<z.ZodString>;
|
32
|
+
security: z.ZodNullable<z.ZodString>;
|
33
|
+
port: z.ZodNullable<z.ZodNumber>;
|
34
|
+
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
36
|
+
type: string;
|
37
|
+
uuid: string;
|
38
|
+
profileUuid: string;
|
39
|
+
tag: string;
|
40
|
+
network: string | null;
|
41
|
+
security: string | null;
|
42
|
+
port: number | null;
|
43
|
+
rawInbound?: unknown;
|
44
|
+
}, {
|
45
|
+
type: string;
|
46
|
+
uuid: string;
|
47
|
+
profileUuid: string;
|
48
|
+
tag: string;
|
49
|
+
network: string | null;
|
50
|
+
security: string | null;
|
51
|
+
port: number | null;
|
52
|
+
rawInbound?: unknown;
|
53
|
+
}>, "many">;
|
54
|
+
nodes: z.ZodArray<z.ZodObject<{
|
55
|
+
uuid: z.ZodString;
|
56
|
+
name: z.ZodString;
|
57
|
+
countryCode: z.ZodString;
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
59
|
+
uuid: string;
|
60
|
+
name: string;
|
61
|
+
countryCode: string;
|
62
|
+
}, {
|
63
|
+
uuid: string;
|
64
|
+
name: string;
|
65
|
+
countryCode: string;
|
66
|
+
}>, "many">;
|
67
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
68
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
70
|
+
inbounds: {
|
71
|
+
type: string;
|
72
|
+
uuid: string;
|
73
|
+
profileUuid: string;
|
74
|
+
tag: string;
|
75
|
+
network: string | null;
|
76
|
+
security: string | null;
|
77
|
+
port: number | null;
|
78
|
+
rawInbound?: unknown;
|
79
|
+
}[];
|
80
|
+
nodes: {
|
81
|
+
uuid: string;
|
82
|
+
name: string;
|
83
|
+
countryCode: string;
|
84
|
+
}[];
|
85
|
+
uuid: string;
|
86
|
+
createdAt: Date;
|
87
|
+
updatedAt: Date;
|
88
|
+
name: string;
|
89
|
+
config?: unknown;
|
90
|
+
}, {
|
91
|
+
inbounds: {
|
92
|
+
type: string;
|
93
|
+
uuid: string;
|
94
|
+
profileUuid: string;
|
95
|
+
tag: string;
|
96
|
+
network: string | null;
|
97
|
+
security: string | null;
|
98
|
+
port: number | null;
|
99
|
+
rawInbound?: unknown;
|
100
|
+
}[];
|
101
|
+
nodes: {
|
102
|
+
uuid: string;
|
103
|
+
name: string;
|
104
|
+
countryCode: string;
|
105
|
+
}[];
|
106
|
+
uuid: string;
|
107
|
+
createdAt: string;
|
108
|
+
updatedAt: string;
|
109
|
+
name: string;
|
110
|
+
config?: unknown;
|
111
|
+
}>;
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
113
|
+
response: {
|
114
|
+
inbounds: {
|
115
|
+
type: string;
|
116
|
+
uuid: string;
|
117
|
+
profileUuid: string;
|
118
|
+
tag: string;
|
119
|
+
network: string | null;
|
120
|
+
security: string | null;
|
121
|
+
port: number | null;
|
122
|
+
rawInbound?: unknown;
|
123
|
+
}[];
|
124
|
+
nodes: {
|
125
|
+
uuid: string;
|
126
|
+
name: string;
|
127
|
+
countryCode: string;
|
128
|
+
}[];
|
129
|
+
uuid: string;
|
130
|
+
createdAt: Date;
|
131
|
+
updatedAt: Date;
|
132
|
+
name: string;
|
133
|
+
config?: unknown;
|
134
|
+
};
|
135
|
+
}, {
|
136
|
+
response: {
|
137
|
+
inbounds: {
|
138
|
+
type: string;
|
139
|
+
uuid: string;
|
140
|
+
profileUuid: string;
|
141
|
+
tag: string;
|
142
|
+
network: string | null;
|
143
|
+
security: string | null;
|
144
|
+
port: number | null;
|
145
|
+
rawInbound?: unknown;
|
146
|
+
}[];
|
147
|
+
nodes: {
|
148
|
+
uuid: string;
|
149
|
+
name: string;
|
150
|
+
countryCode: string;
|
151
|
+
}[];
|
152
|
+
uuid: string;
|
153
|
+
createdAt: string;
|
154
|
+
updatedAt: string;
|
155
|
+
name: string;
|
156
|
+
config?: unknown;
|
157
|
+
};
|
158
|
+
}>;
|
159
|
+
type Response = z.infer<typeof ResponseSchema>;
|
160
|
+
}
|
161
|
+
//# sourceMappingURL=create-config-profile.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"create-config-profile.command.d.ts","sourceRoot":"","sources":["../../../../commands/config-profiles/create-config-profile.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,yBAAkC,CAAC;IAC5C,MAAM,OAAO,yBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;MAUxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CreateConfigProfileCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const api_1 = require("../../api");
|
6
|
+
const constants_1 = require("../../constants");
|
7
|
+
const models_1 = require("../../models");
|
8
|
+
var CreateConfigProfileCommand;
|
9
|
+
(function (CreateConfigProfileCommand) {
|
10
|
+
CreateConfigProfileCommand.url = api_1.REST_API.CONFIG_PROFILES.CREATE;
|
11
|
+
CreateConfigProfileCommand.TSQ_url = CreateConfigProfileCommand.url;
|
12
|
+
CreateConfigProfileCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONFIG_PROFILES_ROUTES.CREATE, 'post', 'Create config profile');
|
13
|
+
CreateConfigProfileCommand.RequestSchema = zod_1.z.object({
|
14
|
+
name: zod_1.z
|
15
|
+
.string()
|
16
|
+
.min(2, 'Name must be at least 2 characters')
|
17
|
+
.max(20, 'Name must be less than 20 characters')
|
18
|
+
.regex(/^[A-Za-z0-9_-]+$/, 'Name can only contain letters, numbers, underscores and dashes'),
|
19
|
+
config: zod_1.z.object({}).passthrough(),
|
20
|
+
});
|
21
|
+
CreateConfigProfileCommand.ResponseSchema = zod_1.z.object({
|
22
|
+
response: models_1.ConfigProfileSchema,
|
23
|
+
});
|
24
|
+
})(CreateConfigProfileCommand || (exports.CreateConfigProfileCommand = CreateConfigProfileCommand = {}));
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace DeleteConfigProfileCommand {
|
3
|
+
const url: (uuid: string) => string;
|
4
|
+
const TSQ_url: string;
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
6
|
+
const RequestSchema: z.ZodObject<{
|
7
|
+
uuid: z.ZodString;
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
uuid: string;
|
10
|
+
}, {
|
11
|
+
uuid: string;
|
12
|
+
}>;
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
15
|
+
response: z.ZodObject<{
|
16
|
+
isDeleted: z.ZodBoolean;
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
18
|
+
isDeleted: boolean;
|
19
|
+
}, {
|
20
|
+
isDeleted: boolean;
|
21
|
+
}>;
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
23
|
+
response: {
|
24
|
+
isDeleted: boolean;
|
25
|
+
};
|
26
|
+
}, {
|
27
|
+
response: {
|
28
|
+
isDeleted: boolean;
|
29
|
+
};
|
30
|
+
}>;
|
31
|
+
type Response = z.infer<typeof ResponseSchema>;
|
32
|
+
}
|
33
|
+
//# sourceMappingURL=delete-config-profile.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"delete-config-profile.command.d.ts","sourceRoot":"","sources":["../../../../commands/config-profiles/delete-config-profile.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,0BAAkC,CAAC;IAC5C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DeleteConfigProfileCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const api_1 = require("../../api");
|
6
|
+
const constants_1 = require("../../constants");
|
7
|
+
var DeleteConfigProfileCommand;
|
8
|
+
(function (DeleteConfigProfileCommand) {
|
9
|
+
DeleteConfigProfileCommand.url = api_1.REST_API.CONFIG_PROFILES.DELETE;
|
10
|
+
DeleteConfigProfileCommand.TSQ_url = DeleteConfigProfileCommand.url(':uuid');
|
11
|
+
DeleteConfigProfileCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONFIG_PROFILES_ROUTES.DELETE(':uuid'), 'delete', 'Delete config profile');
|
12
|
+
DeleteConfigProfileCommand.RequestSchema = zod_1.z.object({
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
14
|
+
});
|
15
|
+
DeleteConfigProfileCommand.ResponseSchema = zod_1.z.object({
|
16
|
+
response: zod_1.z.object({
|
17
|
+
isDeleted: zod_1.z.boolean(),
|
18
|
+
}),
|
19
|
+
});
|
20
|
+
})(DeleteConfigProfileCommand || (exports.DeleteConfigProfileCommand = DeleteConfigProfileCommand = {}));
|