@remnawave/backend-contract 3.4.9 → 3.4.11
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/config-profiles.d.ts +4 -0
- package/build/backend/api/controllers/config-profiles.d.ts.map +1 -1
- package/build/backend/api/controllers/config-profiles.js +4 -0
- package/build/backend/api/controllers/external-squads.d.ts +4 -0
- package/build/backend/api/controllers/external-squads.d.ts.map +1 -1
- package/build/backend/api/controllers/external-squads.js +4 -0
- package/build/backend/api/controllers/internal-squads.d.ts +4 -0
- package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
- package/build/backend/api/controllers/internal-squads.js +4 -0
- package/build/backend/api/controllers/node-plugins.d.ts +6 -2
- package/build/backend/api/controllers/node-plugins.d.ts.map +1 -1
- package/build/backend/api/controllers/node-plugins.js +6 -2
- package/build/backend/api/controllers/subscription-page-configs.d.ts +4 -0
- package/build/backend/api/controllers/subscription-page-configs.d.ts.map +1 -1
- package/build/backend/api/controllers/subscription-page-configs.js +4 -0
- package/build/backend/api/controllers/subscription-template.d.ts +4 -0
- package/build/backend/api/controllers/subscription-template.d.ts.map +1 -1
- package/build/backend/api/controllers/subscription-template.js +4 -0
- package/build/backend/api/routes.d.ts +26 -2
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +26 -2
- package/build/backend/commands/config-profiles/actions/reorder.command.d.ts +1 -0
- package/build/backend/commands/config-profiles/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/create-config-profile.command.d.ts +1 -0
- package/build/backend/commands/config-profiles/create-config-profile.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.d.ts +1 -0
- package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts +1 -0
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts +1 -0
- package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/index.d.ts +1 -0
- package/build/backend/commands/config-profiles/index.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/index.js +1 -0
- package/build/backend/commands/config-profiles/tags/get-config-profiles-tags.command.d.ts +13 -0
- package/build/backend/commands/config-profiles/tags/get-config-profiles-tags.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/tags/get-config-profiles-tags.command.js +17 -0
- package/build/backend/commands/config-profiles/tags/index.d.ts +3 -0
- package/build/backend/commands/config-profiles/tags/index.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/tags/index.js +18 -0
- package/build/backend/commands/config-profiles/tags/set-config-profile-tags.command.d.ts +19 -0
- package/build/backend/commands/config-profiles/tags/set-config-profile-tags.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/tags/set-config-profile-tags.command.js +23 -0
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts +1 -0
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/actions/reorder.command.d.ts +1 -0
- package/build/backend/commands/external-squads/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/create-external-squad.command.d.ts +1 -0
- package/build/backend/commands/external-squads/create-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.d.ts +1 -0
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/get-external-squads.command.d.ts +1 -0
- package/build/backend/commands/external-squads/get-external-squads.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/index.d.ts +1 -0
- package/build/backend/commands/external-squads/index.d.ts.map +1 -1
- package/build/backend/commands/external-squads/index.js +1 -0
- package/build/backend/commands/external-squads/tags/get-external-squads-tags.command.d.ts +13 -0
- package/build/backend/commands/external-squads/tags/get-external-squads-tags.command.d.ts.map +1 -0
- package/build/backend/commands/external-squads/tags/get-external-squads-tags.command.js +17 -0
- package/build/backend/commands/external-squads/tags/index.d.ts +3 -0
- package/build/backend/commands/external-squads/tags/index.d.ts.map +1 -0
- package/build/backend/commands/external-squads/tags/index.js +18 -0
- package/build/backend/commands/external-squads/tags/set-external-squad-tags.command.d.ts +19 -0
- package/build/backend/commands/external-squads/tags/set-external-squad-tags.command.d.ts.map +1 -0
- package/build/backend/commands/external-squads/tags/set-external-squad-tags.command.js +23 -0
- package/build/backend/commands/external-squads/update-external-squad.command.d.ts +1 -0
- package/build/backend/commands/external-squads/update-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/actions/reorder.command.d.ts +1 -0
- package/build/backend/commands/internal-squads/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts +1 -0
- package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/get-internal-squad.command.d.ts +1 -0
- package/build/backend/commands/internal-squads/get-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts +1 -0
- package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/index.d.ts +1 -0
- package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/index.js +1 -0
- package/build/backend/commands/internal-squads/tags/get-internal-squads-tags.command.d.ts +13 -0
- package/build/backend/commands/internal-squads/tags/get-internal-squads-tags.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/tags/get-internal-squads-tags.command.js +17 -0
- package/build/backend/commands/internal-squads/tags/index.d.ts +3 -0
- package/build/backend/commands/internal-squads/tags/index.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/tags/index.js +18 -0
- package/build/backend/commands/internal-squads/tags/set-internal-squad-tags.command.d.ts +19 -0
- package/build/backend/commands/internal-squads/tags/set-internal-squad-tags.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/tags/set-internal-squad-tags.command.js +23 -0
- package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts +1 -0
- package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/actions/clone-node-plugin.command.d.ts +1 -0
- package/build/backend/commands/node-plugins/actions/clone-node-plugin.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/actions/reorder.command.d.ts +1 -0
- package/build/backend/commands/node-plugins/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/create-node-plugin.command.d.ts +1 -0
- package/build/backend/commands/node-plugins/create-node-plugin.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/get-node-plugin.command.d.ts +1 -0
- package/build/backend/commands/node-plugins/get-node-plugin.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/get-node-plugins.command.d.ts +1 -0
- package/build/backend/commands/node-plugins/get-node-plugins.command.d.ts.map +1 -1
- 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/delete-shared-list.command.d.ts +4 -4
- package/build/backend/commands/node-plugins/shared-lists/delete-shared-list.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/shared-lists/delete-shared-list.command.js +3 -3
- package/build/backend/commands/node-plugins/shared-lists/get-shared-list.command.d.ts +4 -4
- package/build/backend/commands/node-plugins/shared-lists/get-shared-list.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/shared-lists/get-shared-list.command.js +3 -3
- package/build/backend/commands/node-plugins/tags/get-node-plugins-tags.command.d.ts +13 -0
- package/build/backend/commands/node-plugins/tags/get-node-plugins-tags.command.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/tags/get-node-plugins-tags.command.js +17 -0
- package/build/backend/commands/node-plugins/tags/index.d.ts +3 -0
- package/build/backend/commands/node-plugins/tags/index.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/tags/index.js +18 -0
- package/build/backend/commands/node-plugins/tags/set-node-plugin-tags.command.d.ts +19 -0
- package/build/backend/commands/node-plugins/tags/set-node-plugin-tags.command.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/tags/set-node-plugin-tags.command.js +23 -0
- package/build/backend/commands/node-plugins/update-node-plugin.command.d.ts +1 -0
- package/build/backend/commands/node-plugins/update-node-plugin.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/actions/clone-subpage-config.command.d.ts +1 -0
- package/build/backend/commands/subscription-page-configs/actions/clone-subpage-config.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/actions/reorder.command.d.ts +1 -0
- package/build/backend/commands/subscription-page-configs/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/create-subpage-config.command.d.ts +1 -0
- package/build/backend/commands/subscription-page-configs/create-subpage-config.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/get-subpage-config.command.d.ts +1 -0
- package/build/backend/commands/subscription-page-configs/get-subpage-config.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/get-subpage-configs.command.d.ts +1 -0
- package/build/backend/commands/subscription-page-configs/get-subpage-configs.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/index.d.ts +1 -0
- package/build/backend/commands/subscription-page-configs/index.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/index.js +1 -0
- package/build/backend/commands/subscription-page-configs/tags/get-subpage-configs-tags.command.d.ts +13 -0
- package/build/backend/commands/subscription-page-configs/tags/get-subpage-configs-tags.command.d.ts.map +1 -0
- package/build/backend/commands/subscription-page-configs/tags/get-subpage-configs-tags.command.js +17 -0
- package/build/backend/commands/subscription-page-configs/tags/index.d.ts +3 -0
- package/build/backend/commands/subscription-page-configs/tags/index.d.ts.map +1 -0
- package/build/backend/commands/subscription-page-configs/tags/index.js +18 -0
- package/build/backend/commands/subscription-page-configs/tags/set-subpage-config-tags.command.d.ts +19 -0
- package/build/backend/commands/subscription-page-configs/tags/set-subpage-config-tags.command.d.ts.map +1 -0
- package/build/backend/commands/subscription-page-configs/tags/set-subpage-config-tags.command.js +23 -0
- package/build/backend/commands/subscription-page-configs/update-subpage-config.command.d.ts +1 -0
- package/build/backend/commands/subscription-page-configs/update-subpage-config.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/actions/reorder.command.d.ts +1 -0
- package/build/backend/commands/subscription-template/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/create-template.command.d.ts +1 -0
- package/build/backend/commands/subscription-template/create-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/get-template.command.d.ts +1 -0
- package/build/backend/commands/subscription-template/get-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/get-templates.command.d.ts +1 -0
- package/build/backend/commands/subscription-template/get-templates.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/index.d.ts +1 -0
- package/build/backend/commands/subscription-template/index.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/index.js +1 -0
- package/build/backend/commands/subscription-template/tags/get-subscription-templates-tags.command.d.ts +13 -0
- package/build/backend/commands/subscription-template/tags/get-subscription-templates-tags.command.d.ts.map +1 -0
- package/build/backend/commands/subscription-template/tags/get-subscription-templates-tags.command.js +17 -0
- package/build/backend/commands/subscription-template/tags/index.d.ts +3 -0
- package/build/backend/commands/subscription-template/tags/index.d.ts.map +1 -0
- package/build/backend/commands/subscription-template/tags/index.js +18 -0
- package/build/backend/commands/subscription-template/tags/set-subscription-template-tags.command.d.ts +19 -0
- package/build/backend/commands/subscription-template/tags/set-subscription-template-tags.command.d.ts.map +1 -0
- package/build/backend/commands/subscription-template/tags/set-subscription-template-tags.command.js +23 -0
- package/build/backend/commands/subscription-template/update-template.command.d.ts +1 -0
- package/build/backend/commands/subscription-template/update-template.command.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.d.ts +10 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +10 -0
- package/build/backend/models/config-profile.schema.d.ts +1 -0
- package/build/backend/models/config-profile.schema.d.ts.map +1 -1
- package/build/backend/models/config-profile.schema.js +3 -4
- package/build/backend/models/external-squad.schema.d.ts +1 -0
- package/build/backend/models/external-squad.schema.d.ts.map +1 -1
- package/build/backend/models/external-squad.schema.js +1 -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/internal-squad.schema.d.ts +1 -0
- package/build/backend/models/internal-squad.schema.d.ts.map +1 -1
- package/build/backend/models/internal-squad.schema.js +3 -4
- package/build/backend/models/node-plugin.schema.d.ts +1 -0
- package/build/backend/models/node-plugin.schema.d.ts.map +1 -1
- package/build/backend/models/node-plugin.schema.js +1 -0
- package/build/backend/models/subscripion-page-config.schema.d.ts +1 -0
- package/build/backend/models/subscripion-page-config.schema.d.ts.map +1 -1
- package/build/backend/models/subscripion-page-config.schema.js +1 -0
- package/build/backend/models/subscription-template.schema.d.ts +1 -0
- package/build/backend/models/subscription-template.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-template.schema.js +1 -0
- package/build/backend/models/tags.schema.d.ts +4 -0
- package/build/backend/models/tags.schema.d.ts.map +1 -0
- package/build/backend/models/tags.schema.js +9 -0
- package/build/frontend/api/controllers/config-profiles.js +4 -0
- package/build/frontend/api/controllers/external-squads.js +4 -0
- package/build/frontend/api/controllers/internal-squads.js +4 -0
- package/build/frontend/api/controllers/node-plugins.js +6 -2
- package/build/frontend/api/controllers/subscription-page-configs.js +4 -0
- package/build/frontend/api/controllers/subscription-template.js +4 -0
- package/build/frontend/api/routes.js +26 -2
- package/build/frontend/commands/config-profiles/index.js +1 -0
- package/build/frontend/commands/config-profiles/tags/get-config-profiles-tags.command.js +17 -0
- package/build/frontend/commands/config-profiles/tags/index.js +18 -0
- package/build/frontend/commands/config-profiles/tags/set-config-profile-tags.command.js +23 -0
- package/build/frontend/commands/external-squads/index.js +1 -0
- package/build/frontend/commands/external-squads/tags/get-external-squads-tags.command.js +17 -0
- package/build/frontend/commands/external-squads/tags/index.js +18 -0
- package/build/frontend/commands/external-squads/tags/set-external-squad-tags.command.js +23 -0
- package/build/frontend/commands/internal-squads/index.js +1 -0
- package/build/frontend/commands/internal-squads/tags/get-internal-squads-tags.command.js +17 -0
- package/build/frontend/commands/internal-squads/tags/index.js +18 -0
- package/build/frontend/commands/internal-squads/tags/set-internal-squad-tags.command.js +23 -0
- package/build/frontend/commands/node-plugins/index.js +1 -0
- package/build/frontend/commands/node-plugins/shared-lists/delete-shared-list.command.js +3 -3
- package/build/frontend/commands/node-plugins/shared-lists/get-shared-list.command.js +3 -3
- package/build/frontend/commands/node-plugins/tags/get-node-plugins-tags.command.js +17 -0
- package/build/frontend/commands/node-plugins/tags/index.js +18 -0
- package/build/frontend/commands/node-plugins/tags/set-node-plugin-tags.command.js +23 -0
- package/build/frontend/commands/subscription-page-configs/index.js +1 -0
- package/build/frontend/commands/subscription-page-configs/tags/get-subpage-configs-tags.command.js +17 -0
- package/build/frontend/commands/subscription-page-configs/tags/index.js +18 -0
- package/build/frontend/commands/subscription-page-configs/tags/set-subpage-config-tags.command.js +23 -0
- package/build/frontend/commands/subscription-template/index.js +1 -0
- package/build/frontend/commands/subscription-template/tags/get-subscription-templates-tags.command.js +17 -0
- package/build/frontend/commands/subscription-template/tags/index.js +18 -0
- package/build/frontend/commands/subscription-template/tags/set-subscription-template-tags.command.js +23 -0
- package/build/frontend/constants/errors/errors.js +10 -0
- package/build/frontend/models/config-profile.schema.js +3 -4
- package/build/frontend/models/external-squad.schema.js +1 -0
- package/build/frontend/models/index.js +1 -0
- package/build/frontend/models/internal-squad.schema.js +3 -4
- package/build/frontend/models/node-plugin.schema.js +1 -0
- package/build/frontend/models/subscripion-page-config.schema.js +1 -0
- package/build/frontend/models/subscription-template.schema.js +1 -0
- package/build/frontend/models/tags.schema.js +9 -0
- package/package.json +1 -1
|
@@ -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("./get-node-plugins-tags.command"), exports);
|
|
18
|
+
__exportStar(require("./set-node-plugin-tags.command"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetNodePluginTagsCommand = 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 SetNodePluginTagsCommand;
|
|
9
|
+
(function (SetNodePluginTagsCommand) {
|
|
10
|
+
SetNodePluginTagsCommand.url = api_1.REST_API.NODE_PLUGINS.TAGS.SET;
|
|
11
|
+
SetNodePluginTagsCommand.TSQ_url = SetNodePluginTagsCommand.url;
|
|
12
|
+
SetNodePluginTagsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.TAGS.SET, 'patch', 'Set tags of Node Plugin', { scope: 'set-tags', kind: 'write' });
|
|
13
|
+
SetNodePluginTagsCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
+
uuid: zod_1.z.uuid(),
|
|
15
|
+
tags: models_1.TagsSchema,
|
|
16
|
+
});
|
|
17
|
+
SetNodePluginTagsCommand.ResponseSchema = zod_1.z.object({
|
|
18
|
+
response: zod_1.z.object({
|
|
19
|
+
uuid: zod_1.z.uuid(),
|
|
20
|
+
tags: zod_1.z.array(zod_1.z.string()),
|
|
21
|
+
}),
|
|
22
|
+
});
|
|
23
|
+
})(SetNodePluginTagsCommand || (exports.SetNodePluginTagsCommand = SetNodePluginTagsCommand = {}));
|
|
@@ -20,3 +20,4 @@ __exportStar(require("./delete-subpage-config.command"), exports);
|
|
|
20
20
|
__exportStar(require("./get-subpage-config.command"), exports);
|
|
21
21
|
__exportStar(require("./get-subpage-configs.command"), exports);
|
|
22
22
|
__exportStar(require("./update-subpage-config.command"), exports);
|
|
23
|
+
__exportStar(require("./tags"), exports);
|
package/build/frontend/commands/subscription-page-configs/tags/get-subpage-configs-tags.command.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSubpageConfigsTagsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
var GetSubpageConfigsTagsCommand;
|
|
8
|
+
(function (GetSubpageConfigsTagsCommand) {
|
|
9
|
+
GetSubpageConfigsTagsCommand.url = api_1.REST_API.SUBSCRIPTION_PAGE_CONFIGS.TAGS.GET;
|
|
10
|
+
GetSubpageConfigsTagsCommand.TSQ_url = GetSubpageConfigsTagsCommand.url;
|
|
11
|
+
GetSubpageConfigsTagsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.TAGS.GET, 'get', 'Get tags of Subpage Configs', { scope: 'list-tags', kind: 'read' });
|
|
12
|
+
GetSubpageConfigsTagsCommand.ResponseSchema = zod_1.z.object({
|
|
13
|
+
response: zod_1.z.object({
|
|
14
|
+
tags: zod_1.z.array(zod_1.z.string()),
|
|
15
|
+
}),
|
|
16
|
+
});
|
|
17
|
+
})(GetSubpageConfigsTagsCommand || (exports.GetSubpageConfigsTagsCommand = GetSubpageConfigsTagsCommand = {}));
|
|
@@ -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("./get-subpage-configs-tags.command"), exports);
|
|
18
|
+
__exportStar(require("./set-subpage-config-tags.command"), exports);
|
package/build/frontend/commands/subscription-page-configs/tags/set-subpage-config-tags.command.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetSubpageConfigTagsCommand = 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 SetSubpageConfigTagsCommand;
|
|
9
|
+
(function (SetSubpageConfigTagsCommand) {
|
|
10
|
+
SetSubpageConfigTagsCommand.url = api_1.REST_API.SUBSCRIPTION_PAGE_CONFIGS.TAGS.SET;
|
|
11
|
+
SetSubpageConfigTagsCommand.TSQ_url = SetSubpageConfigTagsCommand.url;
|
|
12
|
+
SetSubpageConfigTagsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.TAGS.SET, 'patch', 'Set tags of Subpage Config', { scope: 'set-tags', kind: 'write' });
|
|
13
|
+
SetSubpageConfigTagsCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
+
uuid: zod_1.z.uuid(),
|
|
15
|
+
tags: models_1.TagsSchema,
|
|
16
|
+
});
|
|
17
|
+
SetSubpageConfigTagsCommand.ResponseSchema = zod_1.z.object({
|
|
18
|
+
response: zod_1.z.object({
|
|
19
|
+
uuid: zod_1.z.uuid(),
|
|
20
|
+
tags: zod_1.z.array(zod_1.z.string()),
|
|
21
|
+
}),
|
|
22
|
+
});
|
|
23
|
+
})(SetSubpageConfigTagsCommand || (exports.SetSubpageConfigTagsCommand = SetSubpageConfigTagsCommand = {}));
|
|
@@ -20,3 +20,4 @@ __exportStar(require("./delete-subscription-template.command"), exports);
|
|
|
20
20
|
__exportStar(require("./get-template.command"), exports);
|
|
21
21
|
__exportStar(require("./get-templates.command"), exports);
|
|
22
22
|
__exportStar(require("./update-template.command"), exports);
|
|
23
|
+
__exportStar(require("./tags"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSubscriptionTemplatesTagsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
var GetSubscriptionTemplatesTagsCommand;
|
|
8
|
+
(function (GetSubscriptionTemplatesTagsCommand) {
|
|
9
|
+
GetSubscriptionTemplatesTagsCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.TAGS.GET;
|
|
10
|
+
GetSubscriptionTemplatesTagsCommand.TSQ_url = GetSubscriptionTemplatesTagsCommand.url;
|
|
11
|
+
GetSubscriptionTemplatesTagsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.TAGS.GET, 'get', 'Get tags of Subscription Templates', { scope: 'list-tags', kind: 'read' });
|
|
12
|
+
GetSubscriptionTemplatesTagsCommand.ResponseSchema = zod_1.z.object({
|
|
13
|
+
response: zod_1.z.object({
|
|
14
|
+
tags: zod_1.z.array(zod_1.z.string()),
|
|
15
|
+
}),
|
|
16
|
+
});
|
|
17
|
+
})(GetSubscriptionTemplatesTagsCommand || (exports.GetSubscriptionTemplatesTagsCommand = GetSubscriptionTemplatesTagsCommand = {}));
|
|
@@ -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("./get-subscription-templates-tags.command"), exports);
|
|
18
|
+
__exportStar(require("./set-subscription-template-tags.command"), exports);
|
package/build/frontend/commands/subscription-template/tags/set-subscription-template-tags.command.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetSubscriptionTemplateTagsCommand = 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 SetSubscriptionTemplateTagsCommand;
|
|
9
|
+
(function (SetSubscriptionTemplateTagsCommand) {
|
|
10
|
+
SetSubscriptionTemplateTagsCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.TAGS.SET;
|
|
11
|
+
SetSubscriptionTemplateTagsCommand.TSQ_url = SetSubscriptionTemplateTagsCommand.url;
|
|
12
|
+
SetSubscriptionTemplateTagsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.TAGS.SET, 'patch', 'Set tags of Subscription Template', { scope: 'set-tags', kind: 'write' });
|
|
13
|
+
SetSubscriptionTemplateTagsCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
+
uuid: zod_1.z.uuid(),
|
|
15
|
+
tags: models_1.TagsSchema,
|
|
16
|
+
});
|
|
17
|
+
SetSubscriptionTemplateTagsCommand.ResponseSchema = zod_1.z.object({
|
|
18
|
+
response: zod_1.z.object({
|
|
19
|
+
uuid: zod_1.z.uuid(),
|
|
20
|
+
tags: zod_1.z.array(zod_1.z.string()),
|
|
21
|
+
}),
|
|
22
|
+
});
|
|
23
|
+
})(SetSubscriptionTemplateTagsCommand || (exports.SetSubscriptionTemplateTagsCommand = SetSubscriptionTemplateTagsCommand = {}));
|
|
@@ -1280,4 +1280,14 @@ exports.ERRORS = {
|
|
|
1280
1280
|
message: 'Create SSH ticket error',
|
|
1281
1281
|
httpCode: 500,
|
|
1282
1282
|
},
|
|
1283
|
+
GET_ENTITY_TAGS_ERROR: {
|
|
1284
|
+
code: 'A256',
|
|
1285
|
+
message: 'Get tags error',
|
|
1286
|
+
httpCode: 500,
|
|
1287
|
+
},
|
|
1288
|
+
SET_ENTITY_TAGS_ERROR: {
|
|
1289
|
+
code: 'A257',
|
|
1290
|
+
message: 'Set tags error',
|
|
1291
|
+
httpCode: 500,
|
|
1292
|
+
},
|
|
1283
1293
|
};
|
|
@@ -7,6 +7,7 @@ exports.ConfigProfileSchema = zod_1.z.object({
|
|
|
7
7
|
uuid: zod_1.z.uuid(),
|
|
8
8
|
viewPosition: zod_1.z.int(),
|
|
9
9
|
name: zod_1.z.string(),
|
|
10
|
+
tags: zod_1.z.array(zod_1.z.string()),
|
|
10
11
|
config: zod_1.z.unknown(),
|
|
11
12
|
inbounds: zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema),
|
|
12
13
|
nodes: zod_1.z.array(zod_1.z.object({
|
|
@@ -14,8 +15,6 @@ exports.ConfigProfileSchema = zod_1.z.object({
|
|
|
14
15
|
name: zod_1.z.string(),
|
|
15
16
|
countryCode: zod_1.z.string(),
|
|
16
17
|
})),
|
|
17
|
-
createdAt: zod_1.z.iso.datetime()
|
|
18
|
-
|
|
19
|
-
updatedAt: zod_1.z.iso.datetime()
|
|
20
|
-
.transform((str) => new Date(str)),
|
|
18
|
+
createdAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
|
|
19
|
+
updatedAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
|
|
21
20
|
});
|
|
@@ -48,6 +48,7 @@ __exportStar(require("./subscription-request-history.schema"), exports);
|
|
|
48
48
|
__exportStar(require("./subscription-settings"), exports);
|
|
49
49
|
__exportStar(require("./subscription-settings.schema"), exports);
|
|
50
50
|
__exportStar(require("./subscription-template.schema"), exports);
|
|
51
|
+
__exportStar(require("./tags.schema"), exports);
|
|
51
52
|
__exportStar(require("./tanstack-query"), exports);
|
|
52
53
|
__exportStar(require("./torrent-blocker-report.schema"), exports);
|
|
53
54
|
__exportStar(require("./users.schema"), exports);
|
|
@@ -7,13 +7,12 @@ exports.InternalSquadSchema = zod_1.z.object({
|
|
|
7
7
|
uuid: zod_1.z.uuid(),
|
|
8
8
|
viewPosition: zod_1.z.int(),
|
|
9
9
|
name: zod_1.z.string(),
|
|
10
|
+
tags: zod_1.z.array(zod_1.z.string()),
|
|
10
11
|
info: zod_1.z.object({
|
|
11
12
|
membersCount: zod_1.z.number(),
|
|
12
13
|
inboundsCount: zod_1.z.number(),
|
|
13
14
|
}),
|
|
14
15
|
inbounds: zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema),
|
|
15
|
-
createdAt: zod_1.z.iso.datetime()
|
|
16
|
-
|
|
17
|
-
updatedAt: zod_1.z.iso.datetime()
|
|
18
|
-
.transform((str) => new Date(str)),
|
|
16
|
+
createdAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
|
|
17
|
+
updatedAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
|
|
19
18
|
});
|
|
@@ -9,5 +9,6 @@ exports.NodePluginSchema = zod_1.default.object({
|
|
|
9
9
|
uuid: zod_1.default.uuid(),
|
|
10
10
|
viewPosition: zod_1.default.number().int(),
|
|
11
11
|
name: zod_1.default.string(),
|
|
12
|
+
tags: zod_1.default.array(zod_1.default.string()),
|
|
12
13
|
pluginConfig: zod_1.default.nullable(zod_1.default.unknown()),
|
|
13
14
|
});
|
|
@@ -9,5 +9,6 @@ exports.SubscriptionPageConfigSchema = zod_1.default.object({
|
|
|
9
9
|
uuid: zod_1.default.uuid(),
|
|
10
10
|
viewPosition: zod_1.default.number().int(),
|
|
11
11
|
name: zod_1.default.string(),
|
|
12
|
+
tags: zod_1.default.array(zod_1.default.string()),
|
|
12
13
|
config: zod_1.default.nullable(zod_1.default.unknown()),
|
|
13
14
|
});
|
|
@@ -10,6 +10,7 @@ exports.SubscriptionTemplateSchema = zod_1.default.object({
|
|
|
10
10
|
uuid: zod_1.default.uuid(),
|
|
11
11
|
viewPosition: zod_1.default.number().int(),
|
|
12
12
|
name: zod_1.default.string(),
|
|
13
|
+
tags: zod_1.default.array(zod_1.default.string()),
|
|
13
14
|
templateType: zod_1.default.enum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
|
14
15
|
templateJson: zod_1.default.nullable(zod_1.default.unknown()),
|
|
15
16
|
encodedTemplateYaml: zod_1.default.nullable(zod_1.default.string()),
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TagsSchema = exports.TagSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.TagSchema = zod_1.z
|
|
6
|
+
.string()
|
|
7
|
+
.regex(/^[A-Z0-9_:]+$/, 'Tag can only contain uppercase letters, numbers, underscores and colons')
|
|
8
|
+
.max(36, 'Each tag must be less than 36 characters');
|
|
9
|
+
exports.TagsSchema = zod_1.z.array(exports.TagSchema).max(10, 'Maximum 10 tags');
|
package/package.json
CHANGED