@remnawave/backend-contract 2.2.31 → 2.2.32
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/nodes.d.ts +1 -0
- package/build/backend/api/controllers/nodes.d.ts.map +1 -1
- package/build/backend/api/controllers/nodes.js +1 -0
- package/build/backend/api/routes.d.ts +1 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +1 -0
- package/build/backend/commands/nodes/actions/index.d.ts +1 -0
- package/build/backend/commands/nodes/actions/index.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/index.js +1 -0
- package/build/backend/commands/nodes/actions/reset-traffic.command.d.ts +33 -0
- package/build/backend/commands/nodes/actions/reset-traffic.command.d.ts.map +1 -0
- package/build/backend/commands/nodes/actions/reset-traffic.command.js +20 -0
- package/build/backend/constants/errors/errors.d.ts +5 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +5 -0
- package/build/frontend/api/controllers/nodes.js +1 -0
- package/build/frontend/api/routes.js +1 -0
- package/build/frontend/commands/nodes/actions/index.js +1 -0
- package/build/frontend/commands/nodes/actions/reset-traffic.command.js +20 -0
- package/build/frontend/constants/errors/errors.js +5 -0
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ export declare const NODES_ROUTES: {
|
|
|
10
10
|
readonly ENABLE: (uuid: string) => string;
|
|
11
11
|
readonly DISABLE: (uuid: string) => string;
|
|
12
12
|
readonly RESTART: (uuid: string) => string;
|
|
13
|
+
readonly RESET_TRAFFIC: (uuid: string) => string;
|
|
13
14
|
readonly RESTART_ALL: "actions/restart-all";
|
|
14
15
|
readonly REORDER: "actions/reorder";
|
|
15
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../../../api/controllers/nodes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,kBAAkB,EAAG,SAAkB,CAAC;AAErD,eAAO,MAAM,YAAY;;;iCAGD,MAAM;;4BAEX,MAAM;;gCAGF,MAAM;iCACL,MAAM;iCACN,MAAM;;;;;;
|
|
1
|
+
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../../../api/controllers/nodes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,kBAAkB,EAAG,SAAkB,CAAC;AAErD,eAAO,MAAM,YAAY;;;iCAGD,MAAM;;4BAEX,MAAM;;gCAGF,MAAM;iCACL,MAAM;iCACN,MAAM;uCACA,MAAM;;;;;;6CAQA,MAAM;;;CAGhC,CAAC"}
|
|
@@ -13,6 +13,7 @@ exports.NODES_ROUTES = {
|
|
|
13
13
|
ENABLE: (uuid) => `${uuid}/${exports.NODE_ACTIONS_ROUTE}/enable`,
|
|
14
14
|
DISABLE: (uuid) => `${uuid}/${exports.NODE_ACTIONS_ROUTE}/disable`,
|
|
15
15
|
RESTART: (uuid) => `${uuid}/${exports.NODE_ACTIONS_ROUTE}/restart`,
|
|
16
|
+
RESET_TRAFFIC: (uuid) => `${uuid}/${exports.NODE_ACTIONS_ROUTE}/reset-traffic`,
|
|
16
17
|
RESTART_ALL: `${exports.NODE_ACTIONS_ROUTE}/restart-all`,
|
|
17
18
|
REORDER: `${exports.NODE_ACTIONS_ROUTE}/reorder`,
|
|
18
19
|
},
|
|
@@ -42,6 +42,7 @@ export declare const REST_API: {
|
|
|
42
42
|
readonly DISABLE: (uuid: string) => string;
|
|
43
43
|
readonly RESTART: (uuid: string) => string;
|
|
44
44
|
readonly RESTART_ALL: "/api/nodes/actions/restart-all";
|
|
45
|
+
readonly RESET_TRAFFIC: (uuid: string) => string;
|
|
45
46
|
readonly REORDER: "/api/nodes/actions/reorder";
|
|
46
47
|
};
|
|
47
48
|
readonly STATS: {
|
|
@@ -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;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;gCAwBE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,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;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;gCAwBE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;2CAKA,MAAM;;;;;iDASA,MAAM;;;;;;;;gCAWvB,MAAM;qCAGD,MAAM;0CAED,MAAM;sDAEM,MAAM;;qCAMvB,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;6CAOV,MAAM;0CAIT,MAAM;2DAIW,MAAM;+CAIlB,MAAM;oCAIjB,MAAM;gCAIV,MAAM;;;;;;;;;;;;;;;gDAmBU,MAAM;;;;;;;kCAWpB,MAAM;0CAEE,MAAM;uCAET,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAmCT,MAAM;;gCAKH,MAAM;;;;;;;;;;;mDAca,MAAM;;;;;;;;0CAWf,MAAM;kCAId,MAAM;6CAIK,MAAM;iDAIF,MAAM;;;;;;;qCAUlB,MAAM;gCAIX,MAAM;sDAIgB,MAAM;6DAIC,MAAM;;;;;;;qCAU9B,MAAM;gCAIX,MAAM;0CAII,MAAM;;uCAKT,MAAM;0CAEH,MAAM;;;;;;;yCASP,MAAM;8CAED,MAAM;;;;6CAMP,MAAM;;;gDAKH,MAAM;;;;;;;;;;;;;;;;qCAiBjB,MAAM;gCAIX,MAAM;;uCAKC,MAAM;0CAEH,MAAM;;;;;;;CAQ7B,CAAC"}
|
|
@@ -79,6 +79,7 @@ exports.REST_API = {
|
|
|
79
79
|
DISABLE: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ACTIONS.DISABLE(uuid)}`,
|
|
80
80
|
RESTART: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ACTIONS.RESTART(uuid)}`,
|
|
81
81
|
RESTART_ALL: `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ACTIONS.RESTART_ALL}`,
|
|
82
|
+
RESET_TRAFFIC: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ACTIONS.RESET_TRAFFIC(uuid)}`,
|
|
82
83
|
REORDER: `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ACTIONS.REORDER}`,
|
|
83
84
|
},
|
|
84
85
|
STATS: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/nodes/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/nodes/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"}
|
|
@@ -17,5 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./disable.command"), exports);
|
|
18
18
|
__exportStar(require("./enable.command"), exports);
|
|
19
19
|
__exportStar(require("./reorder.command"), exports);
|
|
20
|
+
__exportStar(require("./reset-traffic.command"), exports);
|
|
20
21
|
__exportStar(require("./restart-all.command"), exports);
|
|
21
22
|
__exportStar(require("./restart.command"), exports);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace ResetNodeTrafficCommand {
|
|
3
|
+
const url: (uuid: string) => string;
|
|
4
|
+
const TSQ_url: string;
|
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
+
const RequestSchema: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
uuid: string;
|
|
10
|
+
}, {
|
|
11
|
+
uuid: string;
|
|
12
|
+
}>;
|
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
response: z.ZodObject<{
|
|
16
|
+
eventSent: z.ZodBoolean;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
eventSent: boolean;
|
|
19
|
+
}, {
|
|
20
|
+
eventSent: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
response: {
|
|
24
|
+
eventSent: boolean;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
response: {
|
|
28
|
+
eventSent: boolean;
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
31
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=reset-traffic.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reset-traffic.command.d.ts","sourceRoot":"","sources":["../../../../../commands/nodes/actions/reset-traffic.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,0BAAuC,CAAC;IACjD,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResetNodeTrafficCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const api_1 = require("../../../api");
|
|
7
|
+
var ResetNodeTrafficCommand;
|
|
8
|
+
(function (ResetNodeTrafficCommand) {
|
|
9
|
+
ResetNodeTrafficCommand.url = api_1.REST_API.NODES.ACTIONS.RESET_TRAFFIC;
|
|
10
|
+
ResetNodeTrafficCommand.TSQ_url = ResetNodeTrafficCommand.url(':uuid');
|
|
11
|
+
ResetNodeTrafficCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODES_ROUTES.ACTIONS.RESET_TRAFFIC(':uuid'), 'post', 'Reset Node Traffic');
|
|
12
|
+
ResetNodeTrafficCommand.RequestSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
});
|
|
15
|
+
ResetNodeTrafficCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
response: zod_1.z.object({
|
|
17
|
+
eventSent: zod_1.z.boolean(),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
})(ResetNodeTrafficCommand || (exports.ResetNodeTrafficCommand = ResetNodeTrafficCommand = {}));
|
|
@@ -1039,5 +1039,10 @@ export declare const ERRORS: {
|
|
|
1039
1039
|
readonly message: "Get computed config profile by UUID error";
|
|
1040
1040
|
readonly httpCode: 500;
|
|
1041
1041
|
};
|
|
1042
|
+
readonly RESET_NODE_TRAFFIC_ERROR: {
|
|
1043
|
+
readonly code: "A201";
|
|
1044
|
+
readonly message: "Reset node traffic error";
|
|
1045
|
+
readonly httpCode: 500;
|
|
1046
|
+
};
|
|
1042
1047
|
};
|
|
1043
1048
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;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able`,
|
|
15
15
|
RESTART: (uuid) => `${uuid}/${exports.NODE_ACTIONS_ROUTE}/restart`,
|
|
16
|
+
RESET_TRAFFIC: (uuid) => `${uuid}/${exports.NODE_ACTIONS_ROUTE}/reset-traffic`,
|
|
16
17
|
RESTART_ALL: `${exports.NODE_ACTIONS_ROUTE}/restart-all`,
|
|
17
18
|
REORDER: `${exports.NODE_ACTIONS_ROUTE}/reorder`,
|
|
18
19
|
},
|
|
@@ -79,6 +79,7 @@ exports.REST_API = {
|
|
|
79
79
|
DISABLE: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ACTIONS.DISABLE(uuid)}`,
|
|
80
80
|
RESTART: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ACTIONS.RESTART(uuid)}`,
|
|
81
81
|
RESTART_ALL: `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ACTIONS.RESTART_ALL}`,
|
|
82
|
+
RESET_TRAFFIC: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ACTIONS.RESET_TRAFFIC(uuid)}`,
|
|
82
83
|
REORDER: `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ACTIONS.REORDER}`,
|
|
83
84
|
},
|
|
84
85
|
STATS: {
|
|
@@ -17,5 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./disable.command"), exports);
|
|
18
18
|
__exportStar(require("./enable.command"), exports);
|
|
19
19
|
__exportStar(require("./reorder.command"), exports);
|
|
20
|
+
__exportStar(require("./reset-traffic.command"), exports);
|
|
20
21
|
__exportStar(require("./restart-all.command"), exports);
|
|
21
22
|
__exportStar(require("./restart.command"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResetNodeTrafficCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const api_1 = require("../../../api");
|
|
7
|
+
var ResetNodeTrafficCommand;
|
|
8
|
+
(function (ResetNodeTrafficCommand) {
|
|
9
|
+
ResetNodeTrafficCommand.url = api_1.REST_API.NODES.ACTIONS.RESET_TRAFFIC;
|
|
10
|
+
ResetNodeTrafficCommand.TSQ_url = ResetNodeTrafficCommand.url(':uuid');
|
|
11
|
+
ResetNodeTrafficCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODES_ROUTES.ACTIONS.RESET_TRAFFIC(':uuid'), 'post', 'Reset Node Traffic');
|
|
12
|
+
ResetNodeTrafficCommand.RequestSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
});
|
|
15
|
+
ResetNodeTrafficCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
response: zod_1.z.object({
|
|
17
|
+
eventSent: zod_1.z.boolean(),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
})(ResetNodeTrafficCommand || (exports.ResetNodeTrafficCommand = ResetNodeTrafficCommand = {}));
|