@remnawave/backend-contract 2.9.14 → 2.9.20
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/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 +8 -13
- package/build/backend/api/controllers/users.d.ts.map +1 -1
- package/build/backend/api/controllers/users.js +8 -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 +21 -23
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +21 -23
- 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/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/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 +15 -5
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +15 -5
- 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/subscriptions.js +2 -2
- package/build/frontend/api/controllers/users.js +8 -13
- package/build/frontend/api/controllers-info.js +15 -15
- package/build/frontend/api/routes.js +21 -23
- 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/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/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 +15 -5
- 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 +0 -61
- 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
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
export declare const BANDWIDTH_STATS_CONTROLLER: "bandwidth-stats";
|
|
2
2
|
export declare const BANDWIDTH_STATS_NODES_ROUTE: "nodes";
|
|
3
3
|
export declare const BANDWIDTH_STATS_USERS_ROUTE: "users";
|
|
4
|
+
export declare const BANDWIDTH_STATS_INTERNAL_SQUADS_ROUTE: "internal-squads";
|
|
4
5
|
export declare const BANDWIDTH_STATS_NODES_CONTROLLER: "bandwidth-stats/nodes";
|
|
5
6
|
export declare const BANDWIDTH_STATS_USERS_CONTROLLER: "bandwidth-stats/users";
|
|
7
|
+
export declare const BANDWIDTH_STATS_INTERNAL_SQUADS_CONTROLLER: "bandwidth-stats/internal-squads";
|
|
6
8
|
export declare const BANDWIDTH_STATS_ROUTES: {
|
|
7
9
|
readonly NODES: {
|
|
8
10
|
readonly GET: "";
|
|
9
11
|
readonly GET_REALTIME: "realtime";
|
|
10
12
|
readonly GET_USERS: (uuid: string) => string;
|
|
11
13
|
readonly GET_USERS_BY_NODES: "users";
|
|
14
|
+
readonly GET_USAGE: "usage";
|
|
12
15
|
};
|
|
13
16
|
readonly USERS: {
|
|
14
|
-
readonly
|
|
17
|
+
readonly GET_BY_ID: (userId: string) => string;
|
|
15
18
|
};
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
readonly USERS: {
|
|
21
|
-
readonly GET_BY_UUID: (uuid: string) => string;
|
|
22
|
-
};
|
|
19
|
+
readonly INTERNAL_SQUADS: {
|
|
20
|
+
readonly GET_USAGE: (uuid: string) => string;
|
|
21
|
+
readonly USER_USAGE: (squadUuid: string, userId: string) => string;
|
|
23
22
|
};
|
|
24
23
|
};
|
|
25
24
|
//# sourceMappingURL=bandwidth-stats.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bandwidth-stats.d.ts","sourceRoot":"","sources":["../../../../api/controllers/bandwidth-stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,EAAG,iBAA0B,CAAC;AAErE,eAAO,MAAM,2BAA2B,EAAG,OAAgB,CAAC;AAC5D,eAAO,MAAM,2BAA2B,EAAG,OAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"bandwidth-stats.d.ts","sourceRoot":"","sources":["../../../../api/controllers/bandwidth-stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,EAAG,iBAA0B,CAAC;AAErE,eAAO,MAAM,2BAA2B,EAAG,OAAgB,CAAC;AAC5D,eAAO,MAAM,2BAA2B,EAAG,OAAgB,CAAC;AAC5D,eAAO,MAAM,qCAAqC,EAAG,iBAA0B,CAAC;AAEhF,eAAO,MAAM,gCAAgC,yBAC8B,CAAC;AAC5E,eAAO,MAAM,gCAAgC,yBAC8B,CAAC;AAC5E,eAAO,MAAM,0CAA0C,mCAC8B,CAAC;AAEtF,eAAO,MAAM,sBAAsB;;;;mCAIT,MAAM;;;;;qCAKJ,MAAM;;;mCAGR,MAAM;yCACA,MAAM,UAAU,MAAM;;CAE5C,CAAC"}
|
|
@@ -1,38 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BANDWIDTH_STATS_ROUTES = exports.BANDWIDTH_STATS_USERS_CONTROLLER = exports.BANDWIDTH_STATS_NODES_CONTROLLER = exports.BANDWIDTH_STATS_USERS_ROUTE = exports.BANDWIDTH_STATS_NODES_ROUTE = exports.BANDWIDTH_STATS_CONTROLLER = void 0;
|
|
3
|
+
exports.BANDWIDTH_STATS_ROUTES = exports.BANDWIDTH_STATS_INTERNAL_SQUADS_CONTROLLER = exports.BANDWIDTH_STATS_USERS_CONTROLLER = exports.BANDWIDTH_STATS_NODES_CONTROLLER = exports.BANDWIDTH_STATS_INTERNAL_SQUADS_ROUTE = exports.BANDWIDTH_STATS_USERS_ROUTE = exports.BANDWIDTH_STATS_NODES_ROUTE = exports.BANDWIDTH_STATS_CONTROLLER = void 0;
|
|
4
4
|
exports.BANDWIDTH_STATS_CONTROLLER = 'bandwidth-stats';
|
|
5
5
|
exports.BANDWIDTH_STATS_NODES_ROUTE = 'nodes';
|
|
6
6
|
exports.BANDWIDTH_STATS_USERS_ROUTE = 'users';
|
|
7
|
+
exports.BANDWIDTH_STATS_INTERNAL_SQUADS_ROUTE = 'internal-squads';
|
|
7
8
|
exports.BANDWIDTH_STATS_NODES_CONTROLLER = `${exports.BANDWIDTH_STATS_CONTROLLER}/${exports.BANDWIDTH_STATS_NODES_ROUTE}`;
|
|
8
9
|
exports.BANDWIDTH_STATS_USERS_CONTROLLER = `${exports.BANDWIDTH_STATS_CONTROLLER}/${exports.BANDWIDTH_STATS_USERS_ROUTE}`;
|
|
9
|
-
|
|
10
|
-
// 1. Nodes -> Metrics
|
|
11
|
-
// 2. Nodes -> Management -> Show usage (!need legacy)
|
|
12
|
-
// 3. Users -> User -> Show Usage (!need legacy)
|
|
10
|
+
exports.BANDWIDTH_STATS_INTERNAL_SQUADS_CONTROLLER = `${exports.BANDWIDTH_STATS_CONTROLLER}/${exports.BANDWIDTH_STATS_INTERNAL_SQUADS_ROUTE}`;
|
|
13
11
|
exports.BANDWIDTH_STATS_ROUTES = {
|
|
14
12
|
NODES: {
|
|
15
|
-
// GET /bandwidth-stats/nodes –– Nodes -> Metrics
|
|
16
13
|
GET: '',
|
|
17
|
-
// GET /bandwidth-stats/nodes/realtime –– Nodes -> Management -> Metric Cards
|
|
18
14
|
GET_REALTIME: 'realtime',
|
|
19
|
-
// GET /bandwidth-stats/nodes/:nodeUuid/users –– Nodes -> Management -> Show usage
|
|
20
15
|
GET_USERS: (uuid) => `${uuid}/users`,
|
|
21
|
-
// POST /bandwidth-stats/nodes/users –– Nodes -> Custom Graphs
|
|
22
16
|
GET_USERS_BY_NODES: 'users',
|
|
17
|
+
GET_USAGE: 'usage',
|
|
23
18
|
},
|
|
24
19
|
USERS: {
|
|
25
|
-
|
|
26
|
-
GET_BY_UUID: (uuid) => `${uuid}`,
|
|
20
|
+
GET_BY_ID: (userId) => `${userId}`,
|
|
27
21
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
GET_USERS: (uuid) => `${uuid}/users/legacy`,
|
|
32
|
-
},
|
|
33
|
-
USERS: {
|
|
34
|
-
// GET /bandwidth-stats/users/:userUuid/legacy –– Users -> User -> Show Usage (legacy)
|
|
35
|
-
GET_BY_UUID: (uuid) => `${uuid}/legacy`,
|
|
36
|
-
},
|
|
22
|
+
INTERNAL_SQUADS: {
|
|
23
|
+
GET_USAGE: (uuid) => `${uuid}/usage`,
|
|
24
|
+
USER_USAGE: (squadUuid, userId) => `${squadUuid}/users/${userId}/usage`,
|
|
37
25
|
},
|
|
38
26
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const CONNECTIONS_CONTROLLER: "connections";
|
|
2
2
|
export declare const CONNECTIONS_ROUTES: {
|
|
3
|
-
readonly CONNECTIONS_BY_USER: (
|
|
3
|
+
readonly CONNECTIONS_BY_USER: (userId: string) => string;
|
|
4
4
|
readonly CONNECTIONS_BY_USER_RESULT: (jobId: string) => string;
|
|
5
5
|
readonly CONNECTIONS_BY_NODE: (uuid: string) => string;
|
|
6
6
|
readonly CONNECTIONS_BY_NODE_RESULT: (jobId: string) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../../../api/controllers/connections.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,EAAG,aAAsB,CAAC;AAE7D,eAAO,MAAM,kBAAkB;
|
|
1
|
+
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../../../api/controllers/connections.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,EAAG,aAAsB,CAAC;AAE7D,eAAO,MAAM,kBAAkB;2CAEG,MAAM;iDAEA,MAAM;yCAGd,MAAM;iDAEE,MAAM;;CAIpC,CAAC"}
|
|
@@ -4,7 +4,7 @@ exports.CONNECTIONS_ROUTES = exports.CONNECTIONS_CONTROLLER = void 0;
|
|
|
4
4
|
exports.CONNECTIONS_CONTROLLER = 'connections';
|
|
5
5
|
exports.CONNECTIONS_ROUTES = {
|
|
6
6
|
// POST
|
|
7
|
-
CONNECTIONS_BY_USER: (
|
|
7
|
+
CONNECTIONS_BY_USER: (userId) => `by-user/${userId}`,
|
|
8
8
|
// GET
|
|
9
9
|
CONNECTIONS_BY_USER_RESULT: (jobId) => `by-user/${jobId}`,
|
|
10
10
|
// POST
|
|
@@ -2,7 +2,7 @@ export declare const HWID_CONTROLLER: "hwid";
|
|
|
2
2
|
export declare const HWID_ROUTES: {
|
|
3
3
|
readonly GET_ALL_HWID_DEVICES: "devices";
|
|
4
4
|
readonly CREATE_USER_HWID_DEVICE: "devices";
|
|
5
|
-
readonly GET_USER_HWID_DEVICES: (
|
|
5
|
+
readonly GET_USER_HWID_DEVICES: (userId: string) => string;
|
|
6
6
|
readonly DELETE_USER_HWID_DEVICE: "devices/delete";
|
|
7
7
|
readonly DELETE_ALL_USER_HWID_DEVICES: "devices/delete-all";
|
|
8
8
|
readonly STATS: "devices/stats";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hwid.d.ts","sourceRoot":"","sources":["../../../../api/controllers/hwid.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAG,MAAe,CAAC;AAE/C,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"hwid.d.ts","sourceRoot":"","sources":["../../../../api/controllers/hwid.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAG,MAAe,CAAC;AAE/C,eAAO,MAAM,WAAW;;;6CAGY,MAAM;;;;;CAMhC,CAAC"}
|
|
@@ -5,7 +5,7 @@ exports.HWID_CONTROLLER = 'hwid';
|
|
|
5
5
|
exports.HWID_ROUTES = {
|
|
6
6
|
GET_ALL_HWID_DEVICES: 'devices', // get
|
|
7
7
|
CREATE_USER_HWID_DEVICE: 'devices',
|
|
8
|
-
GET_USER_HWID_DEVICES: (
|
|
8
|
+
GET_USER_HWID_DEVICES: (userId) => `devices/${userId}`,
|
|
9
9
|
DELETE_USER_HWID_DEVICE: 'devices/delete',
|
|
10
10
|
DELETE_ALL_USER_HWID_DEVICES: 'devices/delete-all',
|
|
11
11
|
STATS: 'devices/stats', // get
|
|
@@ -9,6 +9,8 @@ export declare const INTERNAL_SQUADS_ROUTES: {
|
|
|
9
9
|
readonly BULK_ACTIONS: {
|
|
10
10
|
readonly ADD_USERS: (uuid: string) => string;
|
|
11
11
|
readonly REMOVE_USERS: (uuid: string) => string;
|
|
12
|
+
readonly ADD_MANY_USERS: (uuid: string) => string;
|
|
13
|
+
readonly REMOVE_MANY_USERS: (uuid: string) => string;
|
|
12
14
|
};
|
|
13
15
|
readonly ACTIONS: {
|
|
14
16
|
readonly REORDER: "actions/reorder";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal-squads.d.ts","sourceRoot":"","sources":["../../../../api/controllers/internal-squads.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,EAAG,iBAA0B,CAAC;AAKrE,eAAO,MAAM,sBAAsB;;;;iCAIX,MAAM;4BACX,MAAM;sCACI,MAAM;;mCAGT,MAAM;sCACH,MAAM;;;;;
|
|
1
|
+
{"version":3,"file":"internal-squads.d.ts","sourceRoot":"","sources":["../../../../api/controllers/internal-squads.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,EAAG,iBAA0B,CAAC;AAKrE,eAAO,MAAM,sBAAsB;;;;iCAIX,MAAM;4BACX,MAAM;sCACI,MAAM;;mCAGT,MAAM;sCACH,MAAM;wCACJ,MAAM;2CACH,MAAM;;;;;CAK9B,CAAC"}
|
|
@@ -14,6 +14,8 @@ exports.INTERNAL_SQUADS_ROUTES = {
|
|
|
14
14
|
BULK_ACTIONS: {
|
|
15
15
|
ADD_USERS: (uuid) => `${uuid}/${BULK_ACTIONS_ROUTE}/add-users`, // Add users to internal squad // post
|
|
16
16
|
REMOVE_USERS: (uuid) => `${uuid}/${BULK_ACTIONS_ROUTE}/remove-users`, // Remove users from internal squad // delete
|
|
17
|
+
ADD_MANY_USERS: (uuid) => `${uuid}/${BULK_ACTIONS_ROUTE}/add-many-users`, // Add many users to internal squad // post
|
|
18
|
+
REMOVE_MANY_USERS: (uuid) => `${uuid}/${BULK_ACTIONS_ROUTE}/remove-many-users`, // Remove many users from internal squad // delete
|
|
17
19
|
},
|
|
18
20
|
ACTIONS: {
|
|
19
21
|
REORDER: `${ACTIONS_ROUTE}/reorder`,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const METADATA_CONTROLLER: "metadata";
|
|
2
2
|
export declare const METADATA_ROUTES: {
|
|
3
3
|
readonly NODE: {
|
|
4
|
-
readonly GET: (
|
|
5
|
-
readonly UPSERT: (
|
|
4
|
+
readonly GET: (nodeId: string) => string;
|
|
5
|
+
readonly UPSERT: (nodeId: string) => string;
|
|
6
6
|
};
|
|
7
7
|
readonly USER: {
|
|
8
|
-
readonly GET: (
|
|
9
|
-
readonly UPSERT: (
|
|
8
|
+
readonly GET: (userId: string) => string;
|
|
9
|
+
readonly UPSERT: (userId: string) => string;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=metadata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../../api/controllers/metadata.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,EAAG,UAAmB,CAAC;AAEvD,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../../api/controllers/metadata.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,EAAG,UAAmB,CAAC;AAEvD,eAAO,MAAM,eAAe;;+BAEN,MAAM;kCACH,MAAM;;;+BAGT,MAAM;kCACH,MAAM;;CAErB,CAAC"}
|
|
@@ -4,11 +4,11 @@ exports.METADATA_ROUTES = exports.METADATA_CONTROLLER = void 0;
|
|
|
4
4
|
exports.METADATA_CONTROLLER = 'metadata';
|
|
5
5
|
exports.METADATA_ROUTES = {
|
|
6
6
|
NODE: {
|
|
7
|
-
GET: (
|
|
8
|
-
UPSERT: (
|
|
7
|
+
GET: (nodeId) => `node/${nodeId}`,
|
|
8
|
+
UPSERT: (nodeId) => `node/${nodeId}`,
|
|
9
9
|
},
|
|
10
10
|
USER: {
|
|
11
|
-
GET: (
|
|
12
|
-
UPSERT: (
|
|
11
|
+
GET: (userId) => `user/${userId}`,
|
|
12
|
+
UPSERT: (userId) => `user/${userId}`,
|
|
13
13
|
},
|
|
14
14
|
};
|
|
@@ -3,13 +3,13 @@ export declare const SUBSCRIPTIONS_ROUTES: {
|
|
|
3
3
|
readonly GET: "";
|
|
4
4
|
readonly GET_BY: {
|
|
5
5
|
readonly USERNAME: (username: string) => string;
|
|
6
|
-
readonly
|
|
6
|
+
readonly ID: (userId: string) => string;
|
|
7
7
|
readonly SHORT_UUID: (shortUuid: string) => string;
|
|
8
8
|
readonly SHORT_UUID_RAW: (shortUuid: string) => string;
|
|
9
9
|
};
|
|
10
10
|
readonly SUBPAGE: {
|
|
11
11
|
readonly GET_CONFIG: (shortUuid: string) => string;
|
|
12
12
|
};
|
|
13
|
-
readonly
|
|
13
|
+
readonly GET_CONNECTION_KEYS_BY_USER_ID: (userId: string) => string;
|
|
14
14
|
};
|
|
15
15
|
//# sourceMappingURL=subscriptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../../../api/controllers/subscriptions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAG,eAAwB,CAAC;AAEjE,eAAO,MAAM,oBAAoB;;;sCAGJ,MAAM;8BACd,MAAM;yCACK,MAAM;6CACF,MAAM;;;yCAGV,MAAM;;
|
|
1
|
+
{"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../../../api/controllers/subscriptions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAG,eAAwB,CAAC;AAEjE,eAAO,MAAM,oBAAoB;;;sCAGJ,MAAM;8BACd,MAAM;yCACK,MAAM;6CACF,MAAM;;;yCAGV,MAAM;;sDAEO,MAAM;CACzC,CAAC"}
|
|
@@ -6,12 +6,12 @@ exports.SUBSCRIPTIONS_ROUTES = {
|
|
|
6
6
|
GET: '',
|
|
7
7
|
GET_BY: {
|
|
8
8
|
USERNAME: (username) => `by-username/${username}`,
|
|
9
|
-
|
|
9
|
+
ID: (userId) => `by-id/${userId}`,
|
|
10
10
|
SHORT_UUID: (shortUuid) => `by-short-uuid/${shortUuid}`,
|
|
11
11
|
SHORT_UUID_RAW: (shortUuid) => `by-short-uuid/${shortUuid}/raw`,
|
|
12
12
|
},
|
|
13
13
|
SUBPAGE: {
|
|
14
14
|
GET_CONFIG: (shortUuid) => `subpage-config/${shortUuid}`,
|
|
15
15
|
},
|
|
16
|
-
|
|
16
|
+
GET_CONNECTION_KEYS_BY_USER_ID: (userId) => `connection-keys/${userId}`,
|
|
17
17
|
};
|
|
@@ -5,24 +5,19 @@ export declare const USERS_ROUTES: {
|
|
|
5
5
|
readonly UPDATE: "";
|
|
6
6
|
readonly GET: "";
|
|
7
7
|
readonly STREAM: "stream";
|
|
8
|
-
readonly DELETE: (
|
|
9
|
-
readonly
|
|
10
|
-
readonly ACCESSIBLE_NODES: (
|
|
11
|
-
readonly SUBSCRIPTION_REQUEST_HISTORY: (
|
|
8
|
+
readonly DELETE: (userId: string) => string;
|
|
9
|
+
readonly GET_BY_ID: (userId: string) => string;
|
|
10
|
+
readonly ACCESSIBLE_NODES: (userId: string) => string;
|
|
11
|
+
readonly SUBSCRIPTION_REQUEST_HISTORY: (userId: string) => string;
|
|
12
12
|
readonly ACTIONS: {
|
|
13
|
-
readonly ENABLE: (
|
|
14
|
-
readonly DISABLE: (
|
|
15
|
-
readonly RESET_TRAFFIC: (
|
|
16
|
-
readonly REVOKE_SUBSCRIPTION: (
|
|
13
|
+
readonly ENABLE: (userId: string) => string;
|
|
14
|
+
readonly DISABLE: (userId: string) => string;
|
|
15
|
+
readonly RESET_TRAFFIC: (userId: string) => string;
|
|
16
|
+
readonly REVOKE_SUBSCRIPTION: (userId: string) => string;
|
|
17
17
|
};
|
|
18
18
|
readonly GET_BY: {
|
|
19
|
-
readonly ID: (id: string) => string;
|
|
20
19
|
readonly SHORT_UUID: (shortUuid: string) => string;
|
|
21
20
|
readonly USERNAME: (username: string) => string;
|
|
22
|
-
readonly SUBSCRIPTION_UUID: (subscriptionUuid: string) => string;
|
|
23
|
-
readonly TELEGRAM_ID: (telegramId: string) => string;
|
|
24
|
-
readonly EMAIL: (email: string) => string;
|
|
25
|
-
readonly TAG: (tag: string) => string;
|
|
26
21
|
};
|
|
27
22
|
readonly BULK: {
|
|
28
23
|
readonly DELETE_BY_STATUS: "bulk/delete-by-status";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../../api/controllers/users.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,mBAAmB,EAAG,SAAkB,CAAC;AAEtD,eAAO,MAAM,YAAY;;;;;
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../../api/controllers/users.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,mBAAmB,EAAG,SAAkB,CAAC;AAEtD,eAAO,MAAM,YAAY;;;;;8BAKJ,MAAM;iCACH,MAAM;wCACC,MAAM;oDACM,MAAM;;kCAExB,MAAM;mCACL,MAAM;yCACA,MAAM;+CACA,MAAM;;;yCAGZ,MAAM;sCACT,MAAM;;;;;;;;;;;;;;;;;;;;CAsBzB,CAAC"}
|
|
@@ -8,24 +8,19 @@ exports.USERS_ROUTES = {
|
|
|
8
8
|
UPDATE: '',
|
|
9
9
|
GET: '',
|
|
10
10
|
STREAM: 'stream',
|
|
11
|
-
DELETE: (
|
|
12
|
-
|
|
13
|
-
ACCESSIBLE_NODES: (
|
|
14
|
-
SUBSCRIPTION_REQUEST_HISTORY: (
|
|
11
|
+
DELETE: (userId) => `${userId}`,
|
|
12
|
+
GET_BY_ID: (userId) => `${userId}`,
|
|
13
|
+
ACCESSIBLE_NODES: (userId) => `${userId}/accessible-nodes`,
|
|
14
|
+
SUBSCRIPTION_REQUEST_HISTORY: (userId) => `${userId}/subscription-request-history`,
|
|
15
15
|
ACTIONS: {
|
|
16
|
-
ENABLE: (
|
|
17
|
-
DISABLE: (
|
|
18
|
-
RESET_TRAFFIC: (
|
|
19
|
-
REVOKE_SUBSCRIPTION: (
|
|
16
|
+
ENABLE: (userId) => `${userId}/${exports.USERS_ACTIONS_ROUTE}/enable`,
|
|
17
|
+
DISABLE: (userId) => `${userId}/${exports.USERS_ACTIONS_ROUTE}/disable`,
|
|
18
|
+
RESET_TRAFFIC: (userId) => `${userId}/${exports.USERS_ACTIONS_ROUTE}/reset-traffic`,
|
|
19
|
+
REVOKE_SUBSCRIPTION: (userId) => `${userId}/${exports.USERS_ACTIONS_ROUTE}/revoke`,
|
|
20
20
|
},
|
|
21
21
|
GET_BY: {
|
|
22
|
-
ID: (id) => `by-id/${id}`,
|
|
23
22
|
SHORT_UUID: (shortUuid) => `by-short-uuid/${shortUuid}`,
|
|
24
23
|
USERNAME: (username) => `by-username/${username}`,
|
|
25
|
-
SUBSCRIPTION_UUID: (subscriptionUuid) => `by-subscription-uuid/${subscriptionUuid}`,
|
|
26
|
-
TELEGRAM_ID: (telegramId) => `by-telegram-id/${telegramId}`,
|
|
27
|
-
EMAIL: (email) => `by-email/${email}`,
|
|
28
|
-
TAG: (tag) => `by-tag/${tag}`,
|
|
29
24
|
},
|
|
30
25
|
BULK: {
|
|
31
26
|
DELETE_BY_STATUS: 'bulk/delete-by-status',
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
export declare const CONTROLLERS_INFO: {
|
|
2
|
-
readonly AUTH: {
|
|
3
|
-
readonly tag: "Auth Controller";
|
|
4
|
-
readonly description: "Used to authenticate admin users.";
|
|
5
|
-
readonly resource: "auth";
|
|
6
|
-
};
|
|
7
|
-
readonly PASSKEYS: {
|
|
8
|
-
readonly tag: "Passkeys Controller";
|
|
9
|
-
readonly description: "Management of Passkeys.";
|
|
10
|
-
readonly resource: "passkeys";
|
|
11
|
-
};
|
|
12
|
-
readonly API_TOKENS: {
|
|
13
|
-
readonly tag: "API Tokens Controller";
|
|
14
|
-
readonly description: "Manage API tokens to use in your code. This controller can't be used with API token, only with Admin JWT token";
|
|
15
|
-
readonly resource: "api-tokens";
|
|
16
|
-
};
|
|
17
2
|
readonly USERS: {
|
|
18
3
|
readonly tag: "Users Controller";
|
|
19
4
|
readonly description: "Manage users, change their status, reset traffic, etc.";
|
|
@@ -134,5 +119,20 @@ export declare const CONTROLLERS_INFO: {
|
|
|
134
119
|
readonly description: "Manage arbitrary metadata for Users and Nodes.";
|
|
135
120
|
readonly resource: "metadata";
|
|
136
121
|
};
|
|
122
|
+
readonly AUTH: {
|
|
123
|
+
readonly tag: "Auth Controller";
|
|
124
|
+
readonly description: "Used to authenticate admin users.";
|
|
125
|
+
readonly resource: "auth";
|
|
126
|
+
};
|
|
127
|
+
readonly PASSKEYS: {
|
|
128
|
+
readonly tag: "Passkeys Controller";
|
|
129
|
+
readonly description: "Management of Passkeys.";
|
|
130
|
+
readonly resource: "passkeys";
|
|
131
|
+
};
|
|
132
|
+
readonly API_TOKENS: {
|
|
133
|
+
readonly tag: "API Tokens Controller";
|
|
134
|
+
readonly description: "Manage API tokens to use in your code. This controller can't be used with API token, only with Admin JWT token";
|
|
135
|
+
readonly resource: "api-tokens";
|
|
136
|
+
};
|
|
137
137
|
};
|
|
138
138
|
//# sourceMappingURL=controllers-info.d.ts.map
|
|
@@ -2,21 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CONTROLLERS_INFO = void 0;
|
|
4
4
|
exports.CONTROLLERS_INFO = {
|
|
5
|
-
AUTH: {
|
|
6
|
-
tag: 'Auth Controller',
|
|
7
|
-
description: 'Used to authenticate admin users.',
|
|
8
|
-
resource: 'auth',
|
|
9
|
-
},
|
|
10
|
-
PASSKEYS: {
|
|
11
|
-
tag: 'Passkeys Controller',
|
|
12
|
-
description: 'Management of Passkeys.',
|
|
13
|
-
resource: 'passkeys',
|
|
14
|
-
},
|
|
15
|
-
API_TOKENS: {
|
|
16
|
-
tag: 'API Tokens Controller',
|
|
17
|
-
description: "Manage API tokens to use in your code. This controller can't be used with API token, only with Admin JWT token",
|
|
18
|
-
resource: 'api-tokens',
|
|
19
|
-
},
|
|
20
5
|
USERS: {
|
|
21
6
|
tag: 'Users Controller',
|
|
22
7
|
description: 'Manage users, change their status, reset traffic, etc.',
|
|
@@ -137,4 +122,19 @@ exports.CONTROLLERS_INFO = {
|
|
|
137
122
|
description: 'Manage arbitrary metadata for Users and Nodes.',
|
|
138
123
|
resource: 'metadata',
|
|
139
124
|
},
|
|
125
|
+
AUTH: {
|
|
126
|
+
tag: 'Auth Controller',
|
|
127
|
+
description: 'Used to authenticate admin users.',
|
|
128
|
+
resource: 'auth',
|
|
129
|
+
},
|
|
130
|
+
PASSKEYS: {
|
|
131
|
+
tag: 'Passkeys Controller',
|
|
132
|
+
description: 'Management of Passkeys.',
|
|
133
|
+
resource: 'passkeys',
|
|
134
|
+
},
|
|
135
|
+
API_TOKENS: {
|
|
136
|
+
tag: 'API Tokens Controller',
|
|
137
|
+
description: "Manage API tokens to use in your code. This controller can't be used with API token, only with Admin JWT token",
|
|
138
|
+
resource: 'api-tokens',
|
|
139
|
+
},
|
|
140
140
|
};
|
|
@@ -65,18 +65,17 @@ export declare const REST_API: {
|
|
|
65
65
|
readonly UPDATE: "/api/users/";
|
|
66
66
|
readonly GET: "/api/users/";
|
|
67
67
|
readonly STREAM: "/api/users/stream";
|
|
68
|
-
readonly DELETE: (
|
|
69
|
-
readonly
|
|
70
|
-
readonly ACCESSIBLE_NODES: (
|
|
71
|
-
readonly SUBSCRIPTION_REQUEST_HISTORY: (
|
|
68
|
+
readonly DELETE: (userId: string) => string;
|
|
69
|
+
readonly GET_BY_ID: (userId: string) => string;
|
|
70
|
+
readonly ACCESSIBLE_NODES: (userId: string) => string;
|
|
71
|
+
readonly SUBSCRIPTION_REQUEST_HISTORY: (userId: string) => string;
|
|
72
72
|
readonly ACTIONS: {
|
|
73
|
-
readonly DISABLE: (
|
|
74
|
-
readonly ENABLE: (
|
|
75
|
-
readonly RESET_TRAFFIC: (
|
|
76
|
-
readonly REVOKE_SUBSCRIPTION: (
|
|
73
|
+
readonly DISABLE: (userId: string) => string;
|
|
74
|
+
readonly ENABLE: (userId: string) => string;
|
|
75
|
+
readonly RESET_TRAFFIC: (userId: string) => string;
|
|
76
|
+
readonly REVOKE_SUBSCRIPTION: (userId: string) => string;
|
|
77
77
|
};
|
|
78
78
|
readonly GET_BY: {
|
|
79
|
-
readonly ID: (id: string) => string;
|
|
80
79
|
readonly SHORT_UUID: (shortUuid: string) => string;
|
|
81
80
|
readonly USERNAME: (username: string) => string;
|
|
82
81
|
};
|
|
@@ -157,7 +156,7 @@ export declare const REST_API: {
|
|
|
157
156
|
readonly HWID: {
|
|
158
157
|
readonly GET_ALL_HWID_DEVICES: "/api/hwid/devices";
|
|
159
158
|
readonly CREATE_USER_HWID_DEVICE: "/api/hwid/devices";
|
|
160
|
-
readonly GET_USER_HWID_DEVICES: (
|
|
159
|
+
readonly GET_USER_HWID_DEVICES: (userId: string) => string;
|
|
161
160
|
readonly DELETE_USER_HWID_DEVICE: "/api/hwid/devices/delete";
|
|
162
161
|
readonly DELETE_ALL_USER_HWID_DEVICES: "/api/hwid/devices/delete-all";
|
|
163
162
|
readonly STATS: "/api/hwid/devices/stats";
|
|
@@ -167,14 +166,14 @@ export declare const REST_API: {
|
|
|
167
166
|
readonly GET: "/api/subscriptions/";
|
|
168
167
|
readonly GET_BY: {
|
|
169
168
|
readonly USERNAME: (username: string) => string;
|
|
170
|
-
readonly UUID: (uuid: string) => string;
|
|
171
169
|
readonly SHORT_UUID: (shortUuid: string) => string;
|
|
172
170
|
readonly SHORT_UUID_RAW: (shortUuid: string) => string;
|
|
171
|
+
readonly ID: (userId: string) => string;
|
|
173
172
|
};
|
|
174
173
|
readonly SUBPAGE: {
|
|
175
174
|
readonly GET_CONFIG: (shortUuid: string) => string;
|
|
176
175
|
};
|
|
177
|
-
readonly
|
|
176
|
+
readonly GET_CONNECTION_KEYS_BY_USER_ID: (userId: string) => string;
|
|
178
177
|
};
|
|
179
178
|
readonly CONFIG_PROFILES: {
|
|
180
179
|
readonly GET: "/api/config-profiles/";
|
|
@@ -199,6 +198,8 @@ export declare const REST_API: {
|
|
|
199
198
|
readonly BULK_ACTIONS: {
|
|
200
199
|
readonly ADD_USERS: (uuid: string) => string;
|
|
201
200
|
readonly REMOVE_USERS: (uuid: string) => string;
|
|
201
|
+
readonly ADD_MANY_USERS: (uuid: string) => string;
|
|
202
|
+
readonly REMOVE_MANY_USERS: (uuid: string) => string;
|
|
202
203
|
};
|
|
203
204
|
readonly ACTIONS: {
|
|
204
205
|
readonly REORDER: "/api/internal-squads/actions/reorder";
|
|
@@ -280,21 +281,18 @@ export declare const REST_API: {
|
|
|
280
281
|
readonly GET_REALTIME: "/api/bandwidth-stats/nodes/realtime";
|
|
281
282
|
readonly GET_USERS: (uuid: string) => string;
|
|
282
283
|
readonly GET_USERS_BY_NODES: "/api/bandwidth-stats/nodes/users";
|
|
284
|
+
readonly GET_USAGE: "/api/bandwidth-stats/nodes/usage";
|
|
283
285
|
};
|
|
284
286
|
readonly USERS: {
|
|
285
|
-
readonly
|
|
287
|
+
readonly GET_BY_ID: (userId: string) => string;
|
|
286
288
|
};
|
|
287
|
-
readonly
|
|
288
|
-
readonly
|
|
289
|
-
|
|
290
|
-
};
|
|
291
|
-
readonly USERS: {
|
|
292
|
-
readonly GET_BY_UUID: (uuid: string) => string;
|
|
293
|
-
};
|
|
289
|
+
readonly INTERNAL_SQUADS: {
|
|
290
|
+
readonly GET_USAGE: (uuid: string) => string;
|
|
291
|
+
readonly USER_USAGE: (squadUuid: string, userId: string) => string;
|
|
294
292
|
};
|
|
295
293
|
};
|
|
296
294
|
readonly CONNECTIONS: {
|
|
297
|
-
readonly CONNECTIONS_BY_USER: (
|
|
295
|
+
readonly CONNECTIONS_BY_USER: (userId: string) => string;
|
|
298
296
|
readonly CONNECTIONS_BY_USER_RESULT: (jobId: string) => string;
|
|
299
297
|
readonly CONNECTIONS_BY_NODE: (uuid: string) => string;
|
|
300
298
|
readonly CONNECTIONS_BY_NODE_RESULT: (jobId: string) => string;
|
|
@@ -306,8 +304,8 @@ export declare const REST_API: {
|
|
|
306
304
|
readonly UPSERT: (uuid: string) => string;
|
|
307
305
|
};
|
|
308
306
|
readonly USER: {
|
|
309
|
-
readonly GET: (
|
|
310
|
-
readonly UPSERT: (
|
|
307
|
+
readonly GET: (userId: string) => string;
|
|
308
|
+
readonly UPSERT: (userId: string) => string;
|
|
311
309
|
};
|
|
312
310
|
};
|
|
313
311
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW,EAAG,SAAkB,CAAC;AAE9C,eAAO,MAAM,kBAAkB,EAAG,gBAAyB,CAAC;AAC5D,eAAO,MAAM,cAAc,EAAG,uBAAgC,CAAC;AAC/D,eAAO,MAAM,YAAY,EAAG,wBAAiC,CAAC;AAC9D,eAAO,MAAM,WAAW,EAAG,uBAAgC,CAAC;AAE5D,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;gCAyBE,MAAM;;;;;;;;;;;qCAcD,MAAM;;gCAGX,MAAM;;;;;oCAOF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;2CAKA,MAAM;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW,EAAG,SAAkB,CAAC;AAE9C,eAAO,MAAM,kBAAkB,EAAG,gBAAyB,CAAC;AAC5D,eAAO,MAAM,cAAc,EAAG,uBAAgC,CAAC;AAC/D,eAAO,MAAM,YAAY,EAAG,wBAAiC,CAAC;AAC9D,eAAO,MAAM,WAAW,EAAG,uBAAgC,CAAC;AAE5D,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;gCAyBE,MAAM;;;;;;;;;;;qCAcD,MAAM;;gCAGX,MAAM;;;;;oCAOF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;2CAKA,MAAM;;;;;;;;;;;;;;kCAkBf,MAAM;qCAGH,MAAM;4CAEC,MAAM;wDAEM,MAAM;;uCAMvB,MAAM;sCAIP,MAAM;6CAIC,MAAM;mDAIA,MAAM;;;6CAMZ,MAAM;0CAIT,MAAM;;;;;;;;;;;;;;;;;;;;;;kCAyBd,MAAM;uCAED,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAoCT,MAAM;;gCAKH,MAAM;;;;;;;;;;;;;;iDAiBW,MAAM;;;;;;;;;0CAYb,MAAM;6CAIH,MAAM;iDAIF,MAAM;kCAIrB,MAAM;;;6CAMK,MAAM;;0DAKO,MAAM;;;;;;qCAS3B,MAAM;gCAIX,MAAM;sDAIgB,MAAM;6DAIC,MAAM;;;;;;;;;;qCAa9B,MAAM;gCAIX,MAAM;0CAII,MAAM;;uCAKT,MAAM;0CAEH,MAAM;4CAEJ,MAAM;+CAEH,MAAM;;;;;;;;;;yCAWZ,MAAM;8CAED,MAAM;;;;6CAMP,MAAM;;;gDAKH,MAAM;;;;;;;;;;;;;;;;qCAiBjB,MAAM;gCAIX,MAAM;;uCAKC,MAAM;0CAEH,MAAM;;;;;;;;;;;6BAYnB,MAAM;;;gCAIH,MAAM;;;;;;;;6BAST,MAAM;;;gCAIH,MAAM;;;;;;;;;;;;;;;;;uCAkBC,MAAM;;;;;yCAMJ,MAAM;;;uCAIR,MAAM;6CAEA,MAAM,UAAU,MAAM;;;;+CAKpB,MAAM;qDAEA,MAAM;6CAEd,MAAM;qDAEE,MAAM;;;;;iCAM1B,MAAM;oCAEH,MAAM;;;mCAIP,MAAM;sCAEH,MAAM;;;CAIzB,CAAC"}
|
|
@@ -102,18 +102,17 @@ exports.REST_API = {
|
|
|
102
102
|
UPDATE: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.UPDATE}`,
|
|
103
103
|
GET: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET}`,
|
|
104
104
|
STREAM: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.STREAM}`,
|
|
105
|
-
DELETE: (
|
|
106
|
-
|
|
107
|
-
ACCESSIBLE_NODES: (
|
|
108
|
-
SUBSCRIPTION_REQUEST_HISTORY: (
|
|
105
|
+
DELETE: (userId) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.DELETE(userId)}`,
|
|
106
|
+
GET_BY_ID: (userId) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET_BY_ID(userId)}`,
|
|
107
|
+
ACCESSIBLE_NODES: (userId) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACCESSIBLE_NODES(userId)}`,
|
|
108
|
+
SUBSCRIPTION_REQUEST_HISTORY: (userId) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.SUBSCRIPTION_REQUEST_HISTORY(userId)}`,
|
|
109
109
|
ACTIONS: {
|
|
110
|
-
DISABLE: (
|
|
111
|
-
ENABLE: (
|
|
112
|
-
RESET_TRAFFIC: (
|
|
113
|
-
REVOKE_SUBSCRIPTION: (
|
|
110
|
+
DISABLE: (userId) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACTIONS.DISABLE(userId)}`,
|
|
111
|
+
ENABLE: (userId) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACTIONS.ENABLE(userId)}`,
|
|
112
|
+
RESET_TRAFFIC: (userId) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACTIONS.RESET_TRAFFIC(userId)}`,
|
|
113
|
+
REVOKE_SUBSCRIPTION: (userId) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.ACTIONS.REVOKE_SUBSCRIPTION(userId)}`,
|
|
114
114
|
},
|
|
115
115
|
GET_BY: {
|
|
116
|
-
ID: (id) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET_BY.ID(id)}`,
|
|
117
116
|
SHORT_UUID: (shortUuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET_BY.SHORT_UUID(shortUuid)}`,
|
|
118
117
|
USERNAME: (username) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.GET_BY.USERNAME(username)}`,
|
|
119
118
|
},
|
|
@@ -194,7 +193,7 @@ exports.REST_API = {
|
|
|
194
193
|
HWID: {
|
|
195
194
|
GET_ALL_HWID_DEVICES: `${exports.ROOT}/${CONTROLLERS.HWID_CONTROLLER}/${CONTROLLERS.HWID_ROUTES.GET_ALL_HWID_DEVICES}`,
|
|
196
195
|
CREATE_USER_HWID_DEVICE: `${exports.ROOT}/${CONTROLLERS.HWID_CONTROLLER}/${CONTROLLERS.HWID_ROUTES.CREATE_USER_HWID_DEVICE}`,
|
|
197
|
-
GET_USER_HWID_DEVICES: (
|
|
196
|
+
GET_USER_HWID_DEVICES: (userId) => `${exports.ROOT}/${CONTROLLERS.HWID_CONTROLLER}/${CONTROLLERS.HWID_ROUTES.GET_USER_HWID_DEVICES(userId)}`,
|
|
198
197
|
DELETE_USER_HWID_DEVICE: `${exports.ROOT}/${CONTROLLERS.HWID_CONTROLLER}/${CONTROLLERS.HWID_ROUTES.DELETE_USER_HWID_DEVICE}`,
|
|
199
198
|
DELETE_ALL_USER_HWID_DEVICES: `${exports.ROOT}/${CONTROLLERS.HWID_CONTROLLER}/${CONTROLLERS.HWID_ROUTES.DELETE_ALL_USER_HWID_DEVICES}`,
|
|
200
199
|
STATS: `${exports.ROOT}/${CONTROLLERS.HWID_CONTROLLER}/${CONTROLLERS.HWID_ROUTES.STATS}`,
|
|
@@ -204,14 +203,14 @@ exports.REST_API = {
|
|
|
204
203
|
GET: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTIONS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTIONS_ROUTES.GET}`,
|
|
205
204
|
GET_BY: {
|
|
206
205
|
USERNAME: (username) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTIONS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTIONS_ROUTES.GET_BY.USERNAME(username)}`,
|
|
207
|
-
UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTIONS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTIONS_ROUTES.GET_BY.UUID(uuid)}`,
|
|
208
206
|
SHORT_UUID: (shortUuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTIONS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTIONS_ROUTES.GET_BY.SHORT_UUID(shortUuid)}`,
|
|
209
207
|
SHORT_UUID_RAW: (shortUuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTIONS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTIONS_ROUTES.GET_BY.SHORT_UUID_RAW(shortUuid)}`,
|
|
208
|
+
ID: (userId) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTIONS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTIONS_ROUTES.GET_BY.ID(userId)}`,
|
|
210
209
|
},
|
|
211
210
|
SUBPAGE: {
|
|
212
211
|
GET_CONFIG: (shortUuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTIONS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTIONS_ROUTES.SUBPAGE.GET_CONFIG(shortUuid)}`,
|
|
213
212
|
},
|
|
214
|
-
|
|
213
|
+
GET_CONNECTION_KEYS_BY_USER_ID: (userId) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTIONS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTIONS_ROUTES.GET_CONNECTION_KEYS_BY_USER_ID(userId)}`,
|
|
215
214
|
},
|
|
216
215
|
CONFIG_PROFILES: {
|
|
217
216
|
GET: `${exports.ROOT}/${CONTROLLERS.CONFIG_PROFILES_CONTROLLER}/${CONTROLLERS.CONFIG_PROFILES_ROUTES.GET}`,
|
|
@@ -236,6 +235,8 @@ exports.REST_API = {
|
|
|
236
235
|
BULK_ACTIONS: {
|
|
237
236
|
ADD_USERS: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.BULK_ACTIONS.ADD_USERS(uuid)}`,
|
|
238
237
|
REMOVE_USERS: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.BULK_ACTIONS.REMOVE_USERS(uuid)}`,
|
|
238
|
+
ADD_MANY_USERS: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.BULK_ACTIONS.ADD_MANY_USERS(uuid)}`,
|
|
239
|
+
REMOVE_MANY_USERS: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.BULK_ACTIONS.REMOVE_MANY_USERS(uuid)}`,
|
|
239
240
|
},
|
|
240
241
|
ACTIONS: {
|
|
241
242
|
REORDER: `${exports.ROOT}/${CONTROLLERS.INTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.INTERNAL_SQUADS_ROUTES.ACTIONS.REORDER}`,
|
|
@@ -317,21 +318,18 @@ exports.REST_API = {
|
|
|
317
318
|
GET_REALTIME: `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_NODES_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.NODES.GET_REALTIME}`,
|
|
318
319
|
GET_USERS: (uuid) => `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_NODES_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.NODES.GET_USERS(uuid)}`,
|
|
319
320
|
GET_USERS_BY_NODES: `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_NODES_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.NODES.GET_USERS_BY_NODES}`,
|
|
321
|
+
GET_USAGE: `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_NODES_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.NODES.GET_USAGE}`,
|
|
320
322
|
},
|
|
321
323
|
USERS: {
|
|
322
|
-
|
|
324
|
+
GET_BY_ID: (userId) => `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_USERS_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.USERS.GET_BY_ID(userId)}`,
|
|
323
325
|
},
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
},
|
|
328
|
-
USERS: {
|
|
329
|
-
GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_USERS_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.LEGACY.USERS.GET_BY_UUID(uuid)}`,
|
|
330
|
-
},
|
|
326
|
+
INTERNAL_SQUADS: {
|
|
327
|
+
GET_USAGE: (uuid) => `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_INTERNAL_SQUADS_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.INTERNAL_SQUADS.GET_USAGE(uuid)}`,
|
|
328
|
+
USER_USAGE: (squadUuid, userId) => `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_INTERNAL_SQUADS_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.INTERNAL_SQUADS.USER_USAGE(squadUuid, userId)}`,
|
|
331
329
|
},
|
|
332
330
|
},
|
|
333
331
|
CONNECTIONS: {
|
|
334
|
-
CONNECTIONS_BY_USER: (
|
|
332
|
+
CONNECTIONS_BY_USER: (userId) => `${exports.ROOT}/${CONTROLLERS.CONNECTIONS_CONTROLLER}/${CONTROLLERS.CONNECTIONS_ROUTES.CONNECTIONS_BY_USER(userId)}`,
|
|
335
333
|
CONNECTIONS_BY_USER_RESULT: (jobId) => `${exports.ROOT}/${CONTROLLERS.CONNECTIONS_CONTROLLER}/${CONTROLLERS.CONNECTIONS_ROUTES.CONNECTIONS_BY_USER_RESULT(jobId)}`,
|
|
336
334
|
CONNECTIONS_BY_NODE: (uuid) => `${exports.ROOT}/${CONTROLLERS.CONNECTIONS_CONTROLLER}/${CONTROLLERS.CONNECTIONS_ROUTES.CONNECTIONS_BY_NODE(uuid)}`,
|
|
337
335
|
CONNECTIONS_BY_NODE_RESULT: (jobId) => `${exports.ROOT}/${CONTROLLERS.CONNECTIONS_CONTROLLER}/${CONTROLLERS.CONNECTIONS_ROUTES.CONNECTIONS_BY_NODE_RESULT(jobId)}`,
|
|
@@ -343,8 +341,8 @@ exports.REST_API = {
|
|
|
343
341
|
UPSERT: (uuid) => `${exports.ROOT}/${CONTROLLERS.METADATA_CONTROLLER}/${CONTROLLERS.METADATA_ROUTES.NODE.UPSERT(uuid)}`,
|
|
344
342
|
},
|
|
345
343
|
USER: {
|
|
346
|
-
GET: (
|
|
347
|
-
UPSERT: (
|
|
344
|
+
GET: (userId) => `${exports.ROOT}/${CONTROLLERS.METADATA_CONTROLLER}/${CONTROLLERS.METADATA_ROUTES.USER.GET(userId)}`,
|
|
345
|
+
UPSERT: (userId) => `${exports.ROOT}/${CONTROLLERS.METADATA_CONTROLLER}/${CONTROLLERS.METADATA_ROUTES.USER.UPSERT(userId)}`,
|
|
348
346
|
},
|
|
349
347
|
},
|
|
350
348
|
};
|