@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
|
@@ -11,7 +11,7 @@ var DeleteAllUserHwidDevicesCommand;
|
|
|
11
11
|
DeleteAllUserHwidDevicesCommand.TSQ_url = DeleteAllUserHwidDevicesCommand.url;
|
|
12
12
|
DeleteAllUserHwidDevicesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HWID_ROUTES.DELETE_ALL_USER_HWID_DEVICES, 'post', 'Delete all user HWID devices', { scope: 'delete-all', kind: 'write' });
|
|
13
13
|
DeleteAllUserHwidDevicesCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
-
|
|
14
|
+
userId: zod_1.z.number(),
|
|
15
15
|
});
|
|
16
16
|
DeleteAllUserHwidDevicesCommand.ResponseSchema = zod_1.z.object({
|
|
17
17
|
response: zod_1.z.object({
|
|
@@ -4,7 +4,7 @@ export declare namespace DeleteUserHwidDeviceCommand {
|
|
|
4
4
|
const TSQ_url: "/api/hwid/devices/delete";
|
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
6
|
const RequestBodySchema: z.ZodObject<{
|
|
7
|
-
|
|
7
|
+
userId: z.ZodNumber;
|
|
8
8
|
hwid: z.ZodString;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -11,7 +11,7 @@ var DeleteUserHwidDeviceCommand;
|
|
|
11
11
|
DeleteUserHwidDeviceCommand.TSQ_url = DeleteUserHwidDeviceCommand.url;
|
|
12
12
|
DeleteUserHwidDeviceCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HWID_ROUTES.DELETE_USER_HWID_DEVICE, 'post', 'Delete a user HWID device', { scope: 'delete', kind: 'write' });
|
|
13
13
|
DeleteUserHwidDeviceCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
-
|
|
14
|
+
userId: zod_1.z.number(),
|
|
15
15
|
hwid: zod_1.z.string(),
|
|
16
16
|
});
|
|
17
17
|
DeleteUserHwidDeviceCommand.ResponseSchema = zod_1.z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-top-users-by-hwid-devices.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/get-top-users-by-hwid-devices.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,GAAG,+BAAqC,CAAC;IAC/C,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;qBAW7B,CAAC;IAEI,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-top-users-by-hwid-devices.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/get-top-users-by-hwid-devices.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,GAAG,+BAAqC,CAAC;IAC/C,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;qBAW7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;qBAWzB,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"}
|
|
@@ -24,7 +24,6 @@ var GetTopUsersByHwidDevicesCommand;
|
|
|
24
24
|
GetTopUsersByHwidDevicesCommand.ResponseSchema = zod_1.z.object({
|
|
25
25
|
response: zod_1.z.object({
|
|
26
26
|
users: zod_1.z.array(zod_1.z.object({
|
|
27
|
-
userUuid: zod_1.z.uuid(),
|
|
28
27
|
id: zod_1.z.number(),
|
|
29
28
|
username: zod_1.z.string(),
|
|
30
29
|
devicesCount: zod_1.z.number(),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare namespace GetUserHwidDevicesCommand {
|
|
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-hwid-devices.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/get-user-hwid-devices.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"get-user-hwid-devices.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/get-user-hwid-devices.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,4BAAsC,CAAC;IAChD,MAAM,OAAO,QAAiB,CAAC;IAE/B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,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"}
|
|
@@ -8,10 +8,10 @@ const models_1 = require("../../models");
|
|
|
8
8
|
var GetUserHwidDevicesCommand;
|
|
9
9
|
(function (GetUserHwidDevicesCommand) {
|
|
10
10
|
GetUserHwidDevicesCommand.url = api_1.REST_API.HWID.GET_USER_HWID_DEVICES;
|
|
11
|
-
GetUserHwidDevicesCommand.TSQ_url = GetUserHwidDevicesCommand.url(':
|
|
12
|
-
GetUserHwidDevicesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HWID_ROUTES.GET_USER_HWID_DEVICES(':
|
|
11
|
+
GetUserHwidDevicesCommand.TSQ_url = GetUserHwidDevicesCommand.url(':userId');
|
|
12
|
+
GetUserHwidDevicesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HWID_ROUTES.GET_USER_HWID_DEVICES(':userId'), 'get', 'Get user HWID devices', { scope: 'list-by-user', kind: 'read' });
|
|
13
13
|
GetUserHwidDevicesCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
-
|
|
14
|
+
userId: zod_1.z.coerce.number(),
|
|
15
15
|
});
|
|
16
16
|
GetUserHwidDevicesCommand.ResponseSchema = zod_1.z.object({
|
|
17
17
|
response: zod_1.z.object({
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace AddManyUsersToInternalSquadCommand {
|
|
3
|
+
const url: (uuid: string) => string;
|
|
4
|
+
const TSQ_url: string;
|
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
+
const RequestParamSchema: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodUUID;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
const RequestBodySchema: z.ZodObject<{
|
|
10
|
+
userIds: z.ZodArray<z.ZodNumber>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
13
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=add-many-users-to-internal-squad.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-many-users-to-internal-squad.command.d.ts","sourceRoot":"","sources":["../../../../../commands/internal-squads/bulk-actions/add-many-users-to-internal-squad.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kCAAkC,CAAC;IACzC,MAAM,GAAG,0BAAuD,CAAC;IACjE,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,iBAAiB;;qBAE5B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;CAC/D"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddManyUsersToInternalSquadCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
var AddManyUsersToInternalSquadCommand;
|
|
8
|
+
(function (AddManyUsersToInternalSquadCommand) {
|
|
9
|
+
AddManyUsersToInternalSquadCommand.url = api_1.REST_API.INTERNAL_SQUADS.BULK_ACTIONS.ADD_MANY_USERS;
|
|
10
|
+
AddManyUsersToInternalSquadCommand.TSQ_url = AddManyUsersToInternalSquadCommand.url(':uuid');
|
|
11
|
+
AddManyUsersToInternalSquadCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INTERNAL_SQUADS_ROUTES.BULK_ACTIONS.ADD_MANY_USERS(':uuid'), 'post', 'Add many users to internal squad', { scope: 'add-many-users', kind: 'write' });
|
|
12
|
+
AddManyUsersToInternalSquadCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.uuid(),
|
|
14
|
+
});
|
|
15
|
+
AddManyUsersToInternalSquadCommand.RequestBodySchema = zod_1.z.object({
|
|
16
|
+
userIds: zod_1.z.array(zod_1.z.number()).min(1).max(1000),
|
|
17
|
+
});
|
|
18
|
+
})(AddManyUsersToInternalSquadCommand || (exports.AddManyUsersToInternalSquadCommand = AddManyUsersToInternalSquadCommand = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace DeleteManyUsersFromInternalSquadCommand {
|
|
3
|
+
const url: (uuid: string) => string;
|
|
4
|
+
const TSQ_url: string;
|
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
+
const RequestParamSchema: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodUUID;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
const RequestBodySchema: z.ZodObject<{
|
|
10
|
+
userIds: z.ZodArray<z.ZodNumber>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
13
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=delete-many-users-from-internal-squad.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-many-users-from-internal-squad.command.d.ts","sourceRoot":"","sources":["../../../../../commands/internal-squads/bulk-actions/delete-many-users-from-internal-squad.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,uCAAuC,CAAC;IAC9C,MAAM,GAAG,0BAA0D,CAAC;IACpE,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,iBAAiB;;qBAE5B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;CAC/D"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteManyUsersFromInternalSquadCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
var DeleteManyUsersFromInternalSquadCommand;
|
|
8
|
+
(function (DeleteManyUsersFromInternalSquadCommand) {
|
|
9
|
+
DeleteManyUsersFromInternalSquadCommand.url = api_1.REST_API.INTERNAL_SQUADS.BULK_ACTIONS.REMOVE_MANY_USERS;
|
|
10
|
+
DeleteManyUsersFromInternalSquadCommand.TSQ_url = DeleteManyUsersFromInternalSquadCommand.url(':uuid');
|
|
11
|
+
DeleteManyUsersFromInternalSquadCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INTERNAL_SQUADS_ROUTES.BULK_ACTIONS.REMOVE_MANY_USERS(':uuid'), 'delete', 'Delete many users from internal squad', { scope: 'remove-many-users', kind: 'write' });
|
|
12
|
+
DeleteManyUsersFromInternalSquadCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.uuid(),
|
|
14
|
+
});
|
|
15
|
+
DeleteManyUsersFromInternalSquadCommand.RequestBodySchema = zod_1.z.object({
|
|
16
|
+
userIds: zod_1.z.array(zod_1.z.number()).min(1).max(1000),
|
|
17
|
+
});
|
|
18
|
+
})(DeleteManyUsersFromInternalSquadCommand || (exports.DeleteManyUsersFromInternalSquadCommand = DeleteManyUsersFromInternalSquadCommand = {}));
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export * from './add-users-to-internal-squad.command';
|
|
2
2
|
export * from './delete-users-from-internal-squad.command';
|
|
3
|
+
export * from './add-many-users-to-internal-squad.command';
|
|
4
|
+
export * from './delete-many-users-from-internal-squad.command';
|
|
3
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/internal-squads/bulk-actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,4CAA4C,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/internal-squads/bulk-actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,iDAAiD,CAAC"}
|
|
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./add-users-to-internal-squad.command"), exports);
|
|
18
18
|
__exportStar(require("./delete-users-from-internal-squad.command"), exports);
|
|
19
|
+
__exportStar(require("./add-many-users-to-internal-squad.command"), exports);
|
|
20
|
+
__exportStar(require("./delete-many-users-from-internal-squad.command"), exports);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare namespace GetUserMetadataCommand {
|
|
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 RequestParamsSchema: 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-metadata.command.d.ts","sourceRoot":"","sources":["../../../../../commands/metadata/user/get-user-metadata.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"get-user-metadata.command.d.ts","sourceRoot":"","sources":["../../../../../commands/metadata/user/get-user-metadata.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,4BAA6B,CAAC;IACvC,MAAM,OAAO,QAAiB,CAAC;IAE/B,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,mBAAmB;;qBAE9B,CAAC;IAEI,MAAM,cAAc;;;;qBAIzB,CAAC;IAEH,KAAY,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;IAChE,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -4,13 +4,14 @@ exports.GetUserMetadataCommand = 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 GetUserMetadataCommand;
|
|
8
9
|
(function (GetUserMetadataCommand) {
|
|
9
10
|
GetUserMetadataCommand.url = api_1.REST_API.METADATA.USER.GET;
|
|
10
|
-
GetUserMetadataCommand.TSQ_url = GetUserMetadataCommand.url(':
|
|
11
|
-
GetUserMetadataCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.METADATA_ROUTES.USER.GET(':
|
|
11
|
+
GetUserMetadataCommand.TSQ_url = GetUserMetadataCommand.url(':userId');
|
|
12
|
+
GetUserMetadataCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.METADATA_ROUTES.USER.GET(':userId'), 'get', 'Get user metadata', { scope: 'get-user', kind: 'read' });
|
|
12
13
|
GetUserMetadataCommand.RequestParamsSchema = zod_1.z.object({
|
|
13
|
-
|
|
14
|
+
userId: models_1.numberParamSchema,
|
|
14
15
|
});
|
|
15
16
|
GetUserMetadataCommand.ResponseSchema = zod_1.z.object({
|
|
16
17
|
response: zod_1.z.object({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare namespace UpsertUserMetadataCommand {
|
|
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 RequestParamsSchema: z.ZodObject<{
|
|
7
|
-
|
|
7
|
+
userId: z.ZodCoercedNumber<unknown>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
const RequestBodySchema: z.ZodObject<{
|
|
10
10
|
metadata: z.ZodObject<{}, z.core.$loose>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-user-metadata.command.d.ts","sourceRoot":"","sources":["../../../../../commands/metadata/user/upsert-user-metadata.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"upsert-user-metadata.command.d.ts","sourceRoot":"","sources":["../../../../../commands/metadata/user/upsert-user-metadata.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,4BAAgC,CAAC;IAC1C,MAAM,OAAO,QAAiB,CAAC;IAE/B,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,mBAAmB;;qBAE9B,CAAC;IAEI,MAAM,iBAAiB;;qBAE5B,CAAC;IAEI,MAAM,cAAc;;;;qBAIzB,CAAC;IAEH,KAAY,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;IAChE,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -7,10 +7,10 @@ const constants_1 = require("../../../constants");
|
|
|
7
7
|
var UpsertUserMetadataCommand;
|
|
8
8
|
(function (UpsertUserMetadataCommand) {
|
|
9
9
|
UpsertUserMetadataCommand.url = api_1.REST_API.METADATA.USER.UPSERT;
|
|
10
|
-
UpsertUserMetadataCommand.TSQ_url = UpsertUserMetadataCommand.url(':
|
|
11
|
-
UpsertUserMetadataCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.METADATA_ROUTES.USER.UPSERT(':
|
|
10
|
+
UpsertUserMetadataCommand.TSQ_url = UpsertUserMetadataCommand.url(':userId');
|
|
11
|
+
UpsertUserMetadataCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.METADATA_ROUTES.USER.UPSERT(':userId'), 'put', 'Update or create User Metadata', { scope: 'upsert-user', kind: 'write' });
|
|
12
12
|
UpsertUserMetadataCommand.RequestParamsSchema = zod_1.z.object({
|
|
13
|
-
|
|
13
|
+
userId: zod_1.z.coerce.number(),
|
|
14
14
|
});
|
|
15
15
|
UpsertUserMetadataCommand.RequestBodySchema = zod_1.z.object({
|
|
16
16
|
metadata: zod_1.z.looseObject({}),
|
|
@@ -12,7 +12,7 @@ export declare namespace GetTorrentBlockerReportsStatsCommand {
|
|
|
12
12
|
reportsLast24Hours: z.ZodNumber;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
14
|
topUsers: z.ZodArray<z.ZodObject<{
|
|
15
|
-
|
|
15
|
+
userId: z.ZodNumber;
|
|
16
16
|
color: z.ZodString;
|
|
17
17
|
username: z.ZodString;
|
|
18
18
|
total: z.ZodNumber;
|
|
@@ -18,7 +18,7 @@ var GetTorrentBlockerReportsStatsCommand;
|
|
|
18
18
|
reportsLast24Hours: zod_1.z.number(),
|
|
19
19
|
}),
|
|
20
20
|
topUsers: zod_1.z.array(zod_1.z.object({
|
|
21
|
-
|
|
21
|
+
userId: zod_1.z.number(),
|
|
22
22
|
color: zod_1.z.string(),
|
|
23
23
|
username: zod_1.z.string(),
|
|
24
24
|
total: zod_1.z.number(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-torrent-blocker-reports.command.d.ts","sourceRoot":"","sources":["../../../../../commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,GAAG,qCAAoD,CAAC;IAC9D,MAAM,OAAO,qCAAM,CAAC;IAEpB,MAAM,eAAe,8CAM3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;;;;;;;;qBAAkC,CAAC;IAE3D,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-torrent-blocker-reports.command.d.ts","sourceRoot":"","sources":["../../../../../commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,GAAG,qCAAoD,CAAC;IAC9D,MAAM,OAAO,qCAAM,CAAC;IAEpB,MAAM,eAAe,8CAM3B,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"}
|
|
@@ -9,7 +9,7 @@ var GetRemnawaveSettingsCommand;
|
|
|
9
9
|
(function (GetRemnawaveSettingsCommand) {
|
|
10
10
|
GetRemnawaveSettingsCommand.url = api_1.REST_API.REMNAAWAVE_SETTINGS.GET;
|
|
11
11
|
GetRemnawaveSettingsCommand.TSQ_url = GetRemnawaveSettingsCommand.url;
|
|
12
|
-
GetRemnawaveSettingsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.
|
|
12
|
+
GetRemnawaveSettingsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.REMNAWAVE_SETTINGS_ROUTES.GET, 'get', 'Get Remnawave settings', { scope: 'get', kind: 'read' });
|
|
13
13
|
GetRemnawaveSettingsCommand.ResponseSchema = zod_1.z.object({
|
|
14
14
|
response: models_1.RemnawaveSettingsSchema,
|
|
15
15
|
});
|
|
@@ -9,7 +9,7 @@ var UpdateRemnawaveSettingsCommand;
|
|
|
9
9
|
(function (UpdateRemnawaveSettingsCommand) {
|
|
10
10
|
UpdateRemnawaveSettingsCommand.url = api_1.REST_API.REMNAAWAVE_SETTINGS.UPDATE;
|
|
11
11
|
UpdateRemnawaveSettingsCommand.TSQ_url = UpdateRemnawaveSettingsCommand.url;
|
|
12
|
-
UpdateRemnawaveSettingsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.
|
|
12
|
+
UpdateRemnawaveSettingsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.REMNAWAVE_SETTINGS_ROUTES.UPDATE, 'patch', 'Update Remnawave settings', { scope: 'update', kind: 'write' });
|
|
13
13
|
UpdateRemnawaveSettingsCommand.RequestBodySchema = zod_1.z.object({
|
|
14
14
|
passkeySettings: models_1.PasskeySettingsSchema.optional(),
|
|
15
15
|
oauth2Settings: models_1.Oauth2SettingsSchema.optional(),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare namespace
|
|
3
|
-
const url: (
|
|
2
|
+
export declare namespace GetConnectionKeysByUserIdCommand {
|
|
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<{
|
|
@@ -16,4 +16,4 @@ export declare namespace GetConnectionKeysByUuidCommand {
|
|
|
16
16
|
type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
17
17
|
type Response = z.infer<typeof ResponseSchema>;
|
|
18
18
|
}
|
|
19
|
-
//# sourceMappingURL=get-connection-keys-by-
|
|
19
|
+
//# sourceMappingURL=get-connection-keys-by-user-id.command.d.ts.map
|
package/build/backend/commands/subscriptions/get-by/get-connection-keys-by-user-id.command.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-connection-keys-by-user-id.command.d.ts","sourceRoot":"","sources":["../../../../../commands/subscriptions/get-by/get-connection-keys-by-user-id.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,gCAAgC,CAAC;IACvC,MAAM,GAAG,4BAAwD,CAAC;IAClE,MAAM,OAAO,QAAiB,CAAC;IAE/B,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;qBAMzB,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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetConnectionKeysByUserIdCommand = 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 GetConnectionKeysByUserIdCommand;
|
|
9
|
+
(function (GetConnectionKeysByUserIdCommand) {
|
|
10
|
+
GetConnectionKeysByUserIdCommand.url = api_1.REST_API.SUBSCRIPTIONS.GET_CONNECTION_KEYS_BY_USER_ID;
|
|
11
|
+
GetConnectionKeysByUserIdCommand.TSQ_url = GetConnectionKeysByUserIdCommand.url(':userId');
|
|
12
|
+
GetConnectionKeysByUserIdCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTIONS_ROUTES.GET_CONNECTION_KEYS_BY_USER_ID(':userId'), 'get', 'Get connection keys (base64 format) by user id', { scope: 'connection-keys', kind: 'read' });
|
|
13
|
+
GetConnectionKeysByUserIdCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
+
userId: models_1.numberParamSchema.describe('User ID'),
|
|
15
|
+
});
|
|
16
|
+
GetConnectionKeysByUserIdCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
response: zod_1.z.object({
|
|
18
|
+
enabledKeys: zod_1.z.array(zod_1.z.string()),
|
|
19
|
+
hiddenKeys: zod_1.z.array(zod_1.z.string()),
|
|
20
|
+
disabledKeys: zod_1.z.array(zod_1.z.string()),
|
|
21
|
+
}),
|
|
22
|
+
});
|
|
23
|
+
})(GetConnectionKeysByUserIdCommand || (exports.GetConnectionKeysByUserIdCommand = GetConnectionKeysByUserIdCommand = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-raw-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../../commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,+BAA+C,CAAC;IACzD,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,kBAAkB;;qBAM7B,CAAC;IAEI,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-raw-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../../commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,+BAA+C,CAAC;IACzD,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,kBAAkB;;qBAM7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAoBzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,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,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare namespace
|
|
3
|
-
const url: (
|
|
2
|
+
export declare namespace GetSubscriptionByIdCommand {
|
|
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<{
|
|
@@ -43,4 +43,4 @@ export declare namespace GetSubscriptionByUuidCommand {
|
|
|
43
43
|
type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
44
44
|
type Response = z.infer<typeof ResponseSchema>;
|
|
45
45
|
}
|
|
46
|
-
//# sourceMappingURL=get-subscription-by-
|
|
46
|
+
//# sourceMappingURL=get-subscription-by-user-id.command.d.ts.map
|
package/build/backend/commands/subscriptions/get-by/get-subscription-by-user-id.command.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-subscription-by-user-id.command.d.ts","sourceRoot":"","sources":["../../../../../commands/subscriptions/get-by/get-subscription-by-user-id.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,4BAAmC,CAAC;IAC7C,MAAM,OAAO,QAAiB,CAAC;IAE/B,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAEzB,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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSubscriptionByIdCommand = 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 GetSubscriptionByIdCommand;
|
|
9
|
+
(function (GetSubscriptionByIdCommand) {
|
|
10
|
+
GetSubscriptionByIdCommand.url = api_1.REST_API.SUBSCRIPTIONS.GET_BY.ID;
|
|
11
|
+
GetSubscriptionByIdCommand.TSQ_url = GetSubscriptionByIdCommand.url(':userId');
|
|
12
|
+
GetSubscriptionByIdCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTIONS_ROUTES.GET_BY.ID(':userId'), 'get', 'Get subscription by User ID', { scope: 'by-id', kind: 'read' });
|
|
13
|
+
GetSubscriptionByIdCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
+
userId: models_1.numberParamSchema.describe('User ID'),
|
|
15
|
+
});
|
|
16
|
+
GetSubscriptionByIdCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
response: models_1.SubscriptionInfoSchema,
|
|
18
|
+
});
|
|
19
|
+
})(GetSubscriptionByIdCommand || (exports.GetSubscriptionByIdCommand = GetSubscriptionByIdCommand = {}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './get-connection-keys-by-
|
|
1
|
+
export * from './get-connection-keys-by-user-id.command';
|
|
2
2
|
export * from './get-raw-subscription-by-short-uuid.command';
|
|
3
3
|
export * from './get-subscription-by-short-uuid-protected.command';
|
|
4
4
|
export * from './get-subscription-by-username.command';
|
|
5
|
-
export * from './get-subscription-by-
|
|
5
|
+
export * from './get-subscription-by-user-id.command';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/subscriptions/get-by/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/subscriptions/get-by/index.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,oDAAoD,CAAC;AACnE,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC"}
|
|
@@ -14,8 +14,8 @@ 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-connection-keys-by-
|
|
17
|
+
__exportStar(require("./get-connection-keys-by-user-id.command"), exports);
|
|
18
18
|
__exportStar(require("./get-raw-subscription-by-short-uuid.command"), exports);
|
|
19
19
|
__exportStar(require("./get-subscription-by-short-uuid-protected.command"), exports);
|
|
20
20
|
__exportStar(require("./get-subscription-by-username.command"), exports);
|
|
21
|
-
__exportStar(require("./get-subscription-by-
|
|
21
|
+
__exportStar(require("./get-subscription-by-user-id.command"), exports);
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare namespace DisableUserCommand {
|
|
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":"disable-user.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/disable-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"disable-user.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/disable-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,4BAAiC,CAAC;IAC3C,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.DisableUserCommand = 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 DisableUserCommand;
|
|
9
10
|
(function (DisableUserCommand) {
|
|
10
11
|
DisableUserCommand.url = api_1.REST_API.USERS.ACTIONS.DISABLE;
|
|
11
|
-
DisableUserCommand.TSQ_url = DisableUserCommand.url(':
|
|
12
|
-
DisableUserCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACTIONS.DISABLE(':
|
|
12
|
+
DisableUserCommand.TSQ_url = DisableUserCommand.url(':userId');
|
|
13
|
+
DisableUserCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACTIONS.DISABLE(':userId'), 'post', 'Disable user', { scope: 'disable', kind: 'write' });
|
|
13
14
|
DisableUserCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
-
|
|
15
|
+
userId: models_1.numberParamSchema,
|
|
15
16
|
});
|
|
16
17
|
DisableUserCommand.ResponseSchema = user_response_1.UserResponseSchema;
|
|
17
18
|
})(DisableUserCommand || (exports.DisableUserCommand = DisableUserCommand = {}));
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare namespace EnableUserCommand {
|
|
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":"enable-user.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/enable-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"enable-user.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/enable-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,4BAAgC,CAAC;IAC1C,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.EnableUserCommand = 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 EnableUserCommand;
|
|
9
10
|
(function (EnableUserCommand) {
|
|
10
11
|
EnableUserCommand.url = api_1.REST_API.USERS.ACTIONS.ENABLE;
|
|
11
|
-
EnableUserCommand.TSQ_url = EnableUserCommand.url(':
|
|
12
|
-
EnableUserCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACTIONS.ENABLE(':
|
|
12
|
+
EnableUserCommand.TSQ_url = EnableUserCommand.url(':userId');
|
|
13
|
+
EnableUserCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACTIONS.ENABLE(':userId'), 'post', 'Enable user', { scope: 'enable', kind: 'write' });
|
|
13
14
|
EnableUserCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
-
|
|
15
|
+
userId: models_1.numberParamSchema,
|
|
15
16
|
});
|
|
16
17
|
EnableUserCommand.ResponseSchema = user_response_1.UserResponseSchema;
|
|
17
18
|
})(EnableUserCommand || (exports.EnableUserCommand = EnableUserCommand = {}));
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare namespace
|
|
3
|
-
const url: (
|
|
2
|
+
export declare namespace ExtendUserCommand {
|
|
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
|
+
}, z.core.$strip>;
|
|
9
|
+
const RequestBodySchema: z.ZodObject<{
|
|
10
|
+
days: z.ZodNumber;
|
|
8
11
|
}, z.core.$strip>;
|
|
9
12
|
const ResponseSchema: z.ZodObject<{
|
|
10
13
|
response: z.ZodObject<{
|
|
11
|
-
uuid: z.ZodUUID;
|
|
12
14
|
id: z.ZodNumber;
|
|
13
15
|
shortUuid: z.ZodString;
|
|
14
16
|
username: z.ZodString;
|
|
@@ -56,6 +58,7 @@ export declare namespace GetUserByIdCommand {
|
|
|
56
58
|
}, z.core.$strip>;
|
|
57
59
|
}, z.core.$strip>;
|
|
58
60
|
type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
61
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
59
62
|
type Response = z.infer<typeof ResponseSchema>;
|
|
60
63
|
}
|
|
61
|
-
//# sourceMappingURL=
|
|
64
|
+
//# sourceMappingURL=extend-user.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extend-user.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/extend-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,4BAAgD,CAAC;IAC1D,MAAM,OAAO,QAAiB,CAAC;IAE/B,MAAM,eAAe,8CAM3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,iBAAiB;;qBAE5B,CAAC;IAEI,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"}
|