@remnawave/backend-contract 3.3.3 → 3.4.0
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/node-plugins.d.ts +11 -0
- package/build/backend/api/controllers/node-plugins.d.ts.map +1 -1
- package/build/backend/api/controllers/node-plugins.js +12 -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/node-plugins/actions/index.d.ts +1 -0
- package/build/backend/commands/node-plugins/actions/index.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/actions/index.js +1 -0
- package/build/backend/commands/node-plugins/actions/sync-node-plugin.command.d.ts +11 -0
- package/build/backend/commands/node-plugins/actions/sync-node-plugin.command.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/actions/sync-node-plugin.command.js +15 -0
- package/build/backend/commands/node-plugins/index.d.ts +1 -0
- package/build/backend/commands/node-plugins/index.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/index.js +1 -0
- package/build/backend/commands/node-plugins/shared-lists/create-shared-list.command.d.ts +19 -0
- package/build/backend/commands/node-plugins/shared-lists/create-shared-list.command.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/shared-lists/create-shared-list.command.js +20 -0
- package/build/backend/commands/node-plugins/shared-lists/delete-shared-list.command.d.ts +11 -0
- package/build/backend/commands/node-plugins/shared-lists/delete-shared-list.command.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/shared-lists/delete-shared-list.command.js +16 -0
- package/build/backend/commands/node-plugins/shared-lists/get-shared-list.command.d.ts +18 -0
- package/build/backend/commands/node-plugins/shared-lists/get-shared-list.command.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/shared-lists/get-shared-list.command.js +19 -0
- package/build/backend/commands/node-plugins/shared-lists/get-shared-lists.command.d.ts +18 -0
- package/build/backend/commands/node-plugins/shared-lists/get-shared-lists.command.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/shared-lists/get-shared-lists.command.js +19 -0
- package/build/backend/commands/node-plugins/shared-lists/index.d.ts +7 -0
- package/build/backend/commands/node-plugins/shared-lists/index.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/shared-lists/index.js +22 -0
- package/build/backend/commands/node-plugins/shared-lists/sync-shared-list.command.d.ts +11 -0
- package/build/backend/commands/node-plugins/shared-lists/sync-shared-list.command.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/shared-lists/sync-shared-list.command.js +16 -0
- package/build/backend/commands/node-plugins/shared-lists/update-shared-list.command.d.ts +19 -0
- package/build/backend/commands/node-plugins/shared-lists/update-shared-list.command.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/shared-lists/update-shared-list.command.js +20 -0
- package/build/backend/constants/errors/errors.d.ts +45 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +45 -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/shared-list.schema.d.ts +12 -0
- package/build/backend/models/shared-list.schema.d.ts.map +1 -0
- package/build/backend/models/shared-list.schema.js +21 -0
- package/build/frontend/api/controllers/node-plugins.js +12 -0
- package/build/frontend/api/routes.js +11 -0
- package/build/frontend/commands/node-plugins/actions/index.js +1 -0
- package/build/frontend/commands/node-plugins/actions/sync-node-plugin.command.js +15 -0
- package/build/frontend/commands/node-plugins/index.js +1 -0
- package/build/frontend/commands/node-plugins/shared-lists/create-shared-list.command.js +20 -0
- package/build/frontend/commands/node-plugins/shared-lists/delete-shared-list.command.js +16 -0
- package/build/frontend/commands/node-plugins/shared-lists/get-shared-list.command.js +19 -0
- package/build/frontend/commands/node-plugins/shared-lists/get-shared-lists.command.js +19 -0
- package/build/frontend/commands/node-plugins/shared-lists/index.js +22 -0
- package/build/frontend/commands/node-plugins/shared-lists/sync-shared-list.command.js +16 -0
- package/build/frontend/commands/node-plugins/shared-lists/update-shared-list.command.js +20 -0
- package/build/frontend/constants/errors/errors.js +45 -0
- package/build/frontend/models/index.js +1 -0
- package/build/frontend/models/shared-list.schema.js +21 -0
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ export declare const NODE_PLUGINS_ROUTES: {
|
|
|
8
8
|
readonly ACTIONS: {
|
|
9
9
|
readonly REORDER: "actions/reorder";
|
|
10
10
|
readonly CLONE: "actions/clone";
|
|
11
|
+
readonly SYNC: "actions/sync";
|
|
11
12
|
};
|
|
12
13
|
readonly EXECUTOR: "executor";
|
|
13
14
|
readonly TORRENT_BLOCKER: {
|
|
@@ -15,5 +16,15 @@ export declare const NODE_PLUGINS_ROUTES: {
|
|
|
15
16
|
readonly GET_REPORTS_STATS: "torrent-blocker/stats";
|
|
16
17
|
readonly TRUNCATE_REPORTS: "torrent-blocker/truncate";
|
|
17
18
|
};
|
|
19
|
+
readonly SHARED_LISTS: {
|
|
20
|
+
readonly GET_ALL: "shared-lists";
|
|
21
|
+
readonly GET: (name: string) => string;
|
|
22
|
+
readonly CREATE: "shared-lists";
|
|
23
|
+
readonly UPDATE: "shared-lists";
|
|
24
|
+
readonly DELETE: (name: string) => string;
|
|
25
|
+
readonly ACTIONS: {
|
|
26
|
+
readonly SYNC: "shared-lists/actions/sync";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
18
29
|
};
|
|
19
30
|
//# sourceMappingURL=node-plugins.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-plugins.d.ts","sourceRoot":"","sources":["../../../../api/controllers/node-plugins.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAG,cAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"node-plugins.d.ts","sourceRoot":"","sources":["../../../../api/controllers/node-plugins.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAG,cAAuB,CAAC;AAM/D,eAAO,MAAM,mBAAmB;;yBAEhB,MAAM;;4BAEH,MAAM;;;;;;;;;;;;;;;6BAmBL,MAAM;;;gCAGH,MAAM;;;;;CAMnB,CAAC"}
|
|
@@ -4,6 +4,7 @@ exports.NODE_PLUGINS_ROUTES = exports.NODE_PLUGINS_CONTROLLER = void 0;
|
|
|
4
4
|
exports.NODE_PLUGINS_CONTROLLER = 'node-plugins';
|
|
5
5
|
const ACTIONS_ROUTE = 'actions';
|
|
6
6
|
const TORRENT_BLOCKER_ROUTE = 'torrent-blocker';
|
|
7
|
+
const SHARED_LISTS_ROUTE = 'shared-lists';
|
|
7
8
|
exports.NODE_PLUGINS_ROUTES = {
|
|
8
9
|
GET_ALL: '', // get
|
|
9
10
|
GET: (uuid) => `${uuid}`, // get
|
|
@@ -13,6 +14,7 @@ exports.NODE_PLUGINS_ROUTES = {
|
|
|
13
14
|
ACTIONS: {
|
|
14
15
|
REORDER: `${ACTIONS_ROUTE}/reorder`,
|
|
15
16
|
CLONE: `${ACTIONS_ROUTE}/clone`,
|
|
17
|
+
SYNC: `${ACTIONS_ROUTE}/sync`,
|
|
16
18
|
},
|
|
17
19
|
EXECUTOR: 'executor',
|
|
18
20
|
TORRENT_BLOCKER: {
|
|
@@ -20,4 +22,14 @@ exports.NODE_PLUGINS_ROUTES = {
|
|
|
20
22
|
GET_REPORTS_STATS: `${TORRENT_BLOCKER_ROUTE}/stats`,
|
|
21
23
|
TRUNCATE_REPORTS: `${TORRENT_BLOCKER_ROUTE}/truncate`,
|
|
22
24
|
},
|
|
25
|
+
SHARED_LISTS: {
|
|
26
|
+
GET_ALL: `${SHARED_LISTS_ROUTE}`, // get
|
|
27
|
+
GET: (name) => `${SHARED_LISTS_ROUTE}/${name}`, // get
|
|
28
|
+
CREATE: `${SHARED_LISTS_ROUTE}`, // post
|
|
29
|
+
UPDATE: `${SHARED_LISTS_ROUTE}`, // patch
|
|
30
|
+
DELETE: (name) => `${SHARED_LISTS_ROUTE}/${name}`, // delete
|
|
31
|
+
ACTIONS: {
|
|
32
|
+
SYNC: `${SHARED_LISTS_ROUTE}/${ACTIONS_ROUTE}/sync`, // post
|
|
33
|
+
},
|
|
34
|
+
},
|
|
23
35
|
};
|
|
@@ -280,8 +280,19 @@ export declare const REST_API: {
|
|
|
280
280
|
readonly ACTIONS: {
|
|
281
281
|
readonly REORDER: "/api/node-plugins/actions/reorder";
|
|
282
282
|
readonly CLONE: "/api/node-plugins/actions/clone";
|
|
283
|
+
readonly SYNC: "/api/node-plugins/actions/sync";
|
|
283
284
|
};
|
|
284
285
|
readonly EXECUTOR: "/api/node-plugins/executor";
|
|
286
|
+
readonly SHARED_LISTS: {
|
|
287
|
+
readonly GET_ALL: "/api/node-plugins/shared-lists";
|
|
288
|
+
readonly GET: (name: string) => string;
|
|
289
|
+
readonly CREATE: "/api/node-plugins/shared-lists";
|
|
290
|
+
readonly UPDATE: "/api/node-plugins/shared-lists";
|
|
291
|
+
readonly DELETE: (name: string) => string;
|
|
292
|
+
readonly ACTIONS: {
|
|
293
|
+
readonly SYNC: "/api/node-plugins/shared-lists/actions/sync";
|
|
294
|
+
};
|
|
295
|
+
};
|
|
285
296
|
readonly TORRENT_BLOCKER: {
|
|
286
297
|
readonly GET_REPORTS: "/api/node-plugins/torrent-blocker";
|
|
287
298
|
readonly GET_REPORTS_STATS: "/api/node-plugins/torrent-blocker/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;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,QA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AM;;;oCAIH,MAAM;;;;;;;;;;;;;;;uCAiBH,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"}
|
|
@@ -317,8 +317,19 @@ exports.REST_API = {
|
|
|
317
317
|
ACTIONS: {
|
|
318
318
|
REORDER: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.ACTIONS.REORDER}`,
|
|
319
319
|
CLONE: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.ACTIONS.CLONE}`,
|
|
320
|
+
SYNC: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.ACTIONS.SYNC}`,
|
|
320
321
|
},
|
|
321
322
|
EXECUTOR: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.EXECUTOR}`,
|
|
323
|
+
SHARED_LISTS: {
|
|
324
|
+
GET_ALL: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.SHARED_LISTS.GET_ALL}`,
|
|
325
|
+
GET: (name) => `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.SHARED_LISTS.GET(name)}`,
|
|
326
|
+
CREATE: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.SHARED_LISTS.CREATE}`,
|
|
327
|
+
UPDATE: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.SHARED_LISTS.UPDATE}`,
|
|
328
|
+
DELETE: (name) => `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.SHARED_LISTS.DELETE(name)}`,
|
|
329
|
+
ACTIONS: {
|
|
330
|
+
SYNC: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.SHARED_LISTS.ACTIONS.SYNC}`,
|
|
331
|
+
},
|
|
332
|
+
},
|
|
322
333
|
TORRENT_BLOCKER: {
|
|
323
334
|
GET_REPORTS: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.TORRENT_BLOCKER.GET_REPORTS}`,
|
|
324
335
|
GET_REPORTS_STATS: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.TORRENT_BLOCKER.GET_REPORTS_STATS}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/node-plugins/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/node-plugins/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC"}
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./clone-node-plugin.command"), exports);
|
|
18
18
|
__exportStar(require("./reorder.command"), exports);
|
|
19
|
+
__exportStar(require("./sync-node-plugin.command"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace SyncNodePluginCommand {
|
|
3
|
+
const url: "/api/node-plugins/actions/sync";
|
|
4
|
+
const TSQ_url: "/api/node-plugins/actions/sync";
|
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
+
const RequestBodySchema: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodUUID;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=sync-node-plugin.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync-node-plugin.command.d.ts","sourceRoot":"","sources":["../../../../../commands/node-plugins/actions/sync-node-plugin.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,kCAAqC,CAAC;IAC/C,MAAM,OAAO,kCAAM,CAAC;IAEpB,MAAM,eAAe,8CAM3B,CAAC;IAEK,MAAM,iBAAiB;;qBAE5B,CAAC;IAEH,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;CAC/D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SyncNodePluginCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
var SyncNodePluginCommand;
|
|
8
|
+
(function (SyncNodePluginCommand) {
|
|
9
|
+
SyncNodePluginCommand.url = api_1.REST_API.NODE_PLUGINS.ACTIONS.SYNC;
|
|
10
|
+
SyncNodePluginCommand.TSQ_url = SyncNodePluginCommand.url;
|
|
11
|
+
SyncNodePluginCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.ACTIONS.SYNC, 'post', 'Sync Node Plugin to nodes', { scope: 'sync', kind: 'write' }, 'Push the current plugin config, including referenced shared lists, to every connected node this plugin is active on.');
|
|
12
|
+
SyncNodePluginCommand.RequestBodySchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.uuid(),
|
|
14
|
+
});
|
|
15
|
+
})(SyncNodePluginCommand || (exports.SyncNodePluginCommand = SyncNodePluginCommand = {}));
|
|
@@ -4,6 +4,7 @@ export * from './delete-node-plugin.command';
|
|
|
4
4
|
export * from './executor.command';
|
|
5
5
|
export * from './get-node-plugin.command';
|
|
6
6
|
export * from './get-node-plugins.command';
|
|
7
|
+
export * from './shared-lists';
|
|
7
8
|
export * from './torrent-blocker';
|
|
8
9
|
export * from './update-node-plugin.command';
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/node-plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/node-plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC"}
|
|
@@ -20,5 +20,6 @@ __exportStar(require("./delete-node-plugin.command"), exports);
|
|
|
20
20
|
__exportStar(require("./executor.command"), exports);
|
|
21
21
|
__exportStar(require("./get-node-plugin.command"), exports);
|
|
22
22
|
__exportStar(require("./get-node-plugins.command"), exports);
|
|
23
|
+
__exportStar(require("./shared-lists"), exports);
|
|
23
24
|
__exportStar(require("./torrent-blocker"), exports);
|
|
24
25
|
__exportStar(require("./update-node-plugin.command"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace CreateSharedListCommand {
|
|
3
|
+
const url: "/api/node-plugins/shared-lists";
|
|
4
|
+
const TSQ_url: "/api/node-plugins/shared-lists";
|
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
+
const RequestBodySchema: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
const ResponseSchema: z.ZodObject<{
|
|
11
|
+
response: z.ZodObject<{
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
17
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=create-shared-list.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-shared-list.command.d.ts","sourceRoot":"","sources":["../../../../../commands/node-plugins/shared-lists/create-shared-list.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,kCAA4C,CAAC;IACtD,MAAM,OAAO,kCAAM,CAAC;IAEpB,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;qBAG5B,CAAC;IAEI,MAAM,cAAc;;;;;qBAEzB,CAAC;IAEH,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,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.CreateSharedListCommand = 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 CreateSharedListCommand;
|
|
9
|
+
(function (CreateSharedListCommand) {
|
|
10
|
+
CreateSharedListCommand.url = api_1.REST_API.NODE_PLUGINS.SHARED_LISTS.CREATE;
|
|
11
|
+
CreateSharedListCommand.TSQ_url = CreateSharedListCommand.url;
|
|
12
|
+
CreateSharedListCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.SHARED_LISTS.CREATE, 'post', 'Create Shared List', { scope: 'shared-lists-create', kind: 'write' });
|
|
13
|
+
CreateSharedListCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
+
name: models_1.SharedListNameSchema,
|
|
15
|
+
config: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
16
|
+
});
|
|
17
|
+
CreateSharedListCommand.ResponseSchema = zod_1.z.object({
|
|
18
|
+
response: models_1.SharedListsSchema,
|
|
19
|
+
});
|
|
20
|
+
})(CreateSharedListCommand || (exports.CreateSharedListCommand = CreateSharedListCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace DeleteSharedListCommand {
|
|
3
|
+
const url: (name: string) => string;
|
|
4
|
+
const TSQ_url: string;
|
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
+
const RequestParamSchema: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=delete-shared-list.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-shared-list.command.d.ts","sourceRoot":"","sources":["../../../../../commands/node-plugins/shared-lists/delete-shared-list.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,0BAA4C,CAAC;IACtD,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;CACjE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteSharedListCommand = 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 DeleteSharedListCommand;
|
|
9
|
+
(function (DeleteSharedListCommand) {
|
|
10
|
+
DeleteSharedListCommand.url = api_1.REST_API.NODE_PLUGINS.SHARED_LISTS.DELETE;
|
|
11
|
+
DeleteSharedListCommand.TSQ_url = DeleteSharedListCommand.url(':name');
|
|
12
|
+
DeleteSharedListCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.SHARED_LISTS.DELETE(':name'), 'delete', 'Delete Shared List by name', { scope: 'shared-lists-delete', kind: 'write' });
|
|
13
|
+
DeleteSharedListCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
+
name: models_1.SharedListNameSchema,
|
|
15
|
+
});
|
|
16
|
+
})(DeleteSharedListCommand || (exports.DeleteSharedListCommand = DeleteSharedListCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetSharedListCommand {
|
|
3
|
+
const url: (name: string) => string;
|
|
4
|
+
const TSQ_url: string;
|
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
+
const RequestParamSchema: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
const ResponseSchema: z.ZodObject<{
|
|
10
|
+
response: z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
16
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=get-shared-list.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-shared-list.command.d.ts","sourceRoot":"","sources":["../../../../../commands/node-plugins/shared-lists/get-shared-list.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,0BAAyC,CAAC;IACnD,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc;;;;;qBAEzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSharedListCommand = 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 GetSharedListCommand;
|
|
9
|
+
(function (GetSharedListCommand) {
|
|
10
|
+
GetSharedListCommand.url = api_1.REST_API.NODE_PLUGINS.SHARED_LISTS.GET;
|
|
11
|
+
GetSharedListCommand.TSQ_url = GetSharedListCommand.url(':name');
|
|
12
|
+
GetSharedListCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.SHARED_LISTS.GET(':name'), 'get', 'Get Shared List by name', { scope: 'shared-lists-get', kind: 'read' });
|
|
13
|
+
GetSharedListCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
+
name: models_1.SharedListNameSchema,
|
|
15
|
+
});
|
|
16
|
+
GetSharedListCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
response: models_1.SharedListsSchema,
|
|
18
|
+
});
|
|
19
|
+
})(GetSharedListCommand || (exports.GetSharedListCommand = GetSharedListCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetSharedListsCommand {
|
|
3
|
+
const url: "/api/node-plugins/shared-lists";
|
|
4
|
+
const TSQ_url: "/api/node-plugins/shared-lists";
|
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
+
const ResponseSchema: z.ZodObject<{
|
|
7
|
+
response: z.ZodObject<{
|
|
8
|
+
total: z.ZodNumber;
|
|
9
|
+
sharedLists: z.ZodArray<z.ZodObject<{
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
type: z.ZodString;
|
|
12
|
+
itemsCount: z.ZodNumber;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=get-shared-lists.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-shared-lists.command.d.ts","sourceRoot":"","sources":["../../../../../commands/node-plugins/shared-lists/get-shared-lists.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,kCAA6C,CAAC;IACvD,MAAM,OAAO,kCAAM,CAAC;IAEpB,MAAM,eAAe,8CAM3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;qBAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSharedListsCommand = 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 GetSharedListsCommand;
|
|
9
|
+
(function (GetSharedListsCommand) {
|
|
10
|
+
GetSharedListsCommand.url = api_1.REST_API.NODE_PLUGINS.SHARED_LISTS.GET_ALL;
|
|
11
|
+
GetSharedListsCommand.TSQ_url = GetSharedListsCommand.url;
|
|
12
|
+
GetSharedListsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.SHARED_LISTS.GET_ALL, 'get', 'Get Shared Lists (Preview)', { scope: 'shared-lists-list', kind: 'read' }, 'Returns only the name, type and item count of every shared list. Use "Get Shared List by name" to fetch the items themselves.');
|
|
13
|
+
GetSharedListsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
response: zod_1.z.object({
|
|
15
|
+
total: zod_1.z.number(),
|
|
16
|
+
sharedLists: zod_1.z.array(models_1.SharedListPreviewSchema),
|
|
17
|
+
}),
|
|
18
|
+
});
|
|
19
|
+
})(GetSharedListsCommand || (exports.GetSharedListsCommand = GetSharedListsCommand = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './create-shared-list.command';
|
|
2
|
+
export * from './delete-shared-list.command';
|
|
3
|
+
export * from './get-shared-list.command';
|
|
4
|
+
export * from './get-shared-lists.command';
|
|
5
|
+
export * from './sync-shared-list.command';
|
|
6
|
+
export * from './update-shared-list.command';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/node-plugins/shared-lists/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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("./create-shared-list.command"), exports);
|
|
18
|
+
__exportStar(require("./delete-shared-list.command"), exports);
|
|
19
|
+
__exportStar(require("./get-shared-list.command"), exports);
|
|
20
|
+
__exportStar(require("./get-shared-lists.command"), exports);
|
|
21
|
+
__exportStar(require("./sync-shared-list.command"), exports);
|
|
22
|
+
__exportStar(require("./update-shared-list.command"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace SyncSharedListCommand {
|
|
3
|
+
const url: "/api/node-plugins/shared-lists/actions/sync";
|
|
4
|
+
const TSQ_url: "/api/node-plugins/shared-lists/actions/sync";
|
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
+
const RequestBodySchema: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=sync-shared-list.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync-shared-list.command.d.ts","sourceRoot":"","sources":["../../../../../commands/node-plugins/shared-lists/sync-shared-list.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,+CAAkD,CAAC;IAC5D,MAAM,OAAO,+CAAM,CAAC;IAEpB,MAAM,eAAe,8CAM3B,CAAC;IAEK,MAAM,iBAAiB;;qBAE5B,CAAC;IAEH,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;CAC/D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SyncSharedListCommand = 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 SyncSharedListCommand;
|
|
9
|
+
(function (SyncSharedListCommand) {
|
|
10
|
+
SyncSharedListCommand.url = api_1.REST_API.NODE_PLUGINS.SHARED_LISTS.ACTIONS.SYNC;
|
|
11
|
+
SyncSharedListCommand.TSQ_url = SyncSharedListCommand.url;
|
|
12
|
+
SyncSharedListCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.SHARED_LISTS.ACTIONS.SYNC, 'post', 'Sync Shared List to nodes', { scope: 'shared-lists-sync', kind: 'write' }, 'Push every plugin referencing this shared list to the nodes it is active on.');
|
|
13
|
+
SyncSharedListCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
+
name: models_1.SharedListNameSchema,
|
|
15
|
+
});
|
|
16
|
+
})(SyncSharedListCommand || (exports.SyncSharedListCommand = SyncSharedListCommand = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace UpdateSharedListCommand {
|
|
3
|
+
const url: "/api/node-plugins/shared-lists";
|
|
4
|
+
const TSQ_url: "/api/node-plugins/shared-lists";
|
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
+
const RequestBodySchema: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
const ResponseSchema: z.ZodObject<{
|
|
11
|
+
response: z.ZodObject<{
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
17
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=update-shared-list.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-shared-list.command.d.ts","sourceRoot":"","sources":["../../../../../commands/node-plugins/shared-lists/update-shared-list.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,kCAA4C,CAAC;IACtD,MAAM,OAAO,kCAAM,CAAC;IAEpB,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;qBAG5B,CAAC;IAEI,MAAM,cAAc;;;;;qBAEzB,CAAC;IAEH,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,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.UpdateSharedListCommand = 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 UpdateSharedListCommand;
|
|
9
|
+
(function (UpdateSharedListCommand) {
|
|
10
|
+
UpdateSharedListCommand.url = api_1.REST_API.NODE_PLUGINS.SHARED_LISTS.UPDATE;
|
|
11
|
+
UpdateSharedListCommand.TSQ_url = UpdateSharedListCommand.url;
|
|
12
|
+
UpdateSharedListCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.SHARED_LISTS.UPDATE, 'patch', 'Update Shared List', { scope: 'shared-lists-update', kind: 'write' });
|
|
13
|
+
UpdateSharedListCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
+
name: models_1.SharedListNameSchema,
|
|
15
|
+
config: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
16
|
+
});
|
|
17
|
+
UpdateSharedListCommand.ResponseSchema = zod_1.z.object({
|
|
18
|
+
response: models_1.SharedListsSchema,
|
|
19
|
+
});
|
|
20
|
+
})(UpdateSharedListCommand || (exports.UpdateSharedListCommand = UpdateSharedListCommand = {}));
|
|
@@ -1254,5 +1254,50 @@ export declare const ERRORS: {
|
|
|
1254
1254
|
readonly message: "Node integration name already exists";
|
|
1255
1255
|
readonly httpCode: 400;
|
|
1256
1256
|
};
|
|
1257
|
+
readonly SHARED_LIST_NOT_FOUND: {
|
|
1258
|
+
readonly code: "A245";
|
|
1259
|
+
readonly message: "Shared list not found";
|
|
1260
|
+
readonly httpCode: 404;
|
|
1261
|
+
};
|
|
1262
|
+
readonly SHARED_LIST_NAME_ALREADY_EXISTS: {
|
|
1263
|
+
readonly code: "A246";
|
|
1264
|
+
readonly message: "Shared list name already exists";
|
|
1265
|
+
readonly httpCode: 400;
|
|
1266
|
+
};
|
|
1267
|
+
readonly GET_ALL_SHARED_LISTS_ERROR: {
|
|
1268
|
+
readonly code: "A247";
|
|
1269
|
+
readonly message: "Get all shared lists error";
|
|
1270
|
+
readonly httpCode: 500;
|
|
1271
|
+
};
|
|
1272
|
+
readonly GET_SHARED_LIST_BY_NAME_ERROR: {
|
|
1273
|
+
readonly code: "A248";
|
|
1274
|
+
readonly message: "Get shared list by name error";
|
|
1275
|
+
readonly httpCode: 500;
|
|
1276
|
+
};
|
|
1277
|
+
readonly CREATE_SHARED_LIST_ERROR: {
|
|
1278
|
+
readonly code: "A249";
|
|
1279
|
+
readonly message: "Create shared list error";
|
|
1280
|
+
readonly httpCode: 500;
|
|
1281
|
+
};
|
|
1282
|
+
readonly UPDATE_SHARED_LIST_ERROR: {
|
|
1283
|
+
readonly code: "A250";
|
|
1284
|
+
readonly message: "Update shared list error";
|
|
1285
|
+
readonly httpCode: 500;
|
|
1286
|
+
};
|
|
1287
|
+
readonly DELETE_SHARED_LIST_ERROR: {
|
|
1288
|
+
readonly code: "A251";
|
|
1289
|
+
readonly message: "Delete shared list error";
|
|
1290
|
+
readonly httpCode: 500;
|
|
1291
|
+
};
|
|
1292
|
+
readonly INVALID_SHARED_LIST_CONFIG: {
|
|
1293
|
+
readonly code: "A252";
|
|
1294
|
+
readonly message: "Invalid shared list config";
|
|
1295
|
+
readonly httpCode: 400;
|
|
1296
|
+
readonly withMessage: (message: string) => {
|
|
1297
|
+
code: string;
|
|
1298
|
+
message: string;
|
|
1299
|
+
httpCode: number;
|
|
1300
|
+
};
|
|
1301
|
+
};
|
|
1257
1302
|
};
|
|
1258
1303
|
//# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAsqBN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA6HN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAkDN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA8GN,MAAM;;;;;;CAM3B,CAAC"}
|
|
@@ -1225,4 +1225,49 @@ exports.ERRORS = {
|
|
|
1225
1225
|
message: 'Node integration name already exists',
|
|
1226
1226
|
httpCode: 400,
|
|
1227
1227
|
},
|
|
1228
|
+
SHARED_LIST_NOT_FOUND: {
|
|
1229
|
+
code: 'A245',
|
|
1230
|
+
message: 'Shared list not found',
|
|
1231
|
+
httpCode: 404,
|
|
1232
|
+
},
|
|
1233
|
+
SHARED_LIST_NAME_ALREADY_EXISTS: {
|
|
1234
|
+
code: 'A246',
|
|
1235
|
+
message: 'Shared list name already exists',
|
|
1236
|
+
httpCode: 400,
|
|
1237
|
+
},
|
|
1238
|
+
GET_ALL_SHARED_LISTS_ERROR: {
|
|
1239
|
+
code: 'A247',
|
|
1240
|
+
message: 'Get all shared lists error',
|
|
1241
|
+
httpCode: 500,
|
|
1242
|
+
},
|
|
1243
|
+
GET_SHARED_LIST_BY_NAME_ERROR: {
|
|
1244
|
+
code: 'A248',
|
|
1245
|
+
message: 'Get shared list by name error',
|
|
1246
|
+
httpCode: 500,
|
|
1247
|
+
},
|
|
1248
|
+
CREATE_SHARED_LIST_ERROR: {
|
|
1249
|
+
code: 'A249',
|
|
1250
|
+
message: 'Create shared list error',
|
|
1251
|
+
httpCode: 500,
|
|
1252
|
+
},
|
|
1253
|
+
UPDATE_SHARED_LIST_ERROR: {
|
|
1254
|
+
code: 'A250',
|
|
1255
|
+
message: 'Update shared list error',
|
|
1256
|
+
httpCode: 500,
|
|
1257
|
+
},
|
|
1258
|
+
DELETE_SHARED_LIST_ERROR: {
|
|
1259
|
+
code: 'A251',
|
|
1260
|
+
message: 'Delete shared list error',
|
|
1261
|
+
httpCode: 500,
|
|
1262
|
+
},
|
|
1263
|
+
INVALID_SHARED_LIST_CONFIG: {
|
|
1264
|
+
code: 'A252',
|
|
1265
|
+
message: 'Invalid shared list config',
|
|
1266
|
+
httpCode: 400,
|
|
1267
|
+
withMessage: (message) => ({
|
|
1268
|
+
code: 'A252',
|
|
1269
|
+
message,
|
|
1270
|
+
httpCode: 400,
|
|
1271
|
+
}),
|
|
1272
|
+
},
|
|
1228
1273
|
};
|
|
@@ -24,6 +24,7 @@ export * from './nodes.schema';
|
|
|
24
24
|
export * from './remnawave-settings';
|
|
25
25
|
export * from './resolved-proxy-config.schema';
|
|
26
26
|
export * from './response-rules';
|
|
27
|
+
export * from './shared-list.schema';
|
|
27
28
|
export * from './snippets.schema';
|
|
28
29
|
export * from './subscripion-page-config.schema';
|
|
29
30
|
export * from './subscription-info.schema';
|
|
@@ -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,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AA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AAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,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,iCAAiC,CAAC;AAChD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC"}
|
|
@@ -40,6 +40,7 @@ __exportStar(require("./nodes.schema"), exports);
|
|
|
40
40
|
__exportStar(require("./remnawave-settings"), exports);
|
|
41
41
|
__exportStar(require("./resolved-proxy-config.schema"), exports);
|
|
42
42
|
__exportStar(require("./response-rules"), exports);
|
|
43
|
+
__exportStar(require("./shared-list.schema"), exports);
|
|
43
44
|
__exportStar(require("./snippets.schema"), exports);
|
|
44
45
|
__exportStar(require("./subscripion-page-config.schema"), exports);
|
|
45
46
|
__exportStar(require("./subscription-info.schema"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const SharedListNameSchema: z.ZodString;
|
|
3
|
+
export declare const SharedListsSchema: z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const SharedListPreviewSchema: z.ZodObject<{
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
type: z.ZodString;
|
|
10
|
+
itemsCount: z.ZodNumber;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
//# sourceMappingURL=shared-list.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-list.schema.d.ts","sourceRoot":"","sources":["../../../models/shared-list.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,oBAAoB,aAO5B,CAAC;AAEN,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;iBAIlC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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.SharedListPreviewSchema = exports.SharedListsSchema = exports.SharedListNameSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
exports.SharedListNameSchema = zod_1.default
|
|
9
|
+
.string()
|
|
10
|
+
.min(2, 'Name must be at least 2 characters')
|
|
11
|
+
.max(255, 'Name must be less than 255 characters')
|
|
12
|
+
.regex(/^[A-Za-z0-9_-]+$/, 'Name can only contain letters, numbers, underscores and dashes. The "ext:" prefix is added automatically');
|
|
13
|
+
exports.SharedListsSchema = zod_1.default.object({
|
|
14
|
+
name: exports.SharedListNameSchema,
|
|
15
|
+
config: zod_1.default.record(zod_1.default.string(), zod_1.default.unknown()),
|
|
16
|
+
});
|
|
17
|
+
exports.SharedListPreviewSchema = zod_1.default.object({
|
|
18
|
+
name: exports.SharedListNameSchema,
|
|
19
|
+
type: zod_1.default.string(),
|
|
20
|
+
itemsCount: zod_1.default.number(),
|
|
21
|
+
});
|
|
@@ -4,6 +4,7 @@ exports.NODE_PLUGINS_ROUTES = exports.NODE_PLUGINS_CONTROLLER = void 0;
|
|
|
4
4
|
exports.NODE_PLUGINS_CONTROLLER = 'node-plugins';
|
|
5
5
|
const ACTIONS_ROUTE = 'actions';
|
|
6
6
|
const TORRENT_BLOCKER_ROUTE = 'torrent-blocker';
|
|
7
|
+
const SHARED_LISTS_ROUTE = 'shared-lists';
|
|
7
8
|
exports.NODE_PLUGINS_ROUTES = {
|
|
8
9
|
GET_ALL: '', // get
|
|
9
10
|
GET: (uuid) => `${uuid}`, // get
|
|
@@ -13,6 +14,7 @@ exports.NODE_PLUGINS_ROUTES = {
|
|
|
13
14
|
ACTIONS: {
|
|
14
15
|
REORDER: `${ACTIONS_ROUTE}/reorder`,
|
|
15
16
|
CLONE: `${ACTIONS_ROUTE}/clone`,
|
|
17
|
+
SYNC: `${ACTIONS_ROUTE}/sync`,
|
|
16
18
|
},
|
|
17
19
|
EXECUTOR: 'executor',
|
|
18
20
|
TORRENT_BLOCKER: {
|
|
@@ -20,4 +22,14 @@ exports.NODE_PLUGINS_ROUTES = {
|
|
|
20
22
|
GET_REPORTS_STATS: `${TORRENT_BLOCKER_ROUTE}/stats`,
|
|
21
23
|
TRUNCATE_REPORTS: `${TORRENT_BLOCKER_ROUTE}/truncate`,
|
|
22
24
|
},
|
|
25
|
+
SHARED_LISTS: {
|
|
26
|
+
GET_ALL: `${SHARED_LISTS_ROUTE}`, // get
|
|
27
|
+
GET: (name) => `${SHARED_LISTS_ROUTE}/${name}`, // get
|
|
28
|
+
CREATE: `${SHARED_LISTS_ROUTE}`, // post
|
|
29
|
+
UPDATE: `${SHARED_LISTS_ROUTE}`, // patch
|
|
30
|
+
DELETE: (name) => `${SHARED_LISTS_ROUTE}/${name}`, // delete
|
|
31
|
+
ACTIONS: {
|
|
32
|
+
SYNC: `${SHARED_LISTS_ROUTE}/${ACTIONS_ROUTE}/sync`, // post
|
|
33
|
+
},
|
|
34
|
+
},
|
|
23
35
|
};
|
|
@@ -317,8 +317,19 @@ exports.REST_API = {
|
|
|
317
317
|
ACTIONS: {
|
|
318
318
|
REORDER: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.ACTIONS.REORDER}`,
|
|
319
319
|
CLONE: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.ACTIONS.CLONE}`,
|
|
320
|
+
SYNC: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.ACTIONS.SYNC}`,
|
|
320
321
|
},
|
|
321
322
|
EXECUTOR: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.EXECUTOR}`,
|
|
323
|
+
SHARED_LISTS: {
|
|
324
|
+
GET_ALL: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.SHARED_LISTS.GET_ALL}`,
|
|
325
|
+
GET: (name) => `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.SHARED_LISTS.GET(name)}`,
|
|
326
|
+
CREATE: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.SHARED_LISTS.CREATE}`,
|
|
327
|
+
UPDATE: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.SHARED_LISTS.UPDATE}`,
|
|
328
|
+
DELETE: (name) => `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.SHARED_LISTS.DELETE(name)}`,
|
|
329
|
+
ACTIONS: {
|
|
330
|
+
SYNC: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.SHARED_LISTS.ACTIONS.SYNC}`,
|
|
331
|
+
},
|
|
332
|
+
},
|
|
322
333
|
TORRENT_BLOCKER: {
|
|
323
334
|
GET_REPORTS: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.TORRENT_BLOCKER.GET_REPORTS}`,
|
|
324
335
|
GET_REPORTS_STATS: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.TORRENT_BLOCKER.GET_REPORTS_STATS}`,
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./clone-node-plugin.command"), exports);
|
|
18
18
|
__exportStar(require("./reorder.command"), exports);
|
|
19
|
+
__exportStar(require("./sync-node-plugin.command"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SyncNodePluginCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
var SyncNodePluginCommand;
|
|
8
|
+
(function (SyncNodePluginCommand) {
|
|
9
|
+
SyncNodePluginCommand.url = api_1.REST_API.NODE_PLUGINS.ACTIONS.SYNC;
|
|
10
|
+
SyncNodePluginCommand.TSQ_url = SyncNodePluginCommand.url;
|
|
11
|
+
SyncNodePluginCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.ACTIONS.SYNC, 'post', 'Sync Node Plugin to nodes', { scope: 'sync', kind: 'write' }, 'Push the current plugin config, including referenced shared lists, to every connected node this plugin is active on.');
|
|
12
|
+
SyncNodePluginCommand.RequestBodySchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.uuid(),
|
|
14
|
+
});
|
|
15
|
+
})(SyncNodePluginCommand || (exports.SyncNodePluginCommand = SyncNodePluginCommand = {}));
|
|
@@ -20,5 +20,6 @@ __exportStar(require("./delete-node-plugin.command"), exports);
|
|
|
20
20
|
__exportStar(require("./executor.command"), exports);
|
|
21
21
|
__exportStar(require("./get-node-plugin.command"), exports);
|
|
22
22
|
__exportStar(require("./get-node-plugins.command"), exports);
|
|
23
|
+
__exportStar(require("./shared-lists"), exports);
|
|
23
24
|
__exportStar(require("./torrent-blocker"), exports);
|
|
24
25
|
__exportStar(require("./update-node-plugin.command"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateSharedListCommand = 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 CreateSharedListCommand;
|
|
9
|
+
(function (CreateSharedListCommand) {
|
|
10
|
+
CreateSharedListCommand.url = api_1.REST_API.NODE_PLUGINS.SHARED_LISTS.CREATE;
|
|
11
|
+
CreateSharedListCommand.TSQ_url = CreateSharedListCommand.url;
|
|
12
|
+
CreateSharedListCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.SHARED_LISTS.CREATE, 'post', 'Create Shared List', { scope: 'shared-lists-create', kind: 'write' });
|
|
13
|
+
CreateSharedListCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
+
name: models_1.SharedListNameSchema,
|
|
15
|
+
config: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
16
|
+
});
|
|
17
|
+
CreateSharedListCommand.ResponseSchema = zod_1.z.object({
|
|
18
|
+
response: models_1.SharedListsSchema,
|
|
19
|
+
});
|
|
20
|
+
})(CreateSharedListCommand || (exports.CreateSharedListCommand = CreateSharedListCommand = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteSharedListCommand = 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 DeleteSharedListCommand;
|
|
9
|
+
(function (DeleteSharedListCommand) {
|
|
10
|
+
DeleteSharedListCommand.url = api_1.REST_API.NODE_PLUGINS.SHARED_LISTS.DELETE;
|
|
11
|
+
DeleteSharedListCommand.TSQ_url = DeleteSharedListCommand.url(':name');
|
|
12
|
+
DeleteSharedListCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.SHARED_LISTS.DELETE(':name'), 'delete', 'Delete Shared List by name', { scope: 'shared-lists-delete', kind: 'write' });
|
|
13
|
+
DeleteSharedListCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
+
name: models_1.SharedListNameSchema,
|
|
15
|
+
});
|
|
16
|
+
})(DeleteSharedListCommand || (exports.DeleteSharedListCommand = DeleteSharedListCommand = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSharedListCommand = 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 GetSharedListCommand;
|
|
9
|
+
(function (GetSharedListCommand) {
|
|
10
|
+
GetSharedListCommand.url = api_1.REST_API.NODE_PLUGINS.SHARED_LISTS.GET;
|
|
11
|
+
GetSharedListCommand.TSQ_url = GetSharedListCommand.url(':name');
|
|
12
|
+
GetSharedListCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.SHARED_LISTS.GET(':name'), 'get', 'Get Shared List by name', { scope: 'shared-lists-get', kind: 'read' });
|
|
13
|
+
GetSharedListCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
+
name: models_1.SharedListNameSchema,
|
|
15
|
+
});
|
|
16
|
+
GetSharedListCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
response: models_1.SharedListsSchema,
|
|
18
|
+
});
|
|
19
|
+
})(GetSharedListCommand || (exports.GetSharedListCommand = GetSharedListCommand = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSharedListsCommand = 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 GetSharedListsCommand;
|
|
9
|
+
(function (GetSharedListsCommand) {
|
|
10
|
+
GetSharedListsCommand.url = api_1.REST_API.NODE_PLUGINS.SHARED_LISTS.GET_ALL;
|
|
11
|
+
GetSharedListsCommand.TSQ_url = GetSharedListsCommand.url;
|
|
12
|
+
GetSharedListsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.SHARED_LISTS.GET_ALL, 'get', 'Get Shared Lists (Preview)', { scope: 'shared-lists-list', kind: 'read' }, 'Returns only the name, type and item count of every shared list. Use "Get Shared List by name" to fetch the items themselves.');
|
|
13
|
+
GetSharedListsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
response: zod_1.z.object({
|
|
15
|
+
total: zod_1.z.number(),
|
|
16
|
+
sharedLists: zod_1.z.array(models_1.SharedListPreviewSchema),
|
|
17
|
+
}),
|
|
18
|
+
});
|
|
19
|
+
})(GetSharedListsCommand || (exports.GetSharedListsCommand = GetSharedListsCommand = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
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("./create-shared-list.command"), exports);
|
|
18
|
+
__exportStar(require("./delete-shared-list.command"), exports);
|
|
19
|
+
__exportStar(require("./get-shared-list.command"), exports);
|
|
20
|
+
__exportStar(require("./get-shared-lists.command"), exports);
|
|
21
|
+
__exportStar(require("./sync-shared-list.command"), exports);
|
|
22
|
+
__exportStar(require("./update-shared-list.command"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SyncSharedListCommand = 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 SyncSharedListCommand;
|
|
9
|
+
(function (SyncSharedListCommand) {
|
|
10
|
+
SyncSharedListCommand.url = api_1.REST_API.NODE_PLUGINS.SHARED_LISTS.ACTIONS.SYNC;
|
|
11
|
+
SyncSharedListCommand.TSQ_url = SyncSharedListCommand.url;
|
|
12
|
+
SyncSharedListCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.SHARED_LISTS.ACTIONS.SYNC, 'post', 'Sync Shared List to nodes', { scope: 'shared-lists-sync', kind: 'write' }, 'Push every plugin referencing this shared list to the nodes it is active on.');
|
|
13
|
+
SyncSharedListCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
+
name: models_1.SharedListNameSchema,
|
|
15
|
+
});
|
|
16
|
+
})(SyncSharedListCommand || (exports.SyncSharedListCommand = SyncSharedListCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateSharedListCommand = 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 UpdateSharedListCommand;
|
|
9
|
+
(function (UpdateSharedListCommand) {
|
|
10
|
+
UpdateSharedListCommand.url = api_1.REST_API.NODE_PLUGINS.SHARED_LISTS.UPDATE;
|
|
11
|
+
UpdateSharedListCommand.TSQ_url = UpdateSharedListCommand.url;
|
|
12
|
+
UpdateSharedListCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.SHARED_LISTS.UPDATE, 'patch', 'Update Shared List', { scope: 'shared-lists-update', kind: 'write' });
|
|
13
|
+
UpdateSharedListCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
+
name: models_1.SharedListNameSchema,
|
|
15
|
+
config: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
16
|
+
});
|
|
17
|
+
UpdateSharedListCommand.ResponseSchema = zod_1.z.object({
|
|
18
|
+
response: models_1.SharedListsSchema,
|
|
19
|
+
});
|
|
20
|
+
})(UpdateSharedListCommand || (exports.UpdateSharedListCommand = UpdateSharedListCommand = {}));
|
|
@@ -1225,4 +1225,49 @@ exports.ERRORS = {
|
|
|
1225
1225
|
message: 'Node integration name already exists',
|
|
1226
1226
|
httpCode: 400,
|
|
1227
1227
|
},
|
|
1228
|
+
SHARED_LIST_NOT_FOUND: {
|
|
1229
|
+
code: 'A245',
|
|
1230
|
+
message: 'Shared list not found',
|
|
1231
|
+
httpCode: 404,
|
|
1232
|
+
},
|
|
1233
|
+
SHARED_LIST_NAME_ALREADY_EXISTS: {
|
|
1234
|
+
code: 'A246',
|
|
1235
|
+
message: 'Shared list name already exists',
|
|
1236
|
+
httpCode: 400,
|
|
1237
|
+
},
|
|
1238
|
+
GET_ALL_SHARED_LISTS_ERROR: {
|
|
1239
|
+
code: 'A247',
|
|
1240
|
+
message: 'Get all shared lists error',
|
|
1241
|
+
httpCode: 500,
|
|
1242
|
+
},
|
|
1243
|
+
GET_SHARED_LIST_BY_NAME_ERROR: {
|
|
1244
|
+
code: 'A248',
|
|
1245
|
+
message: 'Get shared list by name error',
|
|
1246
|
+
httpCode: 500,
|
|
1247
|
+
},
|
|
1248
|
+
CREATE_SHARED_LIST_ERROR: {
|
|
1249
|
+
code: 'A249',
|
|
1250
|
+
message: 'Create shared list error',
|
|
1251
|
+
httpCode: 500,
|
|
1252
|
+
},
|
|
1253
|
+
UPDATE_SHARED_LIST_ERROR: {
|
|
1254
|
+
code: 'A250',
|
|
1255
|
+
message: 'Update shared list error',
|
|
1256
|
+
httpCode: 500,
|
|
1257
|
+
},
|
|
1258
|
+
DELETE_SHARED_LIST_ERROR: {
|
|
1259
|
+
code: 'A251',
|
|
1260
|
+
message: 'Delete shared list error',
|
|
1261
|
+
httpCode: 500,
|
|
1262
|
+
},
|
|
1263
|
+
INVALID_SHARED_LIST_CONFIG: {
|
|
1264
|
+
code: 'A252',
|
|
1265
|
+
message: 'Invalid shared list config',
|
|
1266
|
+
httpCode: 400,
|
|
1267
|
+
withMessage: (message) => ({
|
|
1268
|
+
code: 'A252',
|
|
1269
|
+
message,
|
|
1270
|
+
httpCode: 400,
|
|
1271
|
+
}),
|
|
1272
|
+
},
|
|
1228
1273
|
};
|
|
@@ -40,6 +40,7 @@ __exportStar(require("./nodes.schema"), exports);
|
|
|
40
40
|
__exportStar(require("./remnawave-settings"), exports);
|
|
41
41
|
__exportStar(require("./resolved-proxy-config.schema"), exports);
|
|
42
42
|
__exportStar(require("./response-rules"), exports);
|
|
43
|
+
__exportStar(require("./shared-list.schema"), exports);
|
|
43
44
|
__exportStar(require("./snippets.schema"), exports);
|
|
44
45
|
__exportStar(require("./subscripion-page-config.schema"), exports);
|
|
45
46
|
__exportStar(require("./subscription-info.schema"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
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.SharedListPreviewSchema = exports.SharedListsSchema = exports.SharedListNameSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
exports.SharedListNameSchema = zod_1.default
|
|
9
|
+
.string()
|
|
10
|
+
.min(2, 'Name must be at least 2 characters')
|
|
11
|
+
.max(255, 'Name must be less than 255 characters')
|
|
12
|
+
.regex(/^[A-Za-z0-9_-]+$/, 'Name can only contain letters, numbers, underscores and dashes. The "ext:" prefix is added automatically');
|
|
13
|
+
exports.SharedListsSchema = zod_1.default.object({
|
|
14
|
+
name: exports.SharedListNameSchema,
|
|
15
|
+
config: zod_1.default.record(zod_1.default.string(), zod_1.default.unknown()),
|
|
16
|
+
});
|
|
17
|
+
exports.SharedListPreviewSchema = zod_1.default.object({
|
|
18
|
+
name: exports.SharedListNameSchema,
|
|
19
|
+
type: zod_1.default.string(),
|
|
20
|
+
itemsCount: zod_1.default.number(),
|
|
21
|
+
});
|
package/package.json
CHANGED