@remnawave/backend-contract 3.3.3 → 3.4.1

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.
Files changed (77) hide show
  1. package/build/backend/api/controllers/connections.d.ts +2 -0
  2. package/build/backend/api/controllers/connections.d.ts.map +1 -1
  3. package/build/backend/api/controllers/connections.js +4 -0
  4. package/build/backend/api/controllers/node-plugins.d.ts +11 -0
  5. package/build/backend/api/controllers/node-plugins.d.ts.map +1 -1
  6. package/build/backend/api/controllers/node-plugins.js +12 -0
  7. package/build/backend/api/routes.d.ts +13 -0
  8. package/build/backend/api/routes.d.ts.map +1 -1
  9. package/build/backend/api/routes.js +13 -0
  10. package/build/backend/commands/connections/geocheck-by-node-result.command.d.ts +37 -0
  11. package/build/backend/commands/connections/geocheck-by-node-result.command.d.ts.map +1 -0
  12. package/build/backend/commands/connections/geocheck-by-node-result.command.js +39 -0
  13. package/build/backend/commands/connections/geocheck-by-node.command.d.ts +22 -0
  14. package/build/backend/commands/connections/geocheck-by-node.command.d.ts.map +1 -0
  15. package/build/backend/commands/connections/geocheck-by-node.command.js +29 -0
  16. package/build/backend/commands/connections/index.d.ts +2 -0
  17. package/build/backend/commands/connections/index.d.ts.map +1 -1
  18. package/build/backend/commands/connections/index.js +2 -0
  19. package/build/backend/commands/node-plugins/actions/index.d.ts +1 -0
  20. package/build/backend/commands/node-plugins/actions/index.d.ts.map +1 -1
  21. package/build/backend/commands/node-plugins/actions/index.js +1 -0
  22. package/build/backend/commands/node-plugins/actions/sync-node-plugin.command.d.ts +11 -0
  23. package/build/backend/commands/node-plugins/actions/sync-node-plugin.command.d.ts.map +1 -0
  24. package/build/backend/commands/node-plugins/actions/sync-node-plugin.command.js +15 -0
  25. package/build/backend/commands/node-plugins/index.d.ts +1 -0
  26. package/build/backend/commands/node-plugins/index.d.ts.map +1 -1
  27. package/build/backend/commands/node-plugins/index.js +1 -0
  28. package/build/backend/commands/node-plugins/shared-lists/create-shared-list.command.d.ts +19 -0
  29. package/build/backend/commands/node-plugins/shared-lists/create-shared-list.command.d.ts.map +1 -0
  30. package/build/backend/commands/node-plugins/shared-lists/create-shared-list.command.js +20 -0
  31. package/build/backend/commands/node-plugins/shared-lists/delete-shared-list.command.d.ts +11 -0
  32. package/build/backend/commands/node-plugins/shared-lists/delete-shared-list.command.d.ts.map +1 -0
  33. package/build/backend/commands/node-plugins/shared-lists/delete-shared-list.command.js +16 -0
  34. package/build/backend/commands/node-plugins/shared-lists/get-shared-list.command.d.ts +18 -0
  35. package/build/backend/commands/node-plugins/shared-lists/get-shared-list.command.d.ts.map +1 -0
  36. package/build/backend/commands/node-plugins/shared-lists/get-shared-list.command.js +19 -0
  37. package/build/backend/commands/node-plugins/shared-lists/get-shared-lists.command.d.ts +18 -0
  38. package/build/backend/commands/node-plugins/shared-lists/get-shared-lists.command.d.ts.map +1 -0
  39. package/build/backend/commands/node-plugins/shared-lists/get-shared-lists.command.js +19 -0
  40. package/build/backend/commands/node-plugins/shared-lists/index.d.ts +7 -0
  41. package/build/backend/commands/node-plugins/shared-lists/index.d.ts.map +1 -0
  42. package/build/backend/commands/node-plugins/shared-lists/index.js +22 -0
  43. package/build/backend/commands/node-plugins/shared-lists/sync-shared-list.command.d.ts +11 -0
  44. package/build/backend/commands/node-plugins/shared-lists/sync-shared-list.command.d.ts.map +1 -0
  45. package/build/backend/commands/node-plugins/shared-lists/sync-shared-list.command.js +16 -0
  46. package/build/backend/commands/node-plugins/shared-lists/update-shared-list.command.d.ts +19 -0
  47. package/build/backend/commands/node-plugins/shared-lists/update-shared-list.command.d.ts.map +1 -0
  48. package/build/backend/commands/node-plugins/shared-lists/update-shared-list.command.js +20 -0
  49. package/build/backend/constants/errors/errors.d.ts +45 -0
  50. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  51. package/build/backend/constants/errors/errors.js +45 -0
  52. package/build/backend/models/index.d.ts +1 -0
  53. package/build/backend/models/index.d.ts.map +1 -1
  54. package/build/backend/models/index.js +1 -0
  55. package/build/backend/models/shared-list.schema.d.ts +12 -0
  56. package/build/backend/models/shared-list.schema.d.ts.map +1 -0
  57. package/build/backend/models/shared-list.schema.js +21 -0
  58. package/build/frontend/api/controllers/connections.js +4 -0
  59. package/build/frontend/api/controllers/node-plugins.js +12 -0
  60. package/build/frontend/api/routes.js +13 -0
  61. package/build/frontend/commands/connections/geocheck-by-node-result.command.js +39 -0
  62. package/build/frontend/commands/connections/geocheck-by-node.command.js +29 -0
  63. package/build/frontend/commands/connections/index.js +2 -0
  64. package/build/frontend/commands/node-plugins/actions/index.js +1 -0
  65. package/build/frontend/commands/node-plugins/actions/sync-node-plugin.command.js +15 -0
  66. package/build/frontend/commands/node-plugins/index.js +1 -0
  67. package/build/frontend/commands/node-plugins/shared-lists/create-shared-list.command.js +20 -0
  68. package/build/frontend/commands/node-plugins/shared-lists/delete-shared-list.command.js +16 -0
  69. package/build/frontend/commands/node-plugins/shared-lists/get-shared-list.command.js +19 -0
  70. package/build/frontend/commands/node-plugins/shared-lists/get-shared-lists.command.js +19 -0
  71. package/build/frontend/commands/node-plugins/shared-lists/index.js +22 -0
  72. package/build/frontend/commands/node-plugins/shared-lists/sync-shared-list.command.js +16 -0
  73. package/build/frontend/commands/node-plugins/shared-lists/update-shared-list.command.js +20 -0
  74. package/build/frontend/constants/errors/errors.js +45 -0
  75. package/build/frontend/models/index.js +1 -0
  76. package/build/frontend/models/shared-list.schema.js +21 -0
  77. package/package.json +1 -1
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "3.3.3",
3
+ "version": "3.4.1",
4
4
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/remnawave",