@remnawave/backend-contract 0.0.77 → 0.0.79
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/create.command.d.ts +5 -0
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/disable.command.d.ts +5 -0
- package/build/backend/commands/nodes/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/enable.command.d.ts +5 -0
- package/build/backend/commands/nodes/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-all.command.d.ts +5 -0
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +5 -0
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/index.d.ts +1 -0
- package/build/backend/commands/nodes/index.d.ts.map +1 -1
- package/build/backend/commands/nodes/index.js +1 -0
- package/build/backend/commands/nodes/reorder.command.d.ts +82 -0
- package/build/backend/commands/nodes/reorder.command.d.ts.map +1 -0
- package/build/backend/commands/nodes/reorder.command.js +22 -0
- package/build/backend/commands/nodes/update.command.d.ts +6 -0
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-all-users-v2.command.d.ts +5 -5
- package/build/backend/commands/users/get-all-users-v2.command.js +1 -1
- 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/backend/models/nodes.schema.d.ts +3 -0
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +1 -0
- package/build/frontend/api/controllers/nodes.js +1 -0
- package/build/frontend/api/routes.js +1 -0
- package/build/frontend/commands/nodes/index.js +1 -0
- package/build/frontend/commands/nodes/reorder.command.js +22 -0
- package/build/frontend/commands/users/get-all-users-v2.command.js +1 -1
- package/build/frontend/constants/errors/errors.js +5 -0
- package/build/frontend/models/nodes.schema.js +1 -0
- package/package.json +1 -1
@@ -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,YAAY
|
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,YAAY;;;;;;;;;;;;;;CAef,CAAC"}
|
@@ -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;AAEhD,eAAO,MAAM,QAAQ;;;;;;gCAME,MAAM;;;;;;;;gCASN,MAAM;;;iCAIL,MAAM;iCAEN,MAAM;iCAEN,MAAM;gCAEP,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;AAEhD,eAAO,MAAM,QAAQ;;;;;;gCAME,MAAM;;;;;;;;gCASN,MAAM;;;iCAIL,MAAM;iCAEN,MAAM;iCAEN,MAAM;gCAEP,MAAM;;;;;;;;;;;;;;;;qCAiBD,MAAM;gDAEK,MAAM;6CAET,MAAM;8DAEW,MAAM;6CAEvB,MAAM;sCAEb,MAAM;qCAEP,MAAM;qCAEN,MAAM;;;4CAIC,MAAM;;;kCAIhB,MAAM;uCAED,MAAM;;;;;;;;gCASb,MAAM;;;;;;;CAQnB,CAAC"}
|
@@ -62,6 +62,7 @@ exports.REST_API = {
|
|
62
62
|
STATS: {
|
63
63
|
USAGE_BY_RANGE: `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.STATS.USAGE_BY_RANGE}`,
|
64
64
|
},
|
65
|
+
REORDER: `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.REORDER}`,
|
65
66
|
},
|
66
67
|
XRAY: {
|
67
68
|
GET_CONFIG: `${exports.ROOT}/${CONTROLLERS.XRAY_CONTROLLER}/${CONTROLLERS.XRAY_ROUTES.GET_CONFIG}`,
|
@@ -51,6 +51,7 @@ export declare namespace CreateNodeCommand {
|
|
51
51
|
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
52
52
|
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
53
53
|
usersOnline: z.ZodNullable<z.ZodNumber>;
|
54
|
+
viewPosition: z.ZodNumber;
|
54
55
|
cpuCount: z.ZodNullable<z.ZodNumber>;
|
55
56
|
cpuModel: z.ZodNullable<z.ZodString>;
|
56
57
|
totalRam: z.ZodNullable<z.ZodString>;
|
@@ -73,6 +74,7 @@ export declare namespace CreateNodeCommand {
|
|
73
74
|
uuid: string;
|
74
75
|
createdAt: Date;
|
75
76
|
updatedAt: Date;
|
77
|
+
viewPosition: number;
|
76
78
|
address: string;
|
77
79
|
port: number | null;
|
78
80
|
isDisabled: boolean;
|
@@ -102,6 +104,7 @@ export declare namespace CreateNodeCommand {
|
|
102
104
|
uuid: string;
|
103
105
|
createdAt: string;
|
104
106
|
updatedAt: string;
|
107
|
+
viewPosition: number;
|
105
108
|
address: string;
|
106
109
|
port: number | null;
|
107
110
|
isDisabled: boolean;
|
@@ -133,6 +136,7 @@ export declare namespace CreateNodeCommand {
|
|
133
136
|
uuid: string;
|
134
137
|
createdAt: Date;
|
135
138
|
updatedAt: Date;
|
139
|
+
viewPosition: number;
|
136
140
|
address: string;
|
137
141
|
port: number | null;
|
138
142
|
isDisabled: boolean;
|
@@ -164,6 +168,7 @@ export declare namespace CreateNodeCommand {
|
|
164
168
|
uuid: string;
|
165
169
|
createdAt: string;
|
166
170
|
updatedAt: string;
|
171
|
+
viewPosition: number;
|
167
172
|
address: string;
|
168
173
|
port: number | null;
|
169
174
|
isDisabled: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2BxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2BxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -30,6 +30,7 @@ export declare namespace DisableNodeCommand {
|
|
30
30
|
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
31
31
|
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
32
32
|
usersOnline: z.ZodNullable<z.ZodNumber>;
|
33
|
+
viewPosition: z.ZodNumber;
|
33
34
|
cpuCount: z.ZodNullable<z.ZodNumber>;
|
34
35
|
cpuModel: z.ZodNullable<z.ZodString>;
|
35
36
|
totalRam: z.ZodNullable<z.ZodString>;
|
@@ -52,6 +53,7 @@ export declare namespace DisableNodeCommand {
|
|
52
53
|
uuid: string;
|
53
54
|
createdAt: Date;
|
54
55
|
updatedAt: Date;
|
56
|
+
viewPosition: number;
|
55
57
|
address: string;
|
56
58
|
port: number | null;
|
57
59
|
isDisabled: boolean;
|
@@ -81,6 +83,7 @@ export declare namespace DisableNodeCommand {
|
|
81
83
|
uuid: string;
|
82
84
|
createdAt: string;
|
83
85
|
updatedAt: string;
|
86
|
+
viewPosition: number;
|
84
87
|
address: string;
|
85
88
|
port: number | null;
|
86
89
|
isDisabled: boolean;
|
@@ -112,6 +115,7 @@ export declare namespace DisableNodeCommand {
|
|
112
115
|
uuid: string;
|
113
116
|
createdAt: Date;
|
114
117
|
updatedAt: Date;
|
118
|
+
viewPosition: number;
|
115
119
|
address: string;
|
116
120
|
port: number | null;
|
117
121
|
isDisabled: boolean;
|
@@ -143,6 +147,7 @@ export declare namespace DisableNodeCommand {
|
|
143
147
|
uuid: string;
|
144
148
|
createdAt: string;
|
145
149
|
updatedAt: string;
|
150
|
+
viewPosition: number;
|
146
151
|
address: string;
|
147
152
|
port: number | null;
|
148
153
|
isDisabled: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"disable.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/disable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAAyB,CAAC;IACnC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"disable.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/disable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAAyB,CAAC;IACnC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -30,6 +30,7 @@ export declare namespace EnableNodeCommand {
|
|
30
30
|
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
31
31
|
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
32
32
|
usersOnline: z.ZodNullable<z.ZodNumber>;
|
33
|
+
viewPosition: z.ZodNumber;
|
33
34
|
cpuCount: z.ZodNullable<z.ZodNumber>;
|
34
35
|
cpuModel: z.ZodNullable<z.ZodString>;
|
35
36
|
totalRam: z.ZodNullable<z.ZodString>;
|
@@ -52,6 +53,7 @@ export declare namespace EnableNodeCommand {
|
|
52
53
|
uuid: string;
|
53
54
|
createdAt: Date;
|
54
55
|
updatedAt: Date;
|
56
|
+
viewPosition: number;
|
55
57
|
address: string;
|
56
58
|
port: number | null;
|
57
59
|
isDisabled: boolean;
|
@@ -81,6 +83,7 @@ export declare namespace EnableNodeCommand {
|
|
81
83
|
uuid: string;
|
82
84
|
createdAt: string;
|
83
85
|
updatedAt: string;
|
86
|
+
viewPosition: number;
|
84
87
|
address: string;
|
85
88
|
port: number | null;
|
86
89
|
isDisabled: boolean;
|
@@ -112,6 +115,7 @@ export declare namespace EnableNodeCommand {
|
|
112
115
|
uuid: string;
|
113
116
|
createdAt: Date;
|
114
117
|
updatedAt: Date;
|
118
|
+
viewPosition: number;
|
115
119
|
address: string;
|
116
120
|
port: number | null;
|
117
121
|
isDisabled: boolean;
|
@@ -143,6 +147,7 @@ export declare namespace EnableNodeCommand {
|
|
143
147
|
uuid: string;
|
144
148
|
createdAt: string;
|
145
149
|
updatedAt: string;
|
150
|
+
viewPosition: number;
|
146
151
|
address: string;
|
147
152
|
port: number | null;
|
148
153
|
isDisabled: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enable.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/enable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAwB,CAAC;IAClC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"enable.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/enable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAwB,CAAC;IAClC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -22,6 +22,7 @@ export declare namespace GetAllNodesCommand {
|
|
22
22
|
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
23
23
|
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
24
24
|
usersOnline: z.ZodNullable<z.ZodNumber>;
|
25
|
+
viewPosition: z.ZodNumber;
|
25
26
|
cpuCount: z.ZodNullable<z.ZodNumber>;
|
26
27
|
cpuModel: z.ZodNullable<z.ZodString>;
|
27
28
|
totalRam: z.ZodNullable<z.ZodString>;
|
@@ -44,6 +45,7 @@ export declare namespace GetAllNodesCommand {
|
|
44
45
|
uuid: string;
|
45
46
|
createdAt: Date;
|
46
47
|
updatedAt: Date;
|
48
|
+
viewPosition: number;
|
47
49
|
address: string;
|
48
50
|
port: number | null;
|
49
51
|
isDisabled: boolean;
|
@@ -73,6 +75,7 @@ export declare namespace GetAllNodesCommand {
|
|
73
75
|
uuid: string;
|
74
76
|
createdAt: string;
|
75
77
|
updatedAt: string;
|
78
|
+
viewPosition: number;
|
76
79
|
address: string;
|
77
80
|
port: number | null;
|
78
81
|
isDisabled: boolean;
|
@@ -104,6 +107,7 @@ export declare namespace GetAllNodesCommand {
|
|
104
107
|
uuid: string;
|
105
108
|
createdAt: Date;
|
106
109
|
updatedAt: Date;
|
110
|
+
viewPosition: number;
|
107
111
|
address: string;
|
108
112
|
port: number | null;
|
109
113
|
isDisabled: boolean;
|
@@ -135,6 +139,7 @@ export declare namespace GetAllNodesCommand {
|
|
135
139
|
uuid: string;
|
136
140
|
createdAt: string;
|
137
141
|
updatedAt: string;
|
142
|
+
viewPosition: number;
|
138
143
|
address: string;
|
139
144
|
port: number | null;
|
140
145
|
isDisabled: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-all.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-all.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,sBAAyB,CAAC;IACnC,MAAM,OAAO,sBAAM,CAAC;IAEpB,MAAM,cAAc
|
1
|
+
{"version":3,"file":"get-all.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-all.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,sBAAyB,CAAC;IACnC,MAAM,OAAO,sBAAM,CAAC;IAEpB,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -30,6 +30,7 @@ export declare namespace GetOneNodeCommand {
|
|
30
30
|
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
31
31
|
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
32
32
|
usersOnline: z.ZodNullable<z.ZodNumber>;
|
33
|
+
viewPosition: z.ZodNumber;
|
33
34
|
cpuCount: z.ZodNullable<z.ZodNumber>;
|
34
35
|
cpuModel: z.ZodNullable<z.ZodString>;
|
35
36
|
totalRam: z.ZodNullable<z.ZodString>;
|
@@ -52,6 +53,7 @@ export declare namespace GetOneNodeCommand {
|
|
52
53
|
uuid: string;
|
53
54
|
createdAt: Date;
|
54
55
|
updatedAt: Date;
|
56
|
+
viewPosition: number;
|
55
57
|
address: string;
|
56
58
|
port: number | null;
|
57
59
|
isDisabled: boolean;
|
@@ -81,6 +83,7 @@ export declare namespace GetOneNodeCommand {
|
|
81
83
|
uuid: string;
|
82
84
|
createdAt: string;
|
83
85
|
updatedAt: string;
|
86
|
+
viewPosition: number;
|
84
87
|
address: string;
|
85
88
|
port: number | null;
|
86
89
|
isDisabled: boolean;
|
@@ -112,6 +115,7 @@ export declare namespace GetOneNodeCommand {
|
|
112
115
|
uuid: string;
|
113
116
|
createdAt: Date;
|
114
117
|
updatedAt: Date;
|
118
|
+
viewPosition: number;
|
115
119
|
address: string;
|
116
120
|
port: number | null;
|
117
121
|
isDisabled: boolean;
|
@@ -143,6 +147,7 @@ export declare namespace GetOneNodeCommand {
|
|
143
147
|
uuid: string;
|
144
148
|
createdAt: string;
|
145
149
|
updatedAt: string;
|
150
|
+
viewPosition: number;
|
146
151
|
address: string;
|
147
152
|
port: number | null;
|
148
153
|
isDisabled: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-one.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-one.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAyB,CAAC;IACnC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"get-one.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-one.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAyB,CAAC;IACnC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -5,6 +5,7 @@ export * from './enable.command';
|
|
5
5
|
export * from './get-all.command';
|
6
6
|
export * from './get-nodes-usage-by-range.command';
|
7
7
|
export * from './get-one.command';
|
8
|
+
export * from './reorder.command';
|
8
9
|
export * from './restart-all.command';
|
9
10
|
export * from './restart.command';
|
10
11
|
export * from './update.command';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oCAAoC,CAAC;AACnD,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oCAAoC,CAAC;AACnD,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
|
@@ -21,6 +21,7 @@ __exportStar(require("./enable.command"), exports);
|
|
21
21
|
__exportStar(require("./get-all.command"), exports);
|
22
22
|
__exportStar(require("./get-nodes-usage-by-range.command"), exports);
|
23
23
|
__exportStar(require("./get-one.command"), exports);
|
24
|
+
__exportStar(require("./reorder.command"), exports);
|
24
25
|
__exportStar(require("./restart-all.command"), exports);
|
25
26
|
__exportStar(require("./restart.command"), exports);
|
26
27
|
__exportStar(require("./update.command"), exports);
|
@@ -0,0 +1,82 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace ReorderNodeCommand {
|
3
|
+
const url: "/api/nodes/reorder";
|
4
|
+
const TSQ_url: "/api/nodes/reorder";
|
5
|
+
const RequestSchema: z.ZodObject<{
|
6
|
+
nodes: z.ZodArray<z.ZodObject<Pick<{
|
7
|
+
uuid: z.ZodString;
|
8
|
+
name: z.ZodString;
|
9
|
+
address: z.ZodString;
|
10
|
+
port: z.ZodNullable<z.ZodNumber>;
|
11
|
+
isConnected: z.ZodBoolean;
|
12
|
+
isDisabled: z.ZodBoolean;
|
13
|
+
isConnecting: z.ZodBoolean;
|
14
|
+
isNodeOnline: z.ZodBoolean;
|
15
|
+
isXrayRunning: z.ZodBoolean;
|
16
|
+
lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
17
|
+
lastStatusMessage: z.ZodNullable<z.ZodString>;
|
18
|
+
xrayVersion: z.ZodNullable<z.ZodString>;
|
19
|
+
isTrafficTrackingActive: z.ZodBoolean;
|
20
|
+
trafficResetDay: z.ZodNullable<z.ZodNumber>;
|
21
|
+
trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
|
22
|
+
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
23
|
+
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
24
|
+
usersOnline: z.ZodNullable<z.ZodNumber>;
|
25
|
+
viewPosition: z.ZodNumber;
|
26
|
+
cpuCount: z.ZodNullable<z.ZodNumber>;
|
27
|
+
cpuModel: z.ZodNullable<z.ZodString>;
|
28
|
+
totalRam: z.ZodNullable<z.ZodString>;
|
29
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
30
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
31
|
+
excludedInbounds: z.ZodArray<z.ZodObject<{
|
32
|
+
uuid: z.ZodString;
|
33
|
+
tag: z.ZodString;
|
34
|
+
type: z.ZodString;
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
36
|
+
uuid: string;
|
37
|
+
type: string;
|
38
|
+
tag: string;
|
39
|
+
}, {
|
40
|
+
uuid: string;
|
41
|
+
type: string;
|
42
|
+
tag: string;
|
43
|
+
}>, "many">;
|
44
|
+
}, "uuid" | "viewPosition">, "strip", z.ZodTypeAny, {
|
45
|
+
uuid: string;
|
46
|
+
viewPosition: number;
|
47
|
+
}, {
|
48
|
+
uuid: string;
|
49
|
+
viewPosition: number;
|
50
|
+
}>, "many">;
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
52
|
+
nodes: {
|
53
|
+
uuid: string;
|
54
|
+
viewPosition: number;
|
55
|
+
}[];
|
56
|
+
}, {
|
57
|
+
nodes: {
|
58
|
+
uuid: string;
|
59
|
+
viewPosition: number;
|
60
|
+
}[];
|
61
|
+
}>;
|
62
|
+
type Request = z.infer<typeof RequestSchema>;
|
63
|
+
const ResponseSchema: z.ZodObject<{
|
64
|
+
response: z.ZodObject<{
|
65
|
+
isUpdated: z.ZodBoolean;
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
67
|
+
isUpdated: boolean;
|
68
|
+
}, {
|
69
|
+
isUpdated: boolean;
|
70
|
+
}>;
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
72
|
+
response: {
|
73
|
+
isUpdated: boolean;
|
74
|
+
};
|
75
|
+
}, {
|
76
|
+
response: {
|
77
|
+
isUpdated: boolean;
|
78
|
+
};
|
79
|
+
}>;
|
80
|
+
type Response = z.infer<typeof ResponseSchema>;
|
81
|
+
}
|
82
|
+
//# sourceMappingURL=reorder.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,sBAAyB,CAAC;IACnC,MAAM,OAAO,sBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOxB,CAAC;IACH,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,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ReorderNodeCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const models_1 = require("../../models");
|
6
|
+
const api_1 = require("../../api");
|
7
|
+
var ReorderNodeCommand;
|
8
|
+
(function (ReorderNodeCommand) {
|
9
|
+
ReorderNodeCommand.url = api_1.REST_API.NODES.REORDER;
|
10
|
+
ReorderNodeCommand.TSQ_url = ReorderNodeCommand.url;
|
11
|
+
ReorderNodeCommand.RequestSchema = zod_1.z.object({
|
12
|
+
nodes: zod_1.z.array(models_1.NodesSchema.pick({
|
13
|
+
viewPosition: true,
|
14
|
+
uuid: true,
|
15
|
+
})),
|
16
|
+
});
|
17
|
+
ReorderNodeCommand.ResponseSchema = zod_1.z.object({
|
18
|
+
response: zod_1.z.object({
|
19
|
+
isUpdated: zod_1.z.boolean(),
|
20
|
+
}),
|
21
|
+
});
|
22
|
+
})(ReorderNodeCommand || (exports.ReorderNodeCommand = ReorderNodeCommand = {}));
|
@@ -21,6 +21,7 @@ export declare namespace UpdateNodeCommand {
|
|
21
21
|
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
22
22
|
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
23
23
|
usersOnline: z.ZodNullable<z.ZodNumber>;
|
24
|
+
viewPosition: z.ZodNumber;
|
24
25
|
cpuCount: z.ZodNullable<z.ZodNumber>;
|
25
26
|
cpuModel: z.ZodNullable<z.ZodString>;
|
26
27
|
totalRam: z.ZodNullable<z.ZodString>;
|
@@ -90,6 +91,7 @@ export declare namespace UpdateNodeCommand {
|
|
90
91
|
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
91
92
|
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
92
93
|
usersOnline: z.ZodNullable<z.ZodNumber>;
|
94
|
+
viewPosition: z.ZodNumber;
|
93
95
|
cpuCount: z.ZodNullable<z.ZodNumber>;
|
94
96
|
cpuModel: z.ZodNullable<z.ZodString>;
|
95
97
|
totalRam: z.ZodNullable<z.ZodString>;
|
@@ -112,6 +114,7 @@ export declare namespace UpdateNodeCommand {
|
|
112
114
|
uuid: string;
|
113
115
|
createdAt: Date;
|
114
116
|
updatedAt: Date;
|
117
|
+
viewPosition: number;
|
115
118
|
address: string;
|
116
119
|
port: number | null;
|
117
120
|
isDisabled: boolean;
|
@@ -141,6 +144,7 @@ export declare namespace UpdateNodeCommand {
|
|
141
144
|
uuid: string;
|
142
145
|
createdAt: string;
|
143
146
|
updatedAt: string;
|
147
|
+
viewPosition: number;
|
144
148
|
address: string;
|
145
149
|
port: number | null;
|
146
150
|
isDisabled: boolean;
|
@@ -172,6 +176,7 @@ export declare namespace UpdateNodeCommand {
|
|
172
176
|
uuid: string;
|
173
177
|
createdAt: Date;
|
174
178
|
updatedAt: Date;
|
179
|
+
viewPosition: number;
|
175
180
|
address: string;
|
176
181
|
port: number | null;
|
177
182
|
isDisabled: boolean;
|
@@ -203,6 +208,7 @@ export declare namespace UpdateNodeCommand {
|
|
203
208
|
uuid: string;
|
204
209
|
createdAt: string;
|
205
210
|
updatedAt: string;
|
211
|
+
viewPosition: number;
|
206
212
|
address: string;
|
207
213
|
port: number | null;
|
208
214
|
isDisabled: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa
|
1
|
+
{"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyBxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -95,13 +95,13 @@ export declare namespace GetAllUsersV2Command {
|
|
95
95
|
subscriptionUrl: z.ZodString;
|
96
96
|
lastConnection: z.ZodNullable<z.ZodObject<{
|
97
97
|
nodeName: z.ZodString;
|
98
|
-
connectedAt: z.
|
98
|
+
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
100
100
|
nodeName: string;
|
101
101
|
connectedAt: Date;
|
102
102
|
}, {
|
103
103
|
nodeName: string;
|
104
|
-
connectedAt:
|
104
|
+
connectedAt: string;
|
105
105
|
}>>;
|
106
106
|
}>, "strip", z.ZodTypeAny, {
|
107
107
|
uuid: string;
|
@@ -160,7 +160,7 @@ export declare namespace GetAllUsersV2Command {
|
|
160
160
|
subscriptionUrl: string;
|
161
161
|
lastConnection: {
|
162
162
|
nodeName: string;
|
163
|
-
connectedAt:
|
163
|
+
connectedAt: string;
|
164
164
|
} | null;
|
165
165
|
status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
|
166
166
|
trafficLimitBytes?: number | undefined;
|
@@ -228,7 +228,7 @@ export declare namespace GetAllUsersV2Command {
|
|
228
228
|
subscriptionUrl: string;
|
229
229
|
lastConnection: {
|
230
230
|
nodeName: string;
|
231
|
-
connectedAt:
|
231
|
+
connectedAt: string;
|
232
232
|
} | null;
|
233
233
|
status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
|
234
234
|
trafficLimitBytes?: number | undefined;
|
@@ -300,7 +300,7 @@ export declare namespace GetAllUsersV2Command {
|
|
300
300
|
subscriptionUrl: string;
|
301
301
|
lastConnection: {
|
302
302
|
nodeName: string;
|
303
|
-
connectedAt:
|
303
|
+
connectedAt: string;
|
304
304
|
} | null;
|
305
305
|
status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
|
306
306
|
trafficLimitBytes?: number | undefined;
|
@@ -299,5 +299,10 @@ export declare const ERRORS: {
|
|
299
299
|
readonly message: "Reset user traffic error";
|
300
300
|
readonly httpCode: 500;
|
301
301
|
};
|
302
|
+
readonly REORDER_NODES_ERROR: {
|
303
|
+
readonly code: "A057";
|
304
|
+
readonly message: "Reorder nodes error";
|
305
|
+
readonly httpCode: 500;
|
306
|
+
};
|
302
307
|
};
|
303
308
|
//# 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
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyH3B,CAAC"}
|
@@ -18,6 +18,7 @@ export declare const NodesSchema: z.ZodObject<{
|
|
18
18
|
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
19
19
|
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
20
20
|
usersOnline: z.ZodNullable<z.ZodNumber>;
|
21
|
+
viewPosition: z.ZodNumber;
|
21
22
|
cpuCount: z.ZodNullable<z.ZodNumber>;
|
22
23
|
cpuModel: z.ZodNullable<z.ZodString>;
|
23
24
|
totalRam: z.ZodNullable<z.ZodString>;
|
@@ -40,6 +41,7 @@ export declare const NodesSchema: z.ZodObject<{
|
|
40
41
|
uuid: string;
|
41
42
|
createdAt: Date;
|
42
43
|
updatedAt: Date;
|
44
|
+
viewPosition: number;
|
43
45
|
address: string;
|
44
46
|
port: number | null;
|
45
47
|
isDisabled: boolean;
|
@@ -69,6 +71,7 @@ export declare const NodesSchema: z.ZodObject<{
|
|
69
71
|
uuid: string;
|
70
72
|
createdAt: string;
|
71
73
|
updatedAt: string;
|
74
|
+
viewPosition: number;
|
72
75
|
address: string;
|
73
76
|
port: number | null;
|
74
77
|
isDisabled: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW
|
1
|
+
{"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BtB,CAAC"}
|
@@ -22,6 +22,7 @@ exports.NodesSchema = zod_1.z.object({
|
|
22
22
|
trafficUsedBytes: zod_1.z.nullable(zod_1.z.number()),
|
23
23
|
notifyPercent: zod_1.z.nullable(zod_1.z.number().int()),
|
24
24
|
usersOnline: zod_1.z.nullable(zod_1.z.number().int()),
|
25
|
+
viewPosition: zod_1.z.number().int(),
|
25
26
|
cpuCount: zod_1.z.nullable(zod_1.z.number().int()),
|
26
27
|
cpuModel: zod_1.z.nullable(zod_1.z.string()),
|
27
28
|
totalRam: zod_1.z.nullable(zod_1.z.string()),
|
@@ -62,6 +62,7 @@ exports.REST_API = {
|
|
62
62
|
STATS: {
|
63
63
|
USAGE_BY_RANGE: `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.STATS.USAGE_BY_RANGE}`,
|
64
64
|
},
|
65
|
+
REORDER: `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.REORDER}`,
|
65
66
|
},
|
66
67
|
XRAY: {
|
67
68
|
GET_CONFIG: `${exports.ROOT}/${CONTROLLERS.XRAY_CONTROLLER}/${CONTROLLERS.XRAY_ROUTES.GET_CONFIG}`,
|
@@ -21,6 +21,7 @@ __exportStar(require("./enable.command"), exports);
|
|
21
21
|
__exportStar(require("./get-all.command"), exports);
|
22
22
|
__exportStar(require("./get-nodes-usage-by-range.command"), exports);
|
23
23
|
__exportStar(require("./get-one.command"), exports);
|
24
|
+
__exportStar(require("./reorder.command"), exports);
|
24
25
|
__exportStar(require("./restart-all.command"), exports);
|
25
26
|
__exportStar(require("./restart.command"), exports);
|
26
27
|
__exportStar(require("./update.command"), exports);
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ReorderNodeCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const models_1 = require("../../models");
|
6
|
+
const api_1 = require("../../api");
|
7
|
+
var ReorderNodeCommand;
|
8
|
+
(function (ReorderNodeCommand) {
|
9
|
+
ReorderNodeCommand.url = api_1.REST_API.NODES.REORDER;
|
10
|
+
ReorderNodeCommand.TSQ_url = ReorderNodeCommand.url;
|
11
|
+
ReorderNodeCommand.RequestSchema = zod_1.z.object({
|
12
|
+
nodes: zod_1.z.array(models_1.NodesSchema.pick({
|
13
|
+
viewPosition: true,
|
14
|
+
uuid: true,
|
15
|
+
})),
|
16
|
+
});
|
17
|
+
ReorderNodeCommand.ResponseSchema = zod_1.z.object({
|
18
|
+
response: zod_1.z.object({
|
19
|
+
isUpdated: zod_1.z.boolean(),
|
20
|
+
}),
|
21
|
+
});
|
22
|
+
})(ReorderNodeCommand || (exports.ReorderNodeCommand = ReorderNodeCommand = {}));
|
@@ -22,6 +22,7 @@ exports.NodesSchema = zod_1.z.object({
|
|
22
22
|
trafficUsedBytes: zod_1.z.nullable(zod_1.z.number()),
|
23
23
|
notifyPercent: zod_1.z.nullable(zod_1.z.number().int()),
|
24
24
|
usersOnline: zod_1.z.nullable(zod_1.z.number().int()),
|
25
|
+
viewPosition: zod_1.z.number().int(),
|
25
26
|
cpuCount: zod_1.z.nullable(zod_1.z.number().int()),
|
26
27
|
cpuModel: zod_1.z.nullable(zod_1.z.string()),
|
27
28
|
totalRam: zod_1.z.nullable(zod_1.z.string()),
|