@remnawave/backend-contract 2.6.20 → 2.6.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/backend/api/controllers/index.d.ts +1 -0
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +1 -0
- package/build/backend/api/controllers/node-plugins.d.ts +13 -0
- package/build/backend/api/controllers/node-plugins.d.ts.map +1 -0
- package/build/backend/api/controllers/node-plugins.js +16 -0
- package/build/backend/api/controllers-info.d.ts +4 -0
- package/build/backend/api/controllers-info.d.ts.map +1 -1
- package/build/backend/api/controllers-info.js +4 -0
- package/build/backend/api/routes.d.ts +11 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +11 -0
- package/build/backend/commands/index.d.ts +1 -0
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +1 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +2 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +2 -0
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +2 -0
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +2 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/actions/clone-node-plugin.command.d.ts +49 -0
- package/build/backend/commands/node-plugins/actions/clone-node-plugin.command.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/actions/clone-node-plugin.command.js +21 -0
- package/build/backend/commands/node-plugins/actions/index.d.ts +3 -0
- package/build/backend/commands/node-plugins/actions/index.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/actions/index.js +18 -0
- package/build/backend/commands/node-plugins/actions/reorder.command.d.ts +90 -0
- package/build/backend/commands/node-plugins/actions/reorder.command.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/actions/reorder.command.js +25 -0
- package/build/backend/commands/node-plugins/create-node-plugin.command.d.ts +48 -0
- package/build/backend/commands/node-plugins/create-node-plugin.command.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/create-node-plugin.command.js +23 -0
- package/build/backend/commands/node-plugins/delete-node-plugin.command.d.ts +33 -0
- package/build/backend/commands/node-plugins/delete-node-plugin.command.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/delete-node-plugin.command.js +20 -0
- package/build/backend/commands/node-plugins/get-node-plugin.command.d.ts +49 -0
- package/build/backend/commands/node-plugins/get-node-plugin.command.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/get-node-plugin.command.js +21 -0
- package/build/backend/commands/node-plugins/get-node-plugins.command.d.ts +65 -0
- package/build/backend/commands/node-plugins/get-node-plugins.command.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/get-node-plugins.command.js +19 -0
- package/build/backend/commands/node-plugins/index.d.ts +7 -0
- package/build/backend/commands/node-plugins/index.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/index.js +22 -0
- package/build/backend/commands/node-plugins/update-node-plugin.command.d.ts +55 -0
- package/build/backend/commands/node-plugins/update-node-plugin.command.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/update-node-plugin.command.js +28 -0
- package/build/backend/commands/nodes/actions/disable.command.d.ts +5 -0
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +5 -0
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +6 -0
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +8 -0
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +1 -0
- 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/update.command.d.ts +9 -0
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +1 -0
- package/build/backend/constants/errors/errors.d.ts +35 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +35 -0
- 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/infra-billing-available-node.schema.d.ts +1 -0
- package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -1
- package/build/backend/models/infra-billing-node.schema.d.ts +1 -0
- package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -1
- package/build/backend/models/node-plugin.schema.d.ts +18 -0
- package/build/backend/models/node-plugin.schema.d.ts.map +1 -0
- package/build/backend/models/node-plugin.schema.js +13 -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/backend/models/webhook/webhook.schema.d.ts +10 -0
- package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
- package/build/frontend/api/controllers/index.js +1 -0
- package/build/frontend/api/controllers/node-plugins.js +16 -0
- package/build/frontend/api/controllers-info.js +4 -0
- package/build/frontend/api/routes.js +11 -0
- package/build/frontend/commands/index.js +1 -0
- package/build/frontend/commands/node-plugins/actions/clone-node-plugin.command.js +21 -0
- package/build/frontend/commands/node-plugins/actions/index.js +18 -0
- package/build/frontend/commands/node-plugins/actions/reorder.command.js +25 -0
- package/build/frontend/commands/node-plugins/create-node-plugin.command.js +23 -0
- package/build/frontend/commands/node-plugins/delete-node-plugin.command.js +20 -0
- package/build/frontend/commands/node-plugins/get-node-plugin.command.js +21 -0
- package/build/frontend/commands/node-plugins/get-node-plugins.command.js +19 -0
- package/build/frontend/commands/node-plugins/index.js +22 -0
- package/build/frontend/commands/node-plugins/update-node-plugin.command.js +28 -0
- package/build/frontend/commands/nodes/create.command.js +1 -0
- package/build/frontend/commands/nodes/update.command.js +1 -0
- package/build/frontend/constants/errors/errors.js +35 -0
- package/build/frontend/models/index.js +1 -0
- package/build/frontend/models/node-plugin.schema.js +13 -0
- package/build/frontend/models/nodes.schema.js +1 -0
- package/package.json +1 -1
|
@@ -109,6 +109,7 @@ export declare namespace UpdateNodeCommand {
|
|
|
109
109
|
faviconLink: string | null;
|
|
110
110
|
loginUrl: string | null;
|
|
111
111
|
}>>;
|
|
112
|
+
activePluginUuid: z.ZodNullable<z.ZodString>;
|
|
112
113
|
}, "uuid"> & {
|
|
113
114
|
name: z.ZodOptional<z.ZodString>;
|
|
114
115
|
address: z.ZodOptional<z.ZodString>;
|
|
@@ -131,6 +132,7 @@ export declare namespace UpdateNodeCommand {
|
|
|
131
132
|
}>>;
|
|
132
133
|
providerUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
133
134
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
135
|
+
activePluginUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
134
136
|
}, "strip", z.ZodTypeAny, {
|
|
135
137
|
uuid: string;
|
|
136
138
|
tags?: string[] | undefined;
|
|
@@ -148,6 +150,7 @@ export declare namespace UpdateNodeCommand {
|
|
|
148
150
|
activeInbounds: string[];
|
|
149
151
|
} | undefined;
|
|
150
152
|
providerUuid?: string | null | undefined;
|
|
153
|
+
activePluginUuid?: string | null | undefined;
|
|
151
154
|
}, {
|
|
152
155
|
uuid: string;
|
|
153
156
|
tags?: string[] | undefined;
|
|
@@ -165,6 +168,7 @@ export declare namespace UpdateNodeCommand {
|
|
|
165
168
|
activeInbounds: string[];
|
|
166
169
|
} | undefined;
|
|
167
170
|
providerUuid?: string | null | undefined;
|
|
171
|
+
activePluginUuid?: string | null | undefined;
|
|
168
172
|
}>;
|
|
169
173
|
type Request = z.infer<typeof RequestSchema>;
|
|
170
174
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -274,6 +278,7 @@ export declare namespace UpdateNodeCommand {
|
|
|
274
278
|
faviconLink: string | null;
|
|
275
279
|
loginUrl: string | null;
|
|
276
280
|
}>>;
|
|
281
|
+
activePluginUuid: z.ZodNullable<z.ZodString>;
|
|
277
282
|
}, "strip", z.ZodTypeAny, {
|
|
278
283
|
tags: string[];
|
|
279
284
|
uuid: string;
|
|
@@ -324,6 +329,7 @@ export declare namespace UpdateNodeCommand {
|
|
|
324
329
|
}[];
|
|
325
330
|
};
|
|
326
331
|
providerUuid: string | null;
|
|
332
|
+
activePluginUuid: string | null;
|
|
327
333
|
}, {
|
|
328
334
|
tags: string[];
|
|
329
335
|
uuid: string;
|
|
@@ -374,6 +380,7 @@ export declare namespace UpdateNodeCommand {
|
|
|
374
380
|
}[];
|
|
375
381
|
};
|
|
376
382
|
providerUuid: string | null;
|
|
383
|
+
activePluginUuid: string | null;
|
|
377
384
|
}>;
|
|
378
385
|
}, "strip", z.ZodTypeAny, {
|
|
379
386
|
response: {
|
|
@@ -426,6 +433,7 @@ export declare namespace UpdateNodeCommand {
|
|
|
426
433
|
}[];
|
|
427
434
|
};
|
|
428
435
|
providerUuid: string | null;
|
|
436
|
+
activePluginUuid: string | null;
|
|
429
437
|
};
|
|
430
438
|
}, {
|
|
431
439
|
response: {
|
|
@@ -478,6 +486,7 @@ export declare namespace UpdateNodeCommand {
|
|
|
478
486
|
}[];
|
|
479
487
|
};
|
|
480
488
|
providerUuid: string | null;
|
|
489
|
+
activePluginUuid: string | null;
|
|
481
490
|
};
|
|
482
491
|
}>;
|
|
483
492
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -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;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAAkE,CAAC;IAExF,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;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAAkE,CAAC;IAExF,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2DxB,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"}
|
|
@@ -50,6 +50,7 @@ var UpdateNodeCommand;
|
|
|
50
50
|
.regex(/^[A-Z0-9_:]+$/, 'Tag can only contain uppercase letters, numbers, underscores and colons')
|
|
51
51
|
.max(36, 'Each tag must be less than 36 characters'))
|
|
52
52
|
.max(10, 'Maximum 10 tags')),
|
|
53
|
+
activePluginUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
|
|
53
54
|
});
|
|
54
55
|
UpdateNodeCommand.ResponseSchema = zod_1.z.object({
|
|
55
56
|
response: models_1.NodesSchema,
|
|
@@ -1134,5 +1134,40 @@ export declare const ERRORS: {
|
|
|
1134
1134
|
readonly message: "Connected nodes not found";
|
|
1135
1135
|
readonly httpCode: 404;
|
|
1136
1136
|
};
|
|
1137
|
+
readonly GET_ALL_NODE_PLUGINS_ERROR: {
|
|
1138
|
+
readonly code: "A219";
|
|
1139
|
+
readonly message: "Get all node plugins error";
|
|
1140
|
+
readonly httpCode: 500;
|
|
1141
|
+
};
|
|
1142
|
+
readonly NODE_PLUGIN_NOT_FOUND: {
|
|
1143
|
+
readonly code: "A220";
|
|
1144
|
+
readonly message: "Node plugin not found";
|
|
1145
|
+
readonly httpCode: 404;
|
|
1146
|
+
};
|
|
1147
|
+
readonly GET_NODE_PLUGIN_BY_UUID_ERROR: {
|
|
1148
|
+
readonly code: "A221";
|
|
1149
|
+
readonly message: "Get node plugin by UUID error";
|
|
1150
|
+
readonly httpCode: 500;
|
|
1151
|
+
};
|
|
1152
|
+
readonly INVALID_NODE_PLUGIN_CONFIG: {
|
|
1153
|
+
readonly code: "A222";
|
|
1154
|
+
readonly message: "Invalid node plugin config";
|
|
1155
|
+
readonly httpCode: 400;
|
|
1156
|
+
};
|
|
1157
|
+
readonly NODE_PLUGIN_NAME_ALREADY_EXISTS: {
|
|
1158
|
+
readonly code: "A223";
|
|
1159
|
+
readonly message: "Node plugin name already exists";
|
|
1160
|
+
readonly httpCode: 400;
|
|
1161
|
+
};
|
|
1162
|
+
readonly UPDATE_NODE_PLUGIN_ERROR: {
|
|
1163
|
+
readonly code: "A224";
|
|
1164
|
+
readonly message: "Update node plugin error";
|
|
1165
|
+
readonly httpCode: 500;
|
|
1166
|
+
};
|
|
1167
|
+
readonly CREATE_NODE_PLUGIN_ERROR: {
|
|
1168
|
+
readonly code: "A225";
|
|
1169
|
+
readonly message: "Create node plugin error";
|
|
1170
|
+
readonly httpCode: 500;
|
|
1171
|
+
};
|
|
1137
1172
|
};
|
|
1138
1173
|
//# 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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA0rBN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6I3B,CAAC"}
|
|
@@ -1105,4 +1105,39 @@ exports.ERRORS = {
|
|
|
1105
1105
|
message: 'Connected nodes not found',
|
|
1106
1106
|
httpCode: 404,
|
|
1107
1107
|
},
|
|
1108
|
+
GET_ALL_NODE_PLUGINS_ERROR: {
|
|
1109
|
+
code: 'A219',
|
|
1110
|
+
message: 'Get all node plugins error',
|
|
1111
|
+
httpCode: 500,
|
|
1112
|
+
},
|
|
1113
|
+
NODE_PLUGIN_NOT_FOUND: {
|
|
1114
|
+
code: 'A220',
|
|
1115
|
+
message: 'Node plugin not found',
|
|
1116
|
+
httpCode: 404,
|
|
1117
|
+
},
|
|
1118
|
+
GET_NODE_PLUGIN_BY_UUID_ERROR: {
|
|
1119
|
+
code: 'A221',
|
|
1120
|
+
message: 'Get node plugin by UUID error',
|
|
1121
|
+
httpCode: 500,
|
|
1122
|
+
},
|
|
1123
|
+
INVALID_NODE_PLUGIN_CONFIG: {
|
|
1124
|
+
code: 'A222',
|
|
1125
|
+
message: 'Invalid node plugin config',
|
|
1126
|
+
httpCode: 400,
|
|
1127
|
+
},
|
|
1128
|
+
NODE_PLUGIN_NAME_ALREADY_EXISTS: {
|
|
1129
|
+
code: 'A223',
|
|
1130
|
+
message: 'Node plugin name already exists',
|
|
1131
|
+
httpCode: 400,
|
|
1132
|
+
},
|
|
1133
|
+
UPDATE_NODE_PLUGIN_ERROR: {
|
|
1134
|
+
code: 'A224',
|
|
1135
|
+
message: 'Update node plugin error',
|
|
1136
|
+
httpCode: 500,
|
|
1137
|
+
},
|
|
1138
|
+
CREATE_NODE_PLUGIN_ERROR: {
|
|
1139
|
+
code: 'A225',
|
|
1140
|
+
message: 'Create node plugin error',
|
|
1141
|
+
httpCode: 500,
|
|
1142
|
+
},
|
|
1108
1143
|
};
|
|
@@ -15,6 +15,7 @@ export * from './infra-billing-node.schema';
|
|
|
15
15
|
export * from './infra-provider.schema';
|
|
16
16
|
export * from './internal-squad.schema';
|
|
17
17
|
export * from './last-connected-node.schema';
|
|
18
|
+
export * from './node-plugin.schema';
|
|
18
19
|
export * from './nodes.schema';
|
|
19
20
|
export * from './remnawave-settings';
|
|
20
21
|
export * from './response-rules';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CA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AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC"}
|
|
@@ -31,6 +31,7 @@ __exportStar(require("./infra-billing-node.schema"), exports);
|
|
|
31
31
|
__exportStar(require("./infra-provider.schema"), exports);
|
|
32
32
|
__exportStar(require("./internal-squad.schema"), exports);
|
|
33
33
|
__exportStar(require("./last-connected-node.schema"), exports);
|
|
34
|
+
__exportStar(require("./node-plugin.schema"), exports);
|
|
34
35
|
__exportStar(require("./nodes.schema"), exports);
|
|
35
36
|
__exportStar(require("./remnawave-settings"), exports);
|
|
36
37
|
__exportStar(require("./response-rules"), exports);
|
|
@@ -104,6 +104,7 @@ export declare const InfraBillingAvailableNodeSchema: import("zod").ZodObject<Pi
|
|
|
104
104
|
faviconLink: string | null;
|
|
105
105
|
loginUrl: string | null;
|
|
106
106
|
}>>;
|
|
107
|
+
activePluginUuid: import("zod").ZodNullable<import("zod").ZodString>;
|
|
107
108
|
}, "uuid" | "countryCode" | "name">, "strip", import("zod").ZodTypeAny, {
|
|
108
109
|
uuid: string;
|
|
109
110
|
countryCode: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infra-billing-available-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-available-node.schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B
|
|
1
|
+
{"version":3,"file":"infra-billing-available-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-available-node.schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI1C,CAAC"}
|
|
@@ -127,6 +127,7 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
|
|
|
127
127
|
faviconLink: string | null;
|
|
128
128
|
loginUrl: string | null;
|
|
129
129
|
}>>;
|
|
130
|
+
activePluginUuid: z.ZodNullable<z.ZodString>;
|
|
130
131
|
}, "uuid" | "countryCode" | "name">, "strip", z.ZodTypeAny, {
|
|
131
132
|
uuid: string;
|
|
132
133
|
countryCode: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infra-billing-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-node.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"infra-billing-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-node.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BjC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const NodePluginSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
viewPosition: z.ZodNumber;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
pluginConfig: z.ZodNullable<z.ZodUnknown>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
uuid: string;
|
|
9
|
+
name: string;
|
|
10
|
+
viewPosition: number;
|
|
11
|
+
pluginConfig?: unknown;
|
|
12
|
+
}, {
|
|
13
|
+
uuid: string;
|
|
14
|
+
name: string;
|
|
15
|
+
viewPosition: number;
|
|
16
|
+
pluginConfig?: unknown;
|
|
17
|
+
}>;
|
|
18
|
+
//# sourceMappingURL=node-plugin.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-plugin.schema.d.ts","sourceRoot":"","sources":["../../../models/node-plugin.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAK3B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.NodePluginSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
exports.NodePluginSchema = zod_1.default.object({
|
|
9
|
+
uuid: zod_1.default.string().uuid(),
|
|
10
|
+
viewPosition: zod_1.default.number().int(),
|
|
11
|
+
name: zod_1.default.string(),
|
|
12
|
+
pluginConfig: zod_1.default.nullable(zod_1.default.unknown()),
|
|
13
|
+
});
|
|
@@ -105,6 +105,7 @@ export declare const NodesSchema: z.ZodObject<{
|
|
|
105
105
|
faviconLink: string | null;
|
|
106
106
|
loginUrl: string | null;
|
|
107
107
|
}>>;
|
|
108
|
+
activePluginUuid: z.ZodNullable<z.ZodString>;
|
|
108
109
|
}, "strip", z.ZodTypeAny, {
|
|
109
110
|
tags: string[];
|
|
110
111
|
uuid: string;
|
|
@@ -155,6 +156,7 @@ export declare const NodesSchema: z.ZodObject<{
|
|
|
155
156
|
}[];
|
|
156
157
|
};
|
|
157
158
|
providerUuid: string | null;
|
|
159
|
+
activePluginUuid: string | null;
|
|
158
160
|
}, {
|
|
159
161
|
tags: string[];
|
|
160
162
|
uuid: string;
|
|
@@ -205,5 +207,6 @@ export declare const NodesSchema: z.ZodObject<{
|
|
|
205
207
|
}[];
|
|
206
208
|
};
|
|
207
209
|
providerUuid: string | null;
|
|
210
|
+
activePluginUuid: string | null;
|
|
208
211
|
}>;
|
|
209
212
|
//# sourceMappingURL=nodes.schema.d.ts.map
|
|
@@ -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;AAKxB,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;AAKxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDtB,CAAC"}
|
|
@@ -734,6 +734,7 @@ export declare const RemnawaveWebhookNodeEvents: z.ZodObject<{
|
|
|
734
734
|
faviconLink: string | null;
|
|
735
735
|
loginUrl: string | null;
|
|
736
736
|
}>>;
|
|
737
|
+
activePluginUuid: z.ZodNullable<z.ZodString>;
|
|
737
738
|
}, "strip", z.ZodTypeAny, {
|
|
738
739
|
tags: string[];
|
|
739
740
|
uuid: string;
|
|
@@ -784,6 +785,7 @@ export declare const RemnawaveWebhookNodeEvents: z.ZodObject<{
|
|
|
784
785
|
}[];
|
|
785
786
|
};
|
|
786
787
|
providerUuid: string | null;
|
|
788
|
+
activePluginUuid: string | null;
|
|
787
789
|
}, {
|
|
788
790
|
tags: string[];
|
|
789
791
|
uuid: string;
|
|
@@ -834,6 +836,7 @@ export declare const RemnawaveWebhookNodeEvents: z.ZodObject<{
|
|
|
834
836
|
}[];
|
|
835
837
|
};
|
|
836
838
|
providerUuid: string | null;
|
|
839
|
+
activePluginUuid: string | null;
|
|
837
840
|
}>;
|
|
838
841
|
}, "strip", z.ZodTypeAny, {
|
|
839
842
|
data: {
|
|
@@ -886,6 +889,7 @@ export declare const RemnawaveWebhookNodeEvents: z.ZodObject<{
|
|
|
886
889
|
}[];
|
|
887
890
|
};
|
|
888
891
|
providerUuid: string | null;
|
|
892
|
+
activePluginUuid: string | null;
|
|
889
893
|
};
|
|
890
894
|
scope: "node";
|
|
891
895
|
event: "node.created" | "node.modified" | "node.disabled" | "node.enabled" | "node.deleted" | "node.connection_lost" | "node.connection_restored" | "node.traffic_notify";
|
|
@@ -941,6 +945,7 @@ export declare const RemnawaveWebhookNodeEvents: z.ZodObject<{
|
|
|
941
945
|
}[];
|
|
942
946
|
};
|
|
943
947
|
providerUuid: string | null;
|
|
948
|
+
activePluginUuid: string | null;
|
|
944
949
|
};
|
|
945
950
|
scope: "node";
|
|
946
951
|
event: "node.created" | "node.modified" | "node.disabled" | "node.enabled" | "node.deleted" | "node.connection_lost" | "node.connection_restored" | "node.traffic_notify";
|
|
@@ -1845,6 +1850,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
1845
1850
|
faviconLink: string | null;
|
|
1846
1851
|
loginUrl: string | null;
|
|
1847
1852
|
}>>;
|
|
1853
|
+
activePluginUuid: z.ZodNullable<z.ZodString>;
|
|
1848
1854
|
}, "strip", z.ZodTypeAny, {
|
|
1849
1855
|
tags: string[];
|
|
1850
1856
|
uuid: string;
|
|
@@ -1895,6 +1901,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
1895
1901
|
}[];
|
|
1896
1902
|
};
|
|
1897
1903
|
providerUuid: string | null;
|
|
1904
|
+
activePluginUuid: string | null;
|
|
1898
1905
|
}, {
|
|
1899
1906
|
tags: string[];
|
|
1900
1907
|
uuid: string;
|
|
@@ -1945,6 +1952,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
1945
1952
|
}[];
|
|
1946
1953
|
};
|
|
1947
1954
|
providerUuid: string | null;
|
|
1955
|
+
activePluginUuid: string | null;
|
|
1948
1956
|
}>;
|
|
1949
1957
|
}, "strip", z.ZodTypeAny, {
|
|
1950
1958
|
data: {
|
|
@@ -1997,6 +2005,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
1997
2005
|
}[];
|
|
1998
2006
|
};
|
|
1999
2007
|
providerUuid: string | null;
|
|
2008
|
+
activePluginUuid: string | null;
|
|
2000
2009
|
};
|
|
2001
2010
|
scope: "node";
|
|
2002
2011
|
event: "node.created" | "node.modified" | "node.disabled" | "node.enabled" | "node.deleted" | "node.connection_lost" | "node.connection_restored" | "node.traffic_notify";
|
|
@@ -2052,6 +2061,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
2052
2061
|
}[];
|
|
2053
2062
|
};
|
|
2054
2063
|
providerUuid: string | null;
|
|
2064
|
+
activePluginUuid: string | null;
|
|
2055
2065
|
};
|
|
2056
2066
|
scope: "node";
|
|
2057
2067
|
event: "node.created" | "node.modified" | "node.disabled" | "node.enabled" | "node.deleted" | "node.connection_lost" | "node.connection_restored" | "node.traffic_notify";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.schema.d.ts","sourceRoot":"","sources":["../../../../models/webhook/webhook.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAOpB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAarC,CAAC;AAEH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWhD,CAAC;AAEH,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"webhook.schema.d.ts","sourceRoot":"","sources":["../../../../models/webhook/webhook.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAOpB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOtC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEjF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACpF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACpF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC1F,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACxF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAClF,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,qCAAqC,CAC/C,CAAC"}
|
|
@@ -25,6 +25,7 @@ __exportStar(require("./infra-billing"), exports);
|
|
|
25
25
|
__exportStar(require("./internal-squads"), exports);
|
|
26
26
|
__exportStar(require("./ip-control"), exports);
|
|
27
27
|
__exportStar(require("./keygen"), exports);
|
|
28
|
+
__exportStar(require("./node-plugins"), exports);
|
|
28
29
|
__exportStar(require("./nodes"), exports);
|
|
29
30
|
__exportStar(require("./passkeys"), exports);
|
|
30
31
|
__exportStar(require("./remnawave-settings"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NODE_PLUGINS_ROUTES = exports.NODE_PLUGINS_CONTROLLER = void 0;
|
|
4
|
+
exports.NODE_PLUGINS_CONTROLLER = 'node-plugins';
|
|
5
|
+
const ACTIONS_ROUTE = 'actions';
|
|
6
|
+
exports.NODE_PLUGINS_ROUTES = {
|
|
7
|
+
GET_ALL: '', // get
|
|
8
|
+
GET: (uuid) => `${uuid}`, // get
|
|
9
|
+
UPDATE: '', // patch
|
|
10
|
+
DELETE: (uuid) => `${uuid}`, // delete
|
|
11
|
+
CREATE: '', // post,
|
|
12
|
+
ACTIONS: {
|
|
13
|
+
REORDER: `${ACTIONS_ROUTE}/reorder`,
|
|
14
|
+
CLONE: `${ACTIONS_ROUTE}/clone`,
|
|
15
|
+
},
|
|
16
|
+
};
|
|
@@ -291,6 +291,17 @@ exports.REST_API = {
|
|
|
291
291
|
CLONE: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PAGE_CONFIGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.ACTIONS.CLONE}`,
|
|
292
292
|
},
|
|
293
293
|
},
|
|
294
|
+
NODE_PLUGINS: {
|
|
295
|
+
GET: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.GET(uuid)}`,
|
|
296
|
+
GET_ALL: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.GET_ALL}`,
|
|
297
|
+
UPDATE: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.UPDATE}`,
|
|
298
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.DELETE(uuid)}`,
|
|
299
|
+
CREATE: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.CREATE}`,
|
|
300
|
+
ACTIONS: {
|
|
301
|
+
REORDER: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.ACTIONS.REORDER}`,
|
|
302
|
+
CLONE: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.ACTIONS.CLONE}`,
|
|
303
|
+
},
|
|
304
|
+
},
|
|
294
305
|
BANDWIDTH_STATS: {
|
|
295
306
|
NODES: {
|
|
296
307
|
GET: `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_NODES_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.NODES.GET}`,
|
|
@@ -25,6 +25,7 @@ __exportStar(require("./infra-billing"), exports);
|
|
|
25
25
|
__exportStar(require("./internal-squads"), exports);
|
|
26
26
|
__exportStar(require("./ip-control"), exports);
|
|
27
27
|
__exportStar(require("./keygen"), exports);
|
|
28
|
+
__exportStar(require("./node-plugins"), exports);
|
|
28
29
|
__exportStar(require("./nodes"), exports);
|
|
29
30
|
__exportStar(require("./passkeys"), exports);
|
|
30
31
|
__exportStar(require("./remnawave-settings"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CloneNodePluginCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
const models_1 = require("../../../models");
|
|
8
|
+
var CloneNodePluginCommand;
|
|
9
|
+
(function (CloneNodePluginCommand) {
|
|
10
|
+
CloneNodePluginCommand.url = api_1.REST_API.NODE_PLUGINS.ACTIONS.CLONE;
|
|
11
|
+
CloneNodePluginCommand.TSQ_url = CloneNodePluginCommand.url;
|
|
12
|
+
CloneNodePluginCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.ACTIONS.CLONE, 'post', 'Clone Node Plugin');
|
|
13
|
+
CloneNodePluginCommand.RequestSchema = zod_1.z.object({
|
|
14
|
+
cloneFromUuid: zod_1.z.string().uuid(),
|
|
15
|
+
});
|
|
16
|
+
CloneNodePluginCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
response: models_1.NodePluginSchema.extend({
|
|
18
|
+
pluginConfig: zod_1.z.unknown(),
|
|
19
|
+
}),
|
|
20
|
+
});
|
|
21
|
+
})(CloneNodePluginCommand || (exports.CloneNodePluginCommand = CloneNodePluginCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./clone-node-plugin.command"), exports);
|
|
18
|
+
__exportStar(require("./reorder.command"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReorderNodePluginCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
const models_1 = require("../../../models");
|
|
8
|
+
var ReorderNodePluginCommand;
|
|
9
|
+
(function (ReorderNodePluginCommand) {
|
|
10
|
+
ReorderNodePluginCommand.url = api_1.REST_API.NODE_PLUGINS.ACTIONS.REORDER;
|
|
11
|
+
ReorderNodePluginCommand.TSQ_url = ReorderNodePluginCommand.url;
|
|
12
|
+
ReorderNodePluginCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.ACTIONS.REORDER, 'post', 'Reorder Node Plugins');
|
|
13
|
+
ReorderNodePluginCommand.RequestSchema = zod_1.z.object({
|
|
14
|
+
items: zod_1.z.array(models_1.NodePluginSchema.pick({
|
|
15
|
+
viewPosition: true,
|
|
16
|
+
uuid: true,
|
|
17
|
+
})),
|
|
18
|
+
});
|
|
19
|
+
ReorderNodePluginCommand.ResponseSchema = zod_1.z.object({
|
|
20
|
+
response: zod_1.z.object({
|
|
21
|
+
total: zod_1.z.number(),
|
|
22
|
+
nodePlugins: zod_1.z.array(models_1.NodePluginSchema),
|
|
23
|
+
}),
|
|
24
|
+
});
|
|
25
|
+
})(ReorderNodePluginCommand || (exports.ReorderNodePluginCommand = ReorderNodePluginCommand = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateNodePluginCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
const models_1 = require("../../models");
|
|
8
|
+
var CreateNodePluginCommand;
|
|
9
|
+
(function (CreateNodePluginCommand) {
|
|
10
|
+
CreateNodePluginCommand.url = api_1.REST_API.NODE_PLUGINS.CREATE;
|
|
11
|
+
CreateNodePluginCommand.TSQ_url = CreateNodePluginCommand.url;
|
|
12
|
+
CreateNodePluginCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.CREATE, 'post', 'Create Node Plugin');
|
|
13
|
+
CreateNodePluginCommand.RequestSchema = zod_1.z.object({
|
|
14
|
+
name: zod_1.z
|
|
15
|
+
.string()
|
|
16
|
+
.min(2, 'Name must be at least 2 characters')
|
|
17
|
+
.max(30, 'Name must be less than 30 characters')
|
|
18
|
+
.regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces'),
|
|
19
|
+
});
|
|
20
|
+
CreateNodePluginCommand.ResponseSchema = zod_1.z.object({
|
|
21
|
+
response: models_1.NodePluginSchema,
|
|
22
|
+
});
|
|
23
|
+
})(CreateNodePluginCommand || (exports.CreateNodePluginCommand = CreateNodePluginCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteNodePluginCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var DeleteNodePluginCommand;
|
|
8
|
+
(function (DeleteNodePluginCommand) {
|
|
9
|
+
DeleteNodePluginCommand.url = api_1.REST_API.NODE_PLUGINS.DELETE;
|
|
10
|
+
DeleteNodePluginCommand.TSQ_url = DeleteNodePluginCommand.url(':uuid');
|
|
11
|
+
DeleteNodePluginCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.DELETE(':uuid'), 'delete', 'Delete Node Plugin');
|
|
12
|
+
DeleteNodePluginCommand.RequestSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
});
|
|
15
|
+
DeleteNodePluginCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
response: zod_1.z.object({
|
|
17
|
+
isDeleted: zod_1.z.boolean(),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
})(DeleteNodePluginCommand || (exports.DeleteNodePluginCommand = DeleteNodePluginCommand = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetNodePluginCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
const models_1 = require("../../models");
|
|
8
|
+
var GetNodePluginCommand;
|
|
9
|
+
(function (GetNodePluginCommand) {
|
|
10
|
+
GetNodePluginCommand.url = api_1.REST_API.NODE_PLUGINS.GET;
|
|
11
|
+
GetNodePluginCommand.TSQ_url = GetNodePluginCommand.url(':uuid');
|
|
12
|
+
GetNodePluginCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.GET(':uuid'), 'get', 'Get Node Plugin by uuid');
|
|
13
|
+
GetNodePluginCommand.RequestSchema = zod_1.z.object({
|
|
14
|
+
uuid: zod_1.z.string().uuid(),
|
|
15
|
+
});
|
|
16
|
+
GetNodePluginCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
response: models_1.NodePluginSchema.extend({
|
|
18
|
+
pluginConfig: zod_1.z.unknown(),
|
|
19
|
+
}),
|
|
20
|
+
});
|
|
21
|
+
})(GetNodePluginCommand || (exports.GetNodePluginCommand = GetNodePluginCommand = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetNodePluginsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
const models_1 = require("../../models");
|
|
8
|
+
var GetNodePluginsCommand;
|
|
9
|
+
(function (GetNodePluginsCommand) {
|
|
10
|
+
GetNodePluginsCommand.url = api_1.REST_API.NODE_PLUGINS.GET_ALL;
|
|
11
|
+
GetNodePluginsCommand.TSQ_url = GetNodePluginsCommand.url;
|
|
12
|
+
GetNodePluginsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.GET_ALL, 'get', 'Get all Node Plugins');
|
|
13
|
+
GetNodePluginsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
response: zod_1.z.object({
|
|
15
|
+
total: zod_1.z.number(),
|
|
16
|
+
nodePlugins: zod_1.z.array(models_1.NodePluginSchema),
|
|
17
|
+
}),
|
|
18
|
+
});
|
|
19
|
+
})(GetNodePluginsCommand || (exports.GetNodePluginsCommand = GetNodePluginsCommand = {}));
|