@remnawave/backend-contract 2.9.14 → 2.9.21
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/bandwidth-stats.d.ts +7 -8
- package/build/backend/api/controllers/bandwidth-stats.d.ts.map +1 -1
- package/build/backend/api/controllers/bandwidth-stats.js +8 -20
- package/build/backend/api/controllers/connections.d.ts +1 -1
- package/build/backend/api/controllers/connections.d.ts.map +1 -1
- package/build/backend/api/controllers/connections.js +1 -1
- package/build/backend/api/controllers/hwid.d.ts +1 -1
- package/build/backend/api/controllers/hwid.d.ts.map +1 -1
- package/build/backend/api/controllers/hwid.js +1 -1
- package/build/backend/api/controllers/internal-squads.d.ts +2 -0
- package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
- package/build/backend/api/controllers/internal-squads.js +2 -0
- package/build/backend/api/controllers/metadata.d.ts +4 -4
- package/build/backend/api/controllers/metadata.d.ts.map +1 -1
- package/build/backend/api/controllers/metadata.js +4 -4
- package/build/backend/api/controllers/remnawave-settings.d.ts +2 -2
- package/build/backend/api/controllers/remnawave-settings.d.ts.map +1 -1
- package/build/backend/api/controllers/remnawave-settings.js +3 -3
- package/build/backend/api/controllers/subscriptions.d.ts +2 -2
- package/build/backend/api/controllers/subscriptions.d.ts.map +1 -1
- package/build/backend/api/controllers/subscriptions.js +2 -2
- package/build/backend/api/controllers/users.d.ts +9 -13
- package/build/backend/api/controllers/users.d.ts.map +1 -1
- package/build/backend/api/controllers/users.js +9 -13
- package/build/backend/api/controllers-info.d.ts +15 -15
- package/build/backend/api/controllers-info.js +15 -15
- package/build/backend/api/routes.d.ts +22 -23
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +24 -25
- package/build/backend/commands/bandwidth-stats/index.d.ts +1 -1
- package/build/backend/commands/bandwidth-stats/index.d.ts.map +1 -1
- package/build/backend/commands/bandwidth-stats/index.js +1 -1
- package/build/backend/commands/bandwidth-stats/internal-squads/get-internal-squad-usage.command.d.ts +31 -0
- package/build/backend/commands/bandwidth-stats/internal-squads/get-internal-squad-usage.command.d.ts.map +1 -0
- package/build/backend/commands/bandwidth-stats/internal-squads/get-internal-squad-usage.command.js +50 -0
- package/build/backend/commands/bandwidth-stats/internal-squads/get-internal-squad-user-usage.command.d.ts +29 -0
- package/build/backend/commands/bandwidth-stats/internal-squads/get-internal-squad-user-usage.command.d.ts.map +1 -0
- package/build/backend/commands/bandwidth-stats/internal-squads/get-internal-squad-user-usage.command.js +34 -0
- package/build/backend/commands/bandwidth-stats/internal-squads/index.d.ts +3 -0
- package/build/backend/commands/bandwidth-stats/internal-squads/index.d.ts.map +1 -0
- package/build/backend/commands/bandwidth-stats/{legacy → internal-squads}/index.js +2 -2
- package/build/backend/commands/bandwidth-stats/nodes/get-node-usage.command.d.ts +29 -0
- package/build/backend/commands/bandwidth-stats/nodes/get-node-usage.command.d.ts.map +1 -0
- package/build/backend/commands/bandwidth-stats/nodes/get-node-usage.command.js +38 -0
- package/build/backend/commands/bandwidth-stats/nodes/index.d.ts +1 -0
- package/build/backend/commands/bandwidth-stats/nodes/index.d.ts.map +1 -1
- package/build/backend/commands/bandwidth-stats/nodes/index.js +1 -0
- package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.d.ts +2 -2
- package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.d.ts.map +1 -1
- package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.js +5 -4
- package/build/backend/commands/connections/connections-by-node-result.command.d.ts +1 -1
- package/build/backend/commands/connections/connections-by-node-result.command.js +1 -1
- package/build/backend/commands/connections/connections-by-user-result.command.d.ts +1 -2
- package/build/backend/commands/connections/connections-by-user-result.command.d.ts.map +1 -1
- package/build/backend/commands/connections/connections-by-user-result.command.js +1 -2
- package/build/backend/commands/connections/connections-by-user.command.d.ts +2 -2
- package/build/backend/commands/connections/connections-by-user.command.d.ts.map +1 -1
- package/build/backend/commands/connections/connections-by-user.command.js +4 -3
- package/build/backend/commands/connections/drop-connections.command.d.ts +4 -4
- package/build/backend/commands/connections/drop-connections.command.js +3 -3
- package/build/backend/commands/hwid/create-user-hwid-device.command.d.ts +1 -1
- package/build/backend/commands/hwid/create-user-hwid-device.command.js +1 -1
- package/build/backend/commands/hwid/delete-all-user-hwid-devices.command.d.ts +1 -1
- package/build/backend/commands/hwid/delete-all-user-hwid-devices.command.js +1 -1
- package/build/backend/commands/hwid/delete-user-hwid-device.command.d.ts +1 -1
- package/build/backend/commands/hwid/delete-user-hwid-device.command.js +1 -1
- package/build/backend/commands/hwid/get-top-users-by-hwid-devices.command.d.ts +0 -1
- package/build/backend/commands/hwid/get-top-users-by-hwid-devices.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/get-top-users-by-hwid-devices.command.js +0 -1
- package/build/backend/commands/hwid/get-user-hwid-devices.command.d.ts +2 -2
- 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 +3 -3
- package/build/backend/commands/internal-squads/bulk-actions/add-many-users-to-internal-squad.command.d.ts +15 -0
- package/build/backend/commands/internal-squads/bulk-actions/add-many-users-to-internal-squad.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/bulk-actions/add-many-users-to-internal-squad.command.js +18 -0
- package/build/backend/commands/internal-squads/bulk-actions/delete-many-users-from-internal-squad.command.d.ts +15 -0
- package/build/backend/commands/internal-squads/bulk-actions/delete-many-users-from-internal-squad.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/bulk-actions/delete-many-users-from-internal-squad.command.js +18 -0
- package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +2 -0
- package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/bulk-actions/index.js +2 -0
- package/build/backend/commands/metadata/user/get-user-metadata.command.d.ts +2 -2
- package/build/backend/commands/metadata/user/get-user-metadata.command.d.ts.map +1 -1
- package/build/backend/commands/metadata/user/get-user-metadata.command.js +4 -3
- package/build/backend/commands/metadata/user/upsert-user-metadata.command.d.ts +2 -2
- package/build/backend/commands/metadata/user/upsert-user-metadata.command.d.ts.map +1 -1
- package/build/backend/commands/metadata/user/upsert-user-metadata.command.js +3 -3
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.d.ts +1 -1
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.js +1 -1
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts +0 -1
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts.map +1 -1
- package/build/backend/commands/remnawave-settings/get-remnawave-settings.command.js +1 -1
- package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.js +1 -1
- package/build/backend/commands/subscriptions/get-by/{get-connection-keys-by-uuid.command.d.ts → get-connection-keys-by-user-id.command.d.ts} +4 -4
- package/build/backend/commands/subscriptions/get-by/get-connection-keys-by-user-id.command.d.ts.map +1 -0
- package/build/backend/commands/subscriptions/get-by/get-connection-keys-by-user-id.command.js +23 -0
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +0 -1
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/get-by/{get-subscription-by-uuid.command.d.ts → get-subscription-by-user-id.command.d.ts} +4 -4
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-user-id.command.d.ts.map +1 -0
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-user-id.command.js +19 -0
- package/build/backend/commands/subscriptions/get-by/index.d.ts +2 -2
- package/build/backend/commands/subscriptions/get-by/index.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/get-by/index.js +2 -2
- package/build/backend/commands/users/actions/disable-user.command.d.ts +2 -3
- package/build/backend/commands/users/actions/disable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/disable-user.command.js +4 -3
- package/build/backend/commands/users/actions/enable-user.command.d.ts +2 -3
- package/build/backend/commands/users/actions/enable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/enable-user.command.js +4 -3
- package/build/backend/commands/users/{get-by/get-user-by-id.command.d.ts → actions/extend-user.command.d.ts} +8 -5
- package/build/backend/commands/users/actions/extend-user.command.d.ts.map +1 -0
- package/build/backend/commands/users/actions/extend-user.command.js +21 -0
- package/build/backend/commands/users/actions/index.d.ts +1 -0
- package/build/backend/commands/users/actions/index.d.ts.map +1 -1
- package/build/backend/commands/users/actions/index.js +1 -0
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +2 -3
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/reset-user-traffic.command.js +4 -3
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +2 -3
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/revoke-user-subscription.command.js +4 -3
- package/build/backend/commands/users/bulk/bulk-delete-users.command.d.ts +1 -1
- package/build/backend/commands/users/bulk/bulk-delete-users.command.js +2 -2
- package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.d.ts +1 -1
- package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.js +1 -1
- package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.d.ts +1 -1
- package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.js +2 -2
- package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.d.ts +1 -1
- package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.js +2 -2
- package/build/backend/commands/users/bulk/bulk-update-users-squads.command.d.ts +1 -1
- package/build/backend/commands/users/bulk/bulk-update-users-squads.command.js +2 -2
- package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts +1 -1
- package/build/backend/commands/users/bulk/bulk-update-users.command.js +2 -2
- package/build/backend/commands/users/create-user.command.d.ts +0 -2
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.js +0 -3
- package/build/backend/commands/users/delete-user.command.d.ts +2 -2
- package/build/backend/commands/users/delete-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/delete-user.command.js +4 -3
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +0 -1
- 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-username.command.d.ts +0 -1
- 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 +3 -3
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-accessible-nodes.command.js +5 -4
- package/build/backend/commands/users/{get-user-by-uuid.command.d.ts → get-user-by-id.command.d.ts} +4 -5
- package/build/backend/commands/users/get-user-by-id.command.d.ts.map +1 -0
- package/build/backend/commands/users/{get-by/get-user-by-id.command.js → get-user-by-id.command.js} +8 -7
- package/build/backend/commands/users/get-user-subscription-request-history.command.d.ts +2 -2
- package/build/backend/commands/users/get-user-subscription-request-history.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-subscription-request-history.command.js +5 -5
- package/build/backend/commands/users/get-users-stream.command.d.ts +0 -1
- package/build/backend/commands/users/get-users-stream.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-users.command.d.ts +0 -1
- package/build/backend/commands/users/get-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/index.d.ts +1 -1
- package/build/backend/commands/users/index.d.ts.map +1 -1
- package/build/backend/commands/users/index.js +1 -1
- package/build/backend/commands/users/resolve-user.command.d.ts +2 -2
- package/build/backend/commands/users/resolve-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/resolve-user.command.js +5 -5
- package/build/backend/commands/users/update-user.command.d.ts +1 -2
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.js +4 -6
- package/build/backend/commands/users/user.response.d.ts +0 -1
- package/build/backend/commands/users/user.response.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.d.ts +18 -8
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +18 -8
- package/build/backend/models/extended-users.schema.d.ts +0 -1
- package/build/backend/models/extended-users.schema.d.ts.map +1 -1
- package/build/backend/models/index.d.ts +1 -0
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +1 -0
- package/build/backend/models/path-params.schema.d.ts +3 -0
- package/build/backend/models/path-params.schema.d.ts.map +1 -0
- package/build/backend/models/path-params.schema.js +5 -0
- package/build/backend/models/torrent-blocker-report.schema.d.ts +0 -1
- package/build/backend/models/torrent-blocker-report.schema.d.ts.map +1 -1
- package/build/backend/models/torrent-blocker-report.schema.js +0 -1
- package/build/backend/models/users.schema.d.ts +0 -1
- package/build/backend/models/users.schema.d.ts.map +1 -1
- package/build/backend/models/users.schema.js +0 -1
- package/build/backend/models/webhook/webhook.schema.d.ts +0 -6
- package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
- package/build/frontend/api/controllers/bandwidth-stats.js +8 -20
- package/build/frontend/api/controllers/connections.js +1 -1
- package/build/frontend/api/controllers/hwid.js +1 -1
- package/build/frontend/api/controllers/internal-squads.js +2 -0
- package/build/frontend/api/controllers/metadata.js +4 -4
- package/build/frontend/api/controllers/remnawave-settings.js +3 -3
- package/build/frontend/api/controllers/subscriptions.js +2 -2
- package/build/frontend/api/controllers/users.js +9 -13
- package/build/frontend/api/controllers-info.js +15 -15
- package/build/frontend/api/routes.js +24 -25
- package/build/frontend/commands/bandwidth-stats/index.js +1 -1
- package/build/frontend/commands/bandwidth-stats/internal-squads/get-internal-squad-usage.command.js +50 -0
- package/build/frontend/commands/bandwidth-stats/internal-squads/get-internal-squad-user-usage.command.js +34 -0
- package/build/frontend/commands/bandwidth-stats/{legacy → internal-squads}/index.js +2 -2
- package/build/frontend/commands/bandwidth-stats/nodes/get-node-usage.command.js +38 -0
- package/build/frontend/commands/bandwidth-stats/nodes/index.js +1 -0
- package/build/frontend/commands/bandwidth-stats/users/get-stats-user-usage.command.js +5 -4
- package/build/frontend/commands/connections/connections-by-node-result.command.js +1 -1
- package/build/frontend/commands/connections/connections-by-user-result.command.js +1 -2
- package/build/frontend/commands/connections/connections-by-user.command.js +4 -3
- package/build/frontend/commands/connections/drop-connections.command.js +3 -3
- package/build/frontend/commands/hwid/create-user-hwid-device.command.js +1 -1
- package/build/frontend/commands/hwid/delete-all-user-hwid-devices.command.js +1 -1
- package/build/frontend/commands/hwid/delete-user-hwid-device.command.js +1 -1
- package/build/frontend/commands/hwid/get-top-users-by-hwid-devices.command.js +0 -1
- package/build/frontend/commands/hwid/get-user-hwid-devices.command.js +3 -3
- package/build/frontend/commands/internal-squads/bulk-actions/add-many-users-to-internal-squad.command.js +18 -0
- package/build/frontend/commands/internal-squads/bulk-actions/delete-many-users-from-internal-squad.command.js +18 -0
- package/build/frontend/commands/internal-squads/bulk-actions/index.js +2 -0
- package/build/frontend/commands/metadata/user/get-user-metadata.command.js +4 -3
- package/build/frontend/commands/metadata/user/upsert-user-metadata.command.js +3 -3
- package/build/frontend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.js +1 -1
- package/build/frontend/commands/remnawave-settings/get-remnawave-settings.command.js +1 -1
- package/build/frontend/commands/remnawave-settings/update-remnawave-settings.command.js +1 -1
- package/build/frontend/commands/subscriptions/get-by/get-connection-keys-by-user-id.command.js +23 -0
- package/build/frontend/commands/subscriptions/get-by/get-subscription-by-user-id.command.js +19 -0
- package/build/frontend/commands/subscriptions/get-by/index.js +2 -2
- package/build/frontend/commands/users/actions/disable-user.command.js +4 -3
- package/build/frontend/commands/users/actions/enable-user.command.js +4 -3
- package/build/frontend/commands/users/actions/extend-user.command.js +21 -0
- package/build/frontend/commands/users/actions/index.js +1 -0
- package/build/frontend/commands/users/actions/reset-user-traffic.command.js +4 -3
- package/build/frontend/commands/users/actions/revoke-user-subscription.command.js +4 -3
- package/build/frontend/commands/users/bulk/bulk-delete-users.command.js +2 -2
- package/build/frontend/commands/users/bulk/bulk-extend-expiration-date.command.js +1 -1
- package/build/frontend/commands/users/bulk/bulk-reset-traffic-users.command.js +2 -2
- package/build/frontend/commands/users/bulk/bulk-revoke-users-subscription.command.js +2 -2
- package/build/frontend/commands/users/bulk/bulk-update-users-squads.command.js +2 -2
- package/build/frontend/commands/users/bulk/bulk-update-users.command.js +2 -2
- package/build/frontend/commands/users/create-user.command.js +0 -3
- package/build/frontend/commands/users/delete-user.command.js +4 -3
- package/build/frontend/commands/users/get-by/index.js +0 -1
- package/build/frontend/commands/users/get-user-accessible-nodes.command.js +5 -4
- package/build/frontend/commands/users/{get-by/get-user-by-id.command.js → get-user-by-id.command.js} +8 -7
- package/build/frontend/commands/users/get-user-subscription-request-history.command.js +5 -5
- package/build/frontend/commands/users/index.js +1 -1
- package/build/frontend/commands/users/resolve-user.command.js +5 -5
- package/build/frontend/commands/users/update-user.command.js +4 -6
- package/build/frontend/constants/errors/errors.js +18 -8
- package/build/frontend/models/index.js +1 -0
- package/build/frontend/models/path-params.schema.js +5 -0
- package/build/frontend/models/torrent-blocker-report.schema.js +0 -1
- package/build/frontend/models/users.schema.js +0 -1
- package/package.json +1 -1
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.d.ts +0 -26
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.d.ts.map +0 -1
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.js +0 -28
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.d.ts +0 -27
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.d.ts.map +0 -1
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.js +0 -29
- package/build/backend/commands/bandwidth-stats/legacy/index.d.ts +0 -3
- package/build/backend/commands/bandwidth-stats/legacy/index.d.ts.map +0 -1
- package/build/backend/commands/subscriptions/get-by/get-connection-keys-by-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/subscriptions/get-by/get-connection-keys-by-uuid.command.js +0 -22
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-uuid.command.js +0 -19
- package/build/backend/commands/users/get-by/get-user-by-id.command.d.ts.map +0 -1
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/users/get-user-by-uuid.command.js +0 -17
- package/build/frontend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.js +0 -28
- package/build/frontend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.js +0 -29
- package/build/frontend/commands/subscriptions/get-by/get-connection-keys-by-uuid.command.js +0 -22
- package/build/frontend/commands/subscriptions/get-by/get-subscription-by-uuid.command.js +0 -19
- package/build/frontend/commands/users/get-user-by-uuid.command.js +0 -17
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExtendUserCommand = 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
|
+
const user_response_1 = require("../user.response");
|
|
9
|
+
var ExtendUserCommand;
|
|
10
|
+
(function (ExtendUserCommand) {
|
|
11
|
+
ExtendUserCommand.url = api_1.REST_API.USERS.ACTIONS.EXTEND_EXPIRATION_DATE;
|
|
12
|
+
ExtendUserCommand.TSQ_url = ExtendUserCommand.url(':userId');
|
|
13
|
+
ExtendUserCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACTIONS.EXTEND_EXPIRATION_DATE(':userId'), 'post', 'Extend user expiration date', { scope: 'extend', kind: 'write' }, 'If user status is EXPIRED, the new expiration date is calculated from the current date and the user becomes ACTIVE. If user status is ACTIVE, the given number of days is added to the existing expiration date. DISABLED and LIMITED users will be extended, but their status will not change.');
|
|
14
|
+
ExtendUserCommand.RequestParamSchema = zod_1.z.object({
|
|
15
|
+
userId: models_1.numberParamSchema,
|
|
16
|
+
});
|
|
17
|
+
ExtendUserCommand.RequestBodySchema = zod_1.z.object({
|
|
18
|
+
days: zod_1.z.number().min(1).describe('The number of days to extend the expiration date.'),
|
|
19
|
+
});
|
|
20
|
+
ExtendUserCommand.ResponseSchema = user_response_1.UserResponseSchema;
|
|
21
|
+
})(ExtendUserCommand || (exports.ExtendUserCommand = ExtendUserCommand = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC"}
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./disable-user.command"), exports);
|
|
|
18
18
|
__exportStar(require("./enable-user.command"), exports);
|
|
19
19
|
__exportStar(require("./reset-user-traffic.command"), exports);
|
|
20
20
|
__exportStar(require("./revoke-user-subscription.command"), exports);
|
|
21
|
+
__exportStar(require("./extend-user.command"), exports);
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare namespace ResetUserTrafficCommand {
|
|
3
|
-
const url: (
|
|
3
|
+
const url: (userId: string) => string;
|
|
4
4
|
const TSQ_url: string;
|
|
5
5
|
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
6
|
const RequestParamSchema: z.ZodObject<{
|
|
7
|
-
|
|
7
|
+
userId: z.ZodCoercedNumber<unknown>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
const ResponseSchema: z.ZodObject<{
|
|
10
10
|
response: z.ZodObject<{
|
|
11
|
-
uuid: z.ZodUUID;
|
|
12
11
|
id: z.ZodNumber;
|
|
13
12
|
shortUuid: z.ZodString;
|
|
14
13
|
username: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset-user-traffic.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/reset-user-traffic.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"reset-user-traffic.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/reset-user-traffic.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,4BAAuC,CAAC;IACjD,MAAM,OAAO,QAAiB,CAAC;IAE/B,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -4,14 +4,15 @@ exports.ResetUserTrafficCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../../api");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
|
+
const models_1 = require("../../../models");
|
|
7
8
|
const user_response_1 = require("../user.response");
|
|
8
9
|
var ResetUserTrafficCommand;
|
|
9
10
|
(function (ResetUserTrafficCommand) {
|
|
10
11
|
ResetUserTrafficCommand.url = api_1.REST_API.USERS.ACTIONS.RESET_TRAFFIC;
|
|
11
|
-
ResetUserTrafficCommand.TSQ_url = ResetUserTrafficCommand.url(':
|
|
12
|
-
ResetUserTrafficCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACTIONS.RESET_TRAFFIC(':
|
|
12
|
+
ResetUserTrafficCommand.TSQ_url = ResetUserTrafficCommand.url(':userId');
|
|
13
|
+
ResetUserTrafficCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACTIONS.RESET_TRAFFIC(':userId'), 'post', 'Reset user traffic', { scope: 'reset-traffic', kind: 'write' });
|
|
13
14
|
ResetUserTrafficCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
-
|
|
15
|
+
userId: models_1.numberParamSchema,
|
|
15
16
|
});
|
|
16
17
|
ResetUserTrafficCommand.ResponseSchema = user_response_1.UserResponseSchema;
|
|
17
18
|
})(ResetUserTrafficCommand || (exports.ResetUserTrafficCommand = ResetUserTrafficCommand = {}));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare namespace RevokeUserSubscriptionCommand {
|
|
3
|
-
const url: (
|
|
3
|
+
const url: (userId: string) => string;
|
|
4
4
|
const TSQ_url: string;
|
|
5
5
|
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
6
|
const RequestParamSchema: z.ZodObject<{
|
|
7
|
-
|
|
7
|
+
userId: z.ZodCoercedNumber<unknown>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
const RequestBodySchema: z.ZodPreprocess<z.ZodObject<{
|
|
10
10
|
revokeOnlyPasswords: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -12,7 +12,6 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
|
12
12
|
}, z.core.$strip>>;
|
|
13
13
|
const ResponseSchema: z.ZodObject<{
|
|
14
14
|
response: z.ZodObject<{
|
|
15
|
-
uuid: z.ZodUUID;
|
|
16
15
|
id: z.ZodNumber;
|
|
17
16
|
shortUuid: z.ZodString;
|
|
18
17
|
username: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revoke-user-subscription.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/revoke-user-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"revoke-user-subscription.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/revoke-user-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,4BAA6C,CAAC;IACvD,MAAM,OAAO,QAAiB,CAAC;IAE/B,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,iBAAiB;;;sBAqB7B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -4,14 +4,15 @@ exports.RevokeUserSubscriptionCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../../api");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
|
+
const models_1 = require("../../../models");
|
|
7
8
|
const user_response_1 = require("../user.response");
|
|
8
9
|
var RevokeUserSubscriptionCommand;
|
|
9
10
|
(function (RevokeUserSubscriptionCommand) {
|
|
10
11
|
RevokeUserSubscriptionCommand.url = api_1.REST_API.USERS.ACTIONS.REVOKE_SUBSCRIPTION;
|
|
11
|
-
RevokeUserSubscriptionCommand.TSQ_url = RevokeUserSubscriptionCommand.url(':
|
|
12
|
-
RevokeUserSubscriptionCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACTIONS.REVOKE_SUBSCRIPTION(':
|
|
12
|
+
RevokeUserSubscriptionCommand.TSQ_url = RevokeUserSubscriptionCommand.url(':userId');
|
|
13
|
+
RevokeUserSubscriptionCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACTIONS.REVOKE_SUBSCRIPTION(':userId'), 'post', 'Revoke user subscription', { scope: 'revoke-subscription', kind: 'write' });
|
|
13
14
|
RevokeUserSubscriptionCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
-
|
|
15
|
+
userId: models_1.numberParamSchema,
|
|
15
16
|
});
|
|
16
17
|
RevokeUserSubscriptionCommand.RequestBodySchema = zod_1.z.preprocess((val) => val || {}, zod_1.z.object({
|
|
17
18
|
revokeOnlyPasswords: zod_1.z.optional(zod_1.z
|
|
@@ -4,7 +4,7 @@ export declare namespace BulkDeleteUsersCommand {
|
|
|
4
4
|
const TSQ_url: "/api/users/bulk/delete";
|
|
5
5
|
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
6
|
const RequestBodySchema: z.ZodObject<{
|
|
7
|
-
|
|
7
|
+
userIds: z.ZodArray<z.ZodNumber>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
10
10
|
}
|
|
@@ -8,8 +8,8 @@ var BulkDeleteUsersCommand;
|
|
|
8
8
|
(function (BulkDeleteUsersCommand) {
|
|
9
9
|
BulkDeleteUsersCommand.url = api_1.REST_API.USERS.BULK.DELETE;
|
|
10
10
|
BulkDeleteUsersCommand.TSQ_url = BulkDeleteUsersCommand.url;
|
|
11
|
-
BulkDeleteUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.DELETE, 'post', 'Bulk delete users by
|
|
11
|
+
BulkDeleteUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.DELETE, 'post', 'Bulk delete users by User IDs', { scope: 'bulk-delete', kind: 'write' });
|
|
12
12
|
BulkDeleteUsersCommand.RequestBodySchema = zod_1.z.object({
|
|
13
|
-
|
|
13
|
+
userIds: zod_1.z.array(zod_1.z.number()).min(1).max(500),
|
|
14
14
|
});
|
|
15
15
|
})(BulkDeleteUsersCommand || (exports.BulkDeleteUsersCommand = BulkDeleteUsersCommand = {}));
|
|
@@ -4,7 +4,7 @@ export declare namespace BulkExtendExpirationDateCommand {
|
|
|
4
4
|
const TSQ_url: "/api/users/bulk/extend-expiration-date";
|
|
5
5
|
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
6
|
const RequestBodySchema: z.ZodObject<{
|
|
7
|
-
|
|
7
|
+
userIds: z.ZodArray<z.ZodNumber>;
|
|
8
8
|
extendDays: z.ZodInt;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
@@ -10,7 +10,7 @@ var BulkExtendExpirationDateCommand;
|
|
|
10
10
|
BulkExtendExpirationDateCommand.TSQ_url = BulkExtendExpirationDateCommand.url;
|
|
11
11
|
BulkExtendExpirationDateCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.EXTEND_EXPIRATION_DATE, 'post', 'Extend expiration date for specified users by days', { scope: 'bulk-extend-expiration-date', kind: 'write' });
|
|
12
12
|
BulkExtendExpirationDateCommand.RequestBodySchema = zod_1.z.object({
|
|
13
|
-
|
|
13
|
+
userIds: zod_1.z.array(zod_1.z.number()).min(1).max(500),
|
|
14
14
|
extendDays: zod_1.z.int().min(1).max(9999),
|
|
15
15
|
});
|
|
16
16
|
})(BulkExtendExpirationDateCommand || (exports.BulkExtendExpirationDateCommand = BulkExtendExpirationDateCommand = {}));
|
|
@@ -4,7 +4,7 @@ export declare namespace BulkResetTrafficUsersCommand {
|
|
|
4
4
|
const TSQ_url: "/api/users/bulk/reset-traffic";
|
|
5
5
|
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
6
|
const RequestBodySchema: z.ZodObject<{
|
|
7
|
-
|
|
7
|
+
userIds: z.ZodArray<z.ZodNumber>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
10
10
|
}
|
|
@@ -8,8 +8,8 @@ var BulkResetTrafficUsersCommand;
|
|
|
8
8
|
(function (BulkResetTrafficUsersCommand) {
|
|
9
9
|
BulkResetTrafficUsersCommand.url = api_1.REST_API.USERS.BULK.RESET_TRAFFIC;
|
|
10
10
|
BulkResetTrafficUsersCommand.TSQ_url = BulkResetTrafficUsersCommand.url;
|
|
11
|
-
BulkResetTrafficUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.RESET_TRAFFIC, 'post', 'Bulk reset traffic users by
|
|
11
|
+
BulkResetTrafficUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.RESET_TRAFFIC, 'post', 'Bulk reset traffic users by User IDs', { scope: 'bulk-reset-traffic', kind: 'write' });
|
|
12
12
|
BulkResetTrafficUsersCommand.RequestBodySchema = zod_1.z.object({
|
|
13
|
-
|
|
13
|
+
userIds: zod_1.z.array(zod_1.z.number()).min(1).max(500),
|
|
14
14
|
});
|
|
15
15
|
})(BulkResetTrafficUsersCommand || (exports.BulkResetTrafficUsersCommand = BulkResetTrafficUsersCommand = {}));
|
|
@@ -4,7 +4,7 @@ export declare namespace BulkRevokeUsersSubscriptionCommand {
|
|
|
4
4
|
const TSQ_url: "/api/users/bulk/revoke-subscription";
|
|
5
5
|
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
6
|
const RequestBodySchema: z.ZodObject<{
|
|
7
|
-
|
|
7
|
+
userIds: z.ZodArray<z.ZodNumber>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
10
10
|
}
|
|
@@ -8,8 +8,8 @@ var BulkRevokeUsersSubscriptionCommand;
|
|
|
8
8
|
(function (BulkRevokeUsersSubscriptionCommand) {
|
|
9
9
|
BulkRevokeUsersSubscriptionCommand.url = api_1.REST_API.USERS.BULK.REVOKE_SUBSCRIPTION;
|
|
10
10
|
BulkRevokeUsersSubscriptionCommand.TSQ_url = BulkRevokeUsersSubscriptionCommand.url;
|
|
11
|
-
BulkRevokeUsersSubscriptionCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.REVOKE_SUBSCRIPTION, 'post', 'Revoke users subscription by User
|
|
11
|
+
BulkRevokeUsersSubscriptionCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.REVOKE_SUBSCRIPTION, 'post', 'Revoke users subscription by User IDs', { scope: 'bulk-revoke-subscription', kind: 'write' });
|
|
12
12
|
BulkRevokeUsersSubscriptionCommand.RequestBodySchema = zod_1.z.object({
|
|
13
|
-
|
|
13
|
+
userIds: zod_1.z.array(zod_1.z.number()).min(1).max(500),
|
|
14
14
|
});
|
|
15
15
|
})(BulkRevokeUsersSubscriptionCommand || (exports.BulkRevokeUsersSubscriptionCommand = BulkRevokeUsersSubscriptionCommand = {}));
|
|
@@ -4,7 +4,7 @@ export declare namespace BulkUpdateUsersSquadsCommand {
|
|
|
4
4
|
const TSQ_url: "/api/users/bulk/update-squads";
|
|
5
5
|
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
6
|
const RequestBodySchema: z.ZodObject<{
|
|
7
|
-
|
|
7
|
+
userIds: z.ZodArray<z.ZodNumber>;
|
|
8
8
|
activeInternalSquads: z.ZodArray<z.ZodUUID>;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
@@ -8,9 +8,9 @@ var BulkUpdateUsersSquadsCommand;
|
|
|
8
8
|
(function (BulkUpdateUsersSquadsCommand) {
|
|
9
9
|
BulkUpdateUsersSquadsCommand.url = api_1.REST_API.USERS.BULK.UPDATE_SQUADS;
|
|
10
10
|
BulkUpdateUsersSquadsCommand.TSQ_url = BulkUpdateUsersSquadsCommand.url;
|
|
11
|
-
BulkUpdateUsersSquadsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.UPDATE_SQUADS, 'post', 'Bulk update users internal squads by
|
|
11
|
+
BulkUpdateUsersSquadsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.UPDATE_SQUADS, 'post', 'Bulk update users internal squads by User IDs', { scope: 'bulk-update-squads', kind: 'write' });
|
|
12
12
|
BulkUpdateUsersSquadsCommand.RequestBodySchema = zod_1.z.object({
|
|
13
|
-
|
|
13
|
+
userIds: zod_1.z.array(zod_1.z.number()).min(1).max(500),
|
|
14
14
|
activeInternalSquads: zod_1.z.array(zod_1.z.uuid()),
|
|
15
15
|
});
|
|
16
16
|
})(BulkUpdateUsersSquadsCommand || (exports.BulkUpdateUsersSquadsCommand = BulkUpdateUsersSquadsCommand = {}));
|
|
@@ -4,7 +4,7 @@ export declare namespace BulkUpdateUsersCommand {
|
|
|
4
4
|
const TSQ_url: "/api/users/bulk/update";
|
|
5
5
|
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
6
|
const RequestBodySchema: z.ZodObject<{
|
|
7
|
-
|
|
7
|
+
userIds: z.ZodArray<z.ZodNumber>;
|
|
8
8
|
fields: z.ZodObject<{
|
|
9
9
|
status: z.ZodOptional<z.ZodEnum<{
|
|
10
10
|
readonly ACTIVE: "ACTIVE";
|
|
@@ -10,9 +10,9 @@ var BulkUpdateUsersCommand;
|
|
|
10
10
|
(function (BulkUpdateUsersCommand) {
|
|
11
11
|
BulkUpdateUsersCommand.url = api_1.REST_API.USERS.BULK.UPDATE;
|
|
12
12
|
BulkUpdateUsersCommand.TSQ_url = BulkUpdateUsersCommand.url;
|
|
13
|
-
BulkUpdateUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.UPDATE, 'post', 'Bulk update users by
|
|
13
|
+
BulkUpdateUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.UPDATE, 'post', 'Bulk update users by User IDs', { scope: 'bulk-update-users', kind: 'write' });
|
|
14
14
|
BulkUpdateUsersCommand.RequestBodySchema = zod_1.z.object({
|
|
15
|
-
|
|
15
|
+
userIds: zod_1.z.array(zod_1.z.number()).min(1).max(500),
|
|
16
16
|
fields: zod_1.z.object({
|
|
17
17
|
status: models_1.UsersSchema.shape.status.optional(),
|
|
18
18
|
trafficLimitBytes: zod_1.z.optional(zod_1.z.number().min(0).describe('Traffic limit in bytes. 0 - unlimited')),
|
|
@@ -32,12 +32,10 @@ export declare namespace CreateUserCommand {
|
|
|
32
32
|
email: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
|
|
33
33
|
hwidDeviceLimit: z.ZodOptional<z.ZodInt>;
|
|
34
34
|
activeInternalSquads: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
35
|
-
uuid: z.ZodOptional<z.ZodUUID>;
|
|
36
35
|
externalSquadUuid: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
37
36
|
}, z.core.$strip>;
|
|
38
37
|
const ResponseSchema: z.ZodObject<{
|
|
39
38
|
response: z.ZodObject<{
|
|
40
|
-
uuid: z.ZodUUID;
|
|
41
39
|
id: z.ZodNumber;
|
|
42
40
|
shortUuid: z.ZodString;
|
|
43
41
|
username: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/create-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"create-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/create-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAsG5B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -89,9 +89,6 @@ var CreateUserCommand;
|
|
|
89
89
|
.array(zod_1.z.uuid())
|
|
90
90
|
.optional()
|
|
91
91
|
.describe('Optional. Array of UUIDs representing enabled internal squads.'),
|
|
92
|
-
uuid: zod_1.z.optional(zod_1.z
|
|
93
|
-
.uuid()
|
|
94
|
-
.describe('Optional. Pass UUID to create user with specific UUID, otherwise it will be generated automatically.')),
|
|
95
92
|
externalSquadUuid: zod_1.z
|
|
96
93
|
.optional(zod_1.z.nullable(zod_1.z.uuid()))
|
|
97
94
|
.describe('Optional. External squad UUID.'),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare namespace DeleteUserCommand {
|
|
3
|
-
const url: (
|
|
3
|
+
const url: (userId: string) => string;
|
|
4
4
|
const TSQ_url: string;
|
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
6
|
const RequestParamSchema: z.ZodObject<{
|
|
7
|
-
|
|
7
|
+
userId: z.ZodCoercedNumber<unknown>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/delete-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"delete-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/delete-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,4BAAwB,CAAC;IAClC,MAAM,OAAO,QAAiB,CAAC;IAE/B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;CACjE"}
|
|
@@ -4,12 +4,13 @@ exports.DeleteUserCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
|
+
const models_1 = require("../../models");
|
|
7
8
|
var DeleteUserCommand;
|
|
8
9
|
(function (DeleteUserCommand) {
|
|
9
10
|
DeleteUserCommand.url = api_1.REST_API.USERS.DELETE;
|
|
10
|
-
DeleteUserCommand.TSQ_url = DeleteUserCommand.url(':
|
|
11
|
-
DeleteUserCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.DELETE(':
|
|
11
|
+
DeleteUserCommand.TSQ_url = DeleteUserCommand.url(':userId');
|
|
12
|
+
DeleteUserCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.DELETE(':userId'), 'delete', 'Delete user', { scope: 'delete', kind: 'write' });
|
|
12
13
|
DeleteUserCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
-
|
|
14
|
+
userId: models_1.numberParamSchema,
|
|
14
15
|
});
|
|
15
16
|
})(DeleteUserCommand || (exports.DeleteUserCommand = DeleteUserCommand = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/get-by/get-user-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,+BAAmC,CAAC;IAC7C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-user-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/get-by/get-user-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,+BAAmC,CAAC;IAC7C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-by-username.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/get-by/get-user-by-username.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAmB,CAAC;IAEjC,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-user-by-username.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/get-by/get-user-by-username.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAmB,CAAC;IAEjC,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/users/get-by/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/users/get-by/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC"}
|
|
@@ -14,6 +14,5 @@ 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("./get-user-by-id.command"), exports);
|
|
18
17
|
__exportStar(require("./get-user-by-short-uuid.command"), exports);
|
|
19
18
|
__exportStar(require("./get-user-by-username.command"), exports);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare namespace GetUserAccessibleNodesCommand {
|
|
3
|
-
const url: (
|
|
3
|
+
const url: (userId: string) => string;
|
|
4
4
|
const TSQ_url: string;
|
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
6
|
const RequestParamSchema: z.ZodObject<{
|
|
7
|
-
|
|
7
|
+
userId: z.ZodCoercedNumber<unknown>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
const ResponseSchema: z.ZodObject<{
|
|
10
10
|
response: z.ZodObject<{
|
|
11
|
-
|
|
11
|
+
userId: z.ZodNumber;
|
|
12
12
|
activeNodes: z.ZodArray<z.ZodObject<{
|
|
13
13
|
uuid: z.ZodUUID;
|
|
14
14
|
nodeName: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-accessible-nodes.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-accessible-nodes.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"get-user-accessible-nodes.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-accessible-nodes.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,4BAAkC,CAAC;IAC5C,MAAM,OAAO,QAAiB,CAAC;IAE/B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;qBAmBzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -4,17 +4,18 @@ exports.GetUserAccessibleNodesCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
|
+
const models_1 = require("../../models");
|
|
7
8
|
var GetUserAccessibleNodesCommand;
|
|
8
9
|
(function (GetUserAccessibleNodesCommand) {
|
|
9
10
|
GetUserAccessibleNodesCommand.url = api_1.REST_API.USERS.ACCESSIBLE_NODES;
|
|
10
|
-
GetUserAccessibleNodesCommand.TSQ_url = GetUserAccessibleNodesCommand.url(':
|
|
11
|
-
GetUserAccessibleNodesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACCESSIBLE_NODES(':
|
|
11
|
+
GetUserAccessibleNodesCommand.TSQ_url = GetUserAccessibleNodesCommand.url(':userId');
|
|
12
|
+
GetUserAccessibleNodesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACCESSIBLE_NODES(':userId'), 'get', 'Get user accessible nodes', { scope: 'accessible-nodes', kind: 'read' });
|
|
12
13
|
GetUserAccessibleNodesCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
-
|
|
14
|
+
userId: models_1.numberParamSchema,
|
|
14
15
|
});
|
|
15
16
|
GetUserAccessibleNodesCommand.ResponseSchema = zod_1.z.object({
|
|
16
17
|
response: zod_1.z.object({
|
|
17
|
-
|
|
18
|
+
userId: zod_1.z.number(),
|
|
18
19
|
activeNodes: zod_1.z.array(zod_1.z.object({
|
|
19
20
|
uuid: zod_1.z.uuid(),
|
|
20
21
|
nodeName: zod_1.z.string(),
|
package/build/backend/commands/users/{get-user-by-uuid.command.d.ts → get-user-by-id.command.d.ts}
RENAMED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare namespace
|
|
3
|
-
const url: (
|
|
2
|
+
export declare namespace GetUserByIdCommand {
|
|
3
|
+
const url: (userId: string) => string;
|
|
4
4
|
const TSQ_url: string;
|
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
6
|
const RequestParamSchema: z.ZodObject<{
|
|
7
|
-
|
|
7
|
+
userId: z.ZodCoercedNumber<unknown>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
const ResponseSchema: z.ZodObject<{
|
|
10
10
|
response: z.ZodObject<{
|
|
11
|
-
uuid: z.ZodUUID;
|
|
12
11
|
id: z.ZodNumber;
|
|
13
12
|
shortUuid: z.ZodString;
|
|
14
13
|
username: z.ZodString;
|
|
@@ -58,4 +57,4 @@ export declare namespace GetUserByUuidCommand {
|
|
|
58
57
|
type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
59
58
|
type Response = z.infer<typeof ResponseSchema>;
|
|
60
59
|
}
|
|
61
|
-
//# sourceMappingURL=get-user-by-
|
|
60
|
+
//# sourceMappingURL=get-user-by-id.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user-by-id.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-id.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,4BAA2B,CAAC;IACrC,MAAM,OAAO,QAAiB,CAAC;IAE/B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
package/build/backend/commands/users/{get-by/get-user-by-id.command.js → get-user-by-id.command.js}
RENAMED
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetUserByIdCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const api_1 = require("
|
|
6
|
-
const constants_1 = require("
|
|
7
|
-
const
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
const models_1 = require("../../models");
|
|
8
|
+
const user_response_1 = require("./user.response");
|
|
8
9
|
var GetUserByIdCommand;
|
|
9
10
|
(function (GetUserByIdCommand) {
|
|
10
|
-
GetUserByIdCommand.url = api_1.REST_API.USERS.
|
|
11
|
-
GetUserByIdCommand.TSQ_url = GetUserByIdCommand.url(':
|
|
12
|
-
GetUserByIdCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.
|
|
11
|
+
GetUserByIdCommand.url = api_1.REST_API.USERS.GET_BY_ID;
|
|
12
|
+
GetUserByIdCommand.TSQ_url = GetUserByIdCommand.url(':userId');
|
|
13
|
+
GetUserByIdCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.GET_BY_ID(':userId'), 'get', 'Get user by ID', { scope: 'by-id', kind: 'read' });
|
|
13
14
|
GetUserByIdCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
-
|
|
15
|
+
userId: models_1.numberParamSchema,
|
|
15
16
|
});
|
|
16
17
|
GetUserByIdCommand.ResponseSchema = user_response_1.UserResponseSchema;
|
|
17
18
|
})(GetUserByIdCommand || (exports.GetUserByIdCommand = GetUserByIdCommand = {}));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare namespace GetUserSubscriptionRequestHistoryCommand {
|
|
3
|
-
const url: (
|
|
3
|
+
const url: (userId: string) => string;
|
|
4
4
|
const TSQ_url: string;
|
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
6
|
const RequestParamSchema: z.ZodObject<{
|
|
7
|
-
|
|
7
|
+
userId: z.ZodCoercedNumber<unknown>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
const ResponseSchema: z.ZodObject<{
|
|
10
10
|
response: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-subscription-request-history.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-subscription-request-history.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"get-user-subscription-request-history.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-subscription-request-history.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,wCAAwC,CAAC;IAC/C,MAAM,GAAG,4BAA8C,CAAC;IACxD,MAAM,OAAO,QAAiB,CAAC;IAE/B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;qBAazB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -4,13 +4,14 @@ exports.GetUserSubscriptionRequestHistoryCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
|
+
const models_1 = require("../../models");
|
|
7
8
|
var GetUserSubscriptionRequestHistoryCommand;
|
|
8
9
|
(function (GetUserSubscriptionRequestHistoryCommand) {
|
|
9
10
|
GetUserSubscriptionRequestHistoryCommand.url = api_1.REST_API.USERS.SUBSCRIPTION_REQUEST_HISTORY;
|
|
10
|
-
GetUserSubscriptionRequestHistoryCommand.TSQ_url = GetUserSubscriptionRequestHistoryCommand.url(':
|
|
11
|
-
GetUserSubscriptionRequestHistoryCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.SUBSCRIPTION_REQUEST_HISTORY(':
|
|
11
|
+
GetUserSubscriptionRequestHistoryCommand.TSQ_url = GetUserSubscriptionRequestHistoryCommand.url(':userId');
|
|
12
|
+
GetUserSubscriptionRequestHistoryCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.SUBSCRIPTION_REQUEST_HISTORY(':userId'), 'get', 'Get user subscription request history, recent 24 records', { scope: 'subscription-request-history', kind: 'read' });
|
|
12
13
|
GetUserSubscriptionRequestHistoryCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
-
|
|
14
|
+
userId: models_1.numberParamSchema,
|
|
14
15
|
});
|
|
15
16
|
GetUserSubscriptionRequestHistoryCommand.ResponseSchema = zod_1.z.object({
|
|
16
17
|
response: zod_1.z.object({
|
|
@@ -18,8 +19,7 @@ var GetUserSubscriptionRequestHistoryCommand;
|
|
|
18
19
|
records: zod_1.z.array(zod_1.z.object({
|
|
19
20
|
id: zod_1.z.number(),
|
|
20
21
|
userId: zod_1.z.number(),
|
|
21
|
-
requestAt: zod_1.z.iso.datetime()
|
|
22
|
-
.transform((str) => new Date(str)),
|
|
22
|
+
requestAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
|
|
23
23
|
requestIp: zod_1.z.string().optional().nullable(),
|
|
24
24
|
userAgent: zod_1.z.string().optional().nullable(),
|
|
25
25
|
})),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-users-stream.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-users-stream.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;qBA8B7B,CAAC;IAEI,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-users-stream.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-users-stream.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;qBA8B7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBASzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-users.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,eAAe,CAAC;IACtB,MAAM,GAAG,eAAqB,CAAC;IAC/B,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAS3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;;;;;;;;qBAAkC,CAAC;IAE3D,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-users.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,eAAe,CAAC;IACtB,MAAM,GAAG,eAAqB,CAAC;IAC/B,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAS3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;;;;;;;;qBAAkC,CAAC;IAE3D,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAKzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -6,7 +6,7 @@ export * from './delete-user.command';
|
|
|
6
6
|
export * from './get-users.command';
|
|
7
7
|
export * from './get-by';
|
|
8
8
|
export * from './get-user-accessible-nodes.command';
|
|
9
|
-
export * from './get-user-by-
|
|
9
|
+
export * from './get-user-by-id.command';
|
|
10
10
|
export * from './get-user-subscription-request-history.command';
|
|
11
11
|
export * from './get-users-stream.command';
|
|
12
12
|
export * from './resolve-user.command';
|