@remnawave/backend-contract 2.3.8 → 2.3.10
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 +3 -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 +3 -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 +3 -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/subscription-template.d.ts +3 -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 +12 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +12 -0
- package/build/backend/commands/config-profiles/actions/index.d.ts +2 -0
- package/build/backend/commands/config-profiles/actions/index.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/actions/index.js +17 -0
- package/build/backend/commands/config-profiles/actions/reorder.command.d.ts +278 -0
- package/build/backend/commands/config-profiles/actions/reorder.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/actions/reorder.command.js +25 -0
- package/build/backend/commands/config-profiles/create-config-profile.command.d.ts +5 -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 +5 -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 +5 -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 +7 -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/update-config-profile.command.d.ts +5 -0
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/actions/index.d.ts +2 -0
- package/build/backend/commands/external-squads/actions/index.d.ts.map +1 -0
- package/build/backend/commands/external-squads/actions/index.js +17 -0
- package/build/backend/commands/external-squads/actions/reorder.command.d.ts +436 -0
- package/build/backend/commands/external-squads/actions/reorder.command.d.ts.map +1 -0
- package/build/backend/commands/external-squads/actions/reorder.command.js +25 -0
- package/build/backend/commands/external-squads/create-external-squad.command.d.ts +5 -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 +5 -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 +7 -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/update-external-squad.command.d.ts +5 -0
- package/build/backend/commands/external-squads/update-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/actions/index.d.ts +2 -0
- package/build/backend/commands/internal-squads/actions/index.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/actions/index.js +17 -0
- package/build/backend/commands/internal-squads/actions/reorder.command.d.ts +258 -0
- package/build/backend/commands/internal-squads/actions/reorder.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/actions/reorder.command.js +25 -0
- package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts +5 -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-by-uuid.d.ts +5 -0
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts +7 -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/update-internal-squad.command.d.ts +5 -0
- package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/disable.command.d.ts +4 -4
- package/build/backend/commands/nodes/actions/enable.command.d.ts +4 -4
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +4 -4
- package/build/backend/commands/nodes/create.command.d.ts +4 -4
- package/build/backend/commands/nodes/get-all.command.d.ts +4 -4
- package/build/backend/commands/nodes/get-one.command.d.ts +4 -4
- package/build/backend/commands/nodes/update.command.d.ts +4 -4
- package/build/backend/commands/subscription-template/actions/index.d.ts +2 -0
- package/build/backend/commands/subscription-template/actions/index.d.ts.map +1 -0
- package/build/backend/commands/subscription-template/actions/index.js +17 -0
- package/build/backend/commands/subscription-template/actions/reorder.command.d.ts +120 -0
- package/build/backend/commands/subscription-template/actions/reorder.command.d.ts.map +1 -0
- package/build/backend/commands/subscription-template/actions/reorder.command.js +25 -0
- package/build/backend/commands/subscription-template/create-template.command.d.ts +5 -0
- package/build/backend/commands/subscription-template/create-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/create-template.command.js +4 -10
- package/build/backend/commands/subscription-template/get-template.command.d.ts +5 -0
- package/build/backend/commands/subscription-template/get-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/get-template.command.js +3 -9
- package/build/backend/commands/subscription-template/get-templates.command.d.ts +7 -0
- package/build/backend/commands/subscription-template/get-templates.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/get-templates.command.js +3 -9
- 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/update-template.command.d.ts +5 -0
- package/build/backend/commands/subscription-template/update-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/update-template.command.js +3 -9
- package/build/backend/constants/errors/errors.d.ts +5 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +5 -0
- package/build/backend/models/config-profile.schema.d.ts +3 -0
- package/build/backend/models/config-profile.schema.d.ts.map +1 -1
- package/build/backend/models/config-profile.schema.js +1 -0
- package/build/backend/models/external-squad.schema.d.ts +3 -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 +3 -0
- package/build/backend/models/internal-squad.schema.d.ts.map +1 -1
- package/build/backend/models/internal-squad.schema.js +1 -0
- package/build/backend/models/nodes.schema.d.ts +2 -2
- package/build/backend/models/subscription-template.schema.d.ts +31 -0
- package/build/backend/models/subscription-template.schema.d.ts.map +1 -0
- package/build/backend/models/subscription-template.schema.js +16 -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/subscription-template.js +4 -0
- package/build/frontend/api/routes.js +12 -0
- package/build/frontend/commands/config-profiles/actions/index.js +17 -0
- package/build/frontend/commands/config-profiles/actions/reorder.command.js +25 -0
- package/build/frontend/commands/config-profiles/index.js +1 -0
- package/build/frontend/commands/external-squads/actions/index.js +17 -0
- package/build/frontend/commands/external-squads/actions/reorder.command.js +25 -0
- package/build/frontend/commands/external-squads/index.js +1 -0
- package/build/frontend/commands/internal-squads/actions/index.js +17 -0
- package/build/frontend/commands/internal-squads/actions/reorder.command.js +25 -0
- package/build/frontend/commands/internal-squads/index.js +1 -0
- package/build/frontend/commands/subscription-template/actions/index.js +17 -0
- package/build/frontend/commands/subscription-template/actions/reorder.command.js +25 -0
- package/build/frontend/commands/subscription-template/create-template.command.js +4 -10
- package/build/frontend/commands/subscription-template/get-template.command.js +3 -9
- package/build/frontend/commands/subscription-template/get-templates.command.js +3 -9
- package/build/frontend/commands/subscription-template/index.js +1 -0
- package/build/frontend/commands/subscription-template/update-template.command.js +3 -9
- package/build/frontend/constants/errors/errors.js +5 -0
- package/build/frontend/models/config-profile.schema.js +1 -0
- 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 +1 -0
- package/build/frontend/models/subscription-template.schema.js +16 -0
- package/package.json +1 -1
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateSubscriptionTemplateCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const api_1 = require("../../api");
|
|
6
5
|
const constants_1 = require("../../constants");
|
|
7
|
-
const
|
|
6
|
+
const api_1 = require("../../api");
|
|
7
|
+
const models_1 = require("../../models");
|
|
8
8
|
var CreateSubscriptionTemplateCommand;
|
|
9
9
|
(function (CreateSubscriptionTemplateCommand) {
|
|
10
10
|
CreateSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.CREATE;
|
|
11
11
|
CreateSubscriptionTemplateCommand.TSQ_url = CreateSubscriptionTemplateCommand.url;
|
|
12
|
-
CreateSubscriptionTemplateCommand.endpointDetails = (0,
|
|
12
|
+
CreateSubscriptionTemplateCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.CREATE, 'post', 'Create subscription template');
|
|
13
13
|
CreateSubscriptionTemplateCommand.RequestSchema = zod_1.z.object({
|
|
14
14
|
name: zod_1.z
|
|
15
15
|
.string()
|
|
@@ -19,12 +19,6 @@ var CreateSubscriptionTemplateCommand;
|
|
|
19
19
|
templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
|
20
20
|
});
|
|
21
21
|
CreateSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
|
|
22
|
-
response:
|
|
23
|
-
uuid: zod_1.z.string().uuid(),
|
|
24
|
-
name: zod_1.z.string(),
|
|
25
|
-
templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
|
26
|
-
templateJson: zod_1.z.nullable(zod_1.z.unknown()),
|
|
27
|
-
encodedTemplateYaml: zod_1.z.nullable(zod_1.z.string()),
|
|
28
|
-
}),
|
|
22
|
+
response: models_1.SubscriptionTemplateSchema,
|
|
29
23
|
});
|
|
30
24
|
})(CreateSubscriptionTemplateCommand || (exports.CreateSubscriptionTemplateCommand = CreateSubscriptionTemplateCommand = {}));
|
|
@@ -14,6 +14,7 @@ export declare namespace GetSubscriptionTemplateCommand {
|
|
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
|
15
15
|
response: z.ZodObject<{
|
|
16
16
|
uuid: z.ZodString;
|
|
17
|
+
viewPosition: z.ZodNumber;
|
|
17
18
|
name: z.ZodString;
|
|
18
19
|
templateType: z.ZodNativeEnum<{
|
|
19
20
|
readonly XRAY_JSON: "XRAY_JSON";
|
|
@@ -28,12 +29,14 @@ export declare namespace GetSubscriptionTemplateCommand {
|
|
|
28
29
|
}, "strip", z.ZodTypeAny, {
|
|
29
30
|
uuid: string;
|
|
30
31
|
name: string;
|
|
32
|
+
viewPosition: number;
|
|
31
33
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
32
34
|
encodedTemplateYaml: string | null;
|
|
33
35
|
templateJson?: unknown;
|
|
34
36
|
}, {
|
|
35
37
|
uuid: string;
|
|
36
38
|
name: string;
|
|
39
|
+
viewPosition: number;
|
|
37
40
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
38
41
|
encodedTemplateYaml: string | null;
|
|
39
42
|
templateJson?: unknown;
|
|
@@ -42,6 +45,7 @@ export declare namespace GetSubscriptionTemplateCommand {
|
|
|
42
45
|
response: {
|
|
43
46
|
uuid: string;
|
|
44
47
|
name: string;
|
|
48
|
+
viewPosition: number;
|
|
45
49
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
46
50
|
encodedTemplateYaml: string | null;
|
|
47
51
|
templateJson?: unknown;
|
|
@@ -50,6 +54,7 @@ export declare namespace GetSubscriptionTemplateCommand {
|
|
|
50
54
|
response: {
|
|
51
55
|
uuid: string;
|
|
52
56
|
name: string;
|
|
57
|
+
viewPosition: number;
|
|
53
58
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
54
59
|
encodedTemplateYaml: string | null;
|
|
55
60
|
templateJson?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-template.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/get-template.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,0BAAqC,CAAC;IAC/C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-template.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/get-template.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,0BAAqC,CAAC;IAC/C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -3,23 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GetSubscriptionTemplateCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
|
+
const models_1 = require("../../models");
|
|
6
7
|
const constants_1 = require("../../constants");
|
|
7
|
-
const constants_2 = require("../../constants");
|
|
8
8
|
var GetSubscriptionTemplateCommand;
|
|
9
9
|
(function (GetSubscriptionTemplateCommand) {
|
|
10
10
|
GetSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.GET;
|
|
11
11
|
GetSubscriptionTemplateCommand.TSQ_url = GetSubscriptionTemplateCommand.url(':uuid');
|
|
12
|
-
GetSubscriptionTemplateCommand.endpointDetails = (0,
|
|
12
|
+
GetSubscriptionTemplateCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.GET(':uuid'), 'get', 'Get subscription template by uuid');
|
|
13
13
|
GetSubscriptionTemplateCommand.RequestSchema = zod_1.z.object({
|
|
14
14
|
uuid: zod_1.z.string().uuid(),
|
|
15
15
|
});
|
|
16
16
|
GetSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
-
response:
|
|
18
|
-
uuid: zod_1.z.string().uuid(),
|
|
19
|
-
name: zod_1.z.string(),
|
|
20
|
-
templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
|
21
|
-
templateJson: zod_1.z.nullable(zod_1.z.unknown()),
|
|
22
|
-
encodedTemplateYaml: zod_1.z.nullable(zod_1.z.string()),
|
|
23
|
-
}),
|
|
17
|
+
response: models_1.SubscriptionTemplateSchema,
|
|
24
18
|
});
|
|
25
19
|
})(GetSubscriptionTemplateCommand || (exports.GetSubscriptionTemplateCommand = GetSubscriptionTemplateCommand = {}));
|
|
@@ -8,6 +8,7 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
8
8
|
total: z.ZodNumber;
|
|
9
9
|
templates: z.ZodArray<z.ZodObject<{
|
|
10
10
|
uuid: z.ZodString;
|
|
11
|
+
viewPosition: z.ZodNumber;
|
|
11
12
|
name: z.ZodString;
|
|
12
13
|
templateType: z.ZodNativeEnum<{
|
|
13
14
|
readonly XRAY_JSON: "XRAY_JSON";
|
|
@@ -22,12 +23,14 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
22
23
|
}, "strip", z.ZodTypeAny, {
|
|
23
24
|
uuid: string;
|
|
24
25
|
name: string;
|
|
26
|
+
viewPosition: number;
|
|
25
27
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
26
28
|
encodedTemplateYaml: string | null;
|
|
27
29
|
templateJson?: unknown;
|
|
28
30
|
}, {
|
|
29
31
|
uuid: string;
|
|
30
32
|
name: string;
|
|
33
|
+
viewPosition: number;
|
|
31
34
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
32
35
|
encodedTemplateYaml: string | null;
|
|
33
36
|
templateJson?: unknown;
|
|
@@ -36,6 +39,7 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
36
39
|
templates: {
|
|
37
40
|
uuid: string;
|
|
38
41
|
name: string;
|
|
42
|
+
viewPosition: number;
|
|
39
43
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
40
44
|
encodedTemplateYaml: string | null;
|
|
41
45
|
templateJson?: unknown;
|
|
@@ -45,6 +49,7 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
45
49
|
templates: {
|
|
46
50
|
uuid: string;
|
|
47
51
|
name: string;
|
|
52
|
+
viewPosition: number;
|
|
48
53
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
49
54
|
encodedTemplateYaml: string | null;
|
|
50
55
|
templateJson?: unknown;
|
|
@@ -56,6 +61,7 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
56
61
|
templates: {
|
|
57
62
|
uuid: string;
|
|
58
63
|
name: string;
|
|
64
|
+
viewPosition: number;
|
|
59
65
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
60
66
|
encodedTemplateYaml: string | null;
|
|
61
67
|
templateJson?: unknown;
|
|
@@ -67,6 +73,7 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
67
73
|
templates: {
|
|
68
74
|
uuid: string;
|
|
69
75
|
name: string;
|
|
76
|
+
viewPosition: number;
|
|
70
77
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
71
78
|
encodedTemplateYaml: string | null;
|
|
72
79
|
templateJson?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-templates.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/get-templates.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,GAAG,gCAAyC,CAAC;IACnD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-templates.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/get-templates.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,GAAG,gCAAyC,CAAC;IACnD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -3,23 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GetSubscriptionTemplatesCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
|
+
const models_1 = require("../../models");
|
|
6
7
|
const constants_1 = require("../../constants");
|
|
7
|
-
const constants_2 = require("../../constants");
|
|
8
8
|
var GetSubscriptionTemplatesCommand;
|
|
9
9
|
(function (GetSubscriptionTemplatesCommand) {
|
|
10
10
|
GetSubscriptionTemplatesCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.GET_ALL;
|
|
11
11
|
GetSubscriptionTemplatesCommand.TSQ_url = GetSubscriptionTemplatesCommand.url;
|
|
12
|
-
GetSubscriptionTemplatesCommand.endpointDetails = (0,
|
|
12
|
+
GetSubscriptionTemplatesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.GET_ALL, 'get', 'Get all subscription templates (wihout content)');
|
|
13
13
|
GetSubscriptionTemplatesCommand.ResponseSchema = zod_1.z.object({
|
|
14
14
|
response: zod_1.z.object({
|
|
15
15
|
total: zod_1.z.number(),
|
|
16
|
-
templates: zod_1.z.array(
|
|
17
|
-
uuid: zod_1.z.string().uuid(),
|
|
18
|
-
name: zod_1.z.string(),
|
|
19
|
-
templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
|
20
|
-
templateJson: zod_1.z.nullable(zod_1.z.unknown()),
|
|
21
|
-
encodedTemplateYaml: zod_1.z.nullable(zod_1.z.string()),
|
|
22
|
-
})),
|
|
16
|
+
templates: zod_1.z.array(models_1.SubscriptionTemplateSchema),
|
|
23
17
|
}),
|
|
24
18
|
});
|
|
25
19
|
})(GetSubscriptionTemplatesCommand || (exports.GetSubscriptionTemplatesCommand = GetSubscriptionTemplatesCommand = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wCAAwC,CAAC;AACvD,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wCAAwC,CAAC;AACvD,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./actions"), exports);
|
|
17
18
|
__exportStar(require("./create-template.command"), exports);
|
|
18
19
|
__exportStar(require("./delete-subscription-template.command"), exports);
|
|
19
20
|
__exportStar(require("./get-template.command"), exports);
|
|
@@ -23,6 +23,7 @@ export declare namespace UpdateSubscriptionTemplateCommand {
|
|
|
23
23
|
const ResponseSchema: z.ZodObject<{
|
|
24
24
|
response: z.ZodObject<{
|
|
25
25
|
uuid: z.ZodString;
|
|
26
|
+
viewPosition: z.ZodNumber;
|
|
26
27
|
name: z.ZodString;
|
|
27
28
|
templateType: z.ZodNativeEnum<{
|
|
28
29
|
readonly XRAY_JSON: "XRAY_JSON";
|
|
@@ -37,12 +38,14 @@ export declare namespace UpdateSubscriptionTemplateCommand {
|
|
|
37
38
|
}, "strip", z.ZodTypeAny, {
|
|
38
39
|
uuid: string;
|
|
39
40
|
name: string;
|
|
41
|
+
viewPosition: number;
|
|
40
42
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
41
43
|
encodedTemplateYaml: string | null;
|
|
42
44
|
templateJson?: unknown;
|
|
43
45
|
}, {
|
|
44
46
|
uuid: string;
|
|
45
47
|
name: string;
|
|
48
|
+
viewPosition: number;
|
|
46
49
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
47
50
|
encodedTemplateYaml: string | null;
|
|
48
51
|
templateJson?: unknown;
|
|
@@ -51,6 +54,7 @@ export declare namespace UpdateSubscriptionTemplateCommand {
|
|
|
51
54
|
response: {
|
|
52
55
|
uuid: string;
|
|
53
56
|
name: string;
|
|
57
|
+
viewPosition: number;
|
|
54
58
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
55
59
|
encodedTemplateYaml: string | null;
|
|
56
60
|
templateJson?: unknown;
|
|
@@ -59,6 +63,7 @@ export declare namespace UpdateSubscriptionTemplateCommand {
|
|
|
59
63
|
response: {
|
|
60
64
|
uuid: string;
|
|
61
65
|
name: string;
|
|
66
|
+
viewPosition: number;
|
|
62
67
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
63
68
|
encodedTemplateYaml: string | null;
|
|
64
69
|
templateJson?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-template.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/update-template.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,gCAAwC,CAAC;IAClD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;MAaxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"update-template.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/update-template.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,gCAAwC,CAAC;IAClD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;MAaxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UpdateSubscriptionTemplateCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
|
+
const models_1 = require("../../models");
|
|
6
7
|
const constants_1 = require("../../constants");
|
|
7
|
-
const constants_2 = require("../../constants");
|
|
8
8
|
var UpdateSubscriptionTemplateCommand;
|
|
9
9
|
(function (UpdateSubscriptionTemplateCommand) {
|
|
10
10
|
UpdateSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.UPDATE;
|
|
11
11
|
UpdateSubscriptionTemplateCommand.TSQ_url = UpdateSubscriptionTemplateCommand.url;
|
|
12
|
-
UpdateSubscriptionTemplateCommand.endpointDetails = (0,
|
|
12
|
+
UpdateSubscriptionTemplateCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.UPDATE, 'patch', 'Update subscription template');
|
|
13
13
|
UpdateSubscriptionTemplateCommand.RequestSchema = zod_1.z.object({
|
|
14
14
|
uuid: zod_1.z.string().uuid(),
|
|
15
15
|
name: zod_1.z
|
|
@@ -22,12 +22,6 @@ var UpdateSubscriptionTemplateCommand;
|
|
|
22
22
|
encodedTemplateYaml: zod_1.z.optional(zod_1.z.string()),
|
|
23
23
|
});
|
|
24
24
|
UpdateSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
|
|
25
|
-
response:
|
|
26
|
-
uuid: zod_1.z.string().uuid(),
|
|
27
|
-
name: zod_1.z.string(),
|
|
28
|
-
templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
|
29
|
-
templateJson: zod_1.z.nullable(zod_1.z.unknown()),
|
|
30
|
-
encodedTemplateYaml: zod_1.z.nullable(zod_1.z.string()),
|
|
31
|
-
}),
|
|
25
|
+
response: models_1.SubscriptionTemplateSchema,
|
|
32
26
|
});
|
|
33
27
|
})(UpdateSubscriptionTemplateCommand || (exports.UpdateSubscriptionTemplateCommand = UpdateSubscriptionTemplateCommand = {}));
|
|
@@ -1049,5 +1049,10 @@ export declare const ERRORS: {
|
|
|
1049
1049
|
readonly message: "Update passkey error";
|
|
1050
1050
|
readonly httpCode: 500;
|
|
1051
1051
|
};
|
|
1052
|
+
readonly GENERIC_REORDER_ERROR: {
|
|
1053
|
+
readonly code: "A203";
|
|
1054
|
+
readonly message: "Generic reorder error";
|
|
1055
|
+
readonly httpCode: 500;
|
|
1056
|
+
};
|
|
1052
1057
|
};
|
|
1053
1058
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA0rBN,MAAM
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA0rBN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;CA0B3B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const ConfigProfileSchema: z.ZodObject<{
|
|
3
3
|
uuid: z.ZodString;
|
|
4
|
+
viewPosition: z.ZodNumber;
|
|
4
5
|
name: z.ZodString;
|
|
5
6
|
config: z.ZodUnknown;
|
|
6
7
|
inbounds: z.ZodArray<z.ZodObject<{
|
|
@@ -66,6 +67,7 @@ export declare const ConfigProfileSchema: z.ZodObject<{
|
|
|
66
67
|
createdAt: Date;
|
|
67
68
|
updatedAt: Date;
|
|
68
69
|
name: string;
|
|
70
|
+
viewPosition: number;
|
|
69
71
|
config?: unknown;
|
|
70
72
|
}, {
|
|
71
73
|
inbounds: {
|
|
@@ -87,6 +89,7 @@ export declare const ConfigProfileSchema: z.ZodObject<{
|
|
|
87
89
|
createdAt: string;
|
|
88
90
|
updatedAt: string;
|
|
89
91
|
name: string;
|
|
92
|
+
viewPosition: number;
|
|
90
93
|
config?: unknown;
|
|
91
94
|
}>;
|
|
92
95
|
//# sourceMappingURL=config-profile.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-profile.schema.d.ts","sourceRoot":"","sources":["../../../models/config-profile.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"config-profile.schema.d.ts","sourceRoot":"","sources":["../../../models/config-profile.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsB9B,CAAC"}
|
|
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const config_profile_inbounds_schema_1 = require("./config-profile-inbounds.schema");
|
|
6
6
|
exports.ConfigProfileSchema = zod_1.z.object({
|
|
7
7
|
uuid: zod_1.z.string().uuid(),
|
|
8
|
+
viewPosition: zod_1.z.number().int(),
|
|
8
9
|
name: zod_1.z.string(),
|
|
9
10
|
config: zod_1.z.unknown(),
|
|
10
11
|
inbounds: zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const ExternalSquadSchema: z.ZodObject<{
|
|
3
3
|
uuid: z.ZodString;
|
|
4
|
+
viewPosition: z.ZodNumber;
|
|
4
5
|
name: z.ZodString;
|
|
5
6
|
info: z.ZodObject<{
|
|
6
7
|
membersCount: z.ZodNumber;
|
|
@@ -91,6 +92,7 @@ export declare const ExternalSquadSchema: z.ZodObject<{
|
|
|
91
92
|
createdAt: Date;
|
|
92
93
|
updatedAt: Date;
|
|
93
94
|
name: string;
|
|
95
|
+
viewPosition: number;
|
|
94
96
|
hwidSettings: {
|
|
95
97
|
enabled: boolean;
|
|
96
98
|
fallbackDeviceLimit: number;
|
|
@@ -125,6 +127,7 @@ export declare const ExternalSquadSchema: z.ZodObject<{
|
|
|
125
127
|
createdAt: string;
|
|
126
128
|
updatedAt: string;
|
|
127
129
|
name: string;
|
|
130
|
+
viewPosition: number;
|
|
128
131
|
hwidSettings: {
|
|
129
132
|
enabled: boolean;
|
|
130
133
|
fallbackDeviceLimit: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-squad.schema.d.ts","sourceRoot":"","sources":["../../../models/external-squad.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"external-squad.schema.d.ts","sourceRoot":"","sources":["../../../models/external-squad.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4B9B,CAAC"}
|
|
@@ -7,6 +7,7 @@ const hwid_settings_schema_1 = require("./subscription-settings/hwid-settings.sc
|
|
|
7
7
|
const constants_1 = require("../constants");
|
|
8
8
|
exports.ExternalSquadSchema = zod_1.z.object({
|
|
9
9
|
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
viewPosition: zod_1.z.number().int(),
|
|
10
11
|
name: zod_1.z.string(),
|
|
11
12
|
info: zod_1.z.object({
|
|
12
13
|
membersCount: zod_1.z.number(),
|
|
@@ -23,6 +23,7 @@ export * from './subscription-info.schema';
|
|
|
23
23
|
export * from './subscription-request-history.schema';
|
|
24
24
|
export * from './subscription-settings';
|
|
25
25
|
export * from './subscription-settings.schema';
|
|
26
|
+
export * from './subscription-template.schema';
|
|
26
27
|
export * from './tanstack-query';
|
|
27
28
|
export * from './users.schema';
|
|
28
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"}
|
|
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,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"}
|
|
@@ -39,5 +39,6 @@ __exportStar(require("./subscription-info.schema"), exports);
|
|
|
39
39
|
__exportStar(require("./subscription-request-history.schema"), exports);
|
|
40
40
|
__exportStar(require("./subscription-settings"), exports);
|
|
41
41
|
__exportStar(require("./subscription-settings.schema"), exports);
|
|
42
|
+
__exportStar(require("./subscription-template.schema"), exports);
|
|
42
43
|
__exportStar(require("./tanstack-query"), exports);
|
|
43
44
|
__exportStar(require("./users.schema"), exports);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const InternalSquadSchema: z.ZodObject<{
|
|
3
3
|
uuid: z.ZodString;
|
|
4
|
+
viewPosition: z.ZodNumber;
|
|
4
5
|
name: z.ZodString;
|
|
5
6
|
info: z.ZodObject<{
|
|
6
7
|
membersCount: z.ZodNumber;
|
|
@@ -57,6 +58,7 @@ export declare const InternalSquadSchema: z.ZodObject<{
|
|
|
57
58
|
createdAt: Date;
|
|
58
59
|
updatedAt: Date;
|
|
59
60
|
name: string;
|
|
61
|
+
viewPosition: number;
|
|
60
62
|
info: {
|
|
61
63
|
membersCount: number;
|
|
62
64
|
inboundsCount: number;
|
|
@@ -76,6 +78,7 @@ export declare const InternalSquadSchema: z.ZodObject<{
|
|
|
76
78
|
createdAt: string;
|
|
77
79
|
updatedAt: string;
|
|
78
80
|
name: string;
|
|
81
|
+
viewPosition: number;
|
|
79
82
|
info: {
|
|
80
83
|
membersCount: number;
|
|
81
84
|
inboundsCount: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal-squad.schema.d.ts","sourceRoot":"","sources":["../../../models/internal-squad.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"internal-squad.schema.d.ts","sourceRoot":"","sources":["../../../models/internal-squad.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoB9B,CAAC"}
|
|
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const config_profile_inbounds_schema_1 = require("./config-profile-inbounds.schema");
|
|
6
6
|
exports.InternalSquadSchema = zod_1.z.object({
|
|
7
7
|
uuid: zod_1.z.string().uuid(),
|
|
8
|
+
viewPosition: zod_1.z.number().int(),
|
|
8
9
|
name: zod_1.z.string(),
|
|
9
10
|
info: zod_1.z.object({
|
|
10
11
|
membersCount: zod_1.z.number(),
|
|
@@ -120,9 +120,9 @@ export declare const NodesSchema: z.ZodObject<{
|
|
|
120
120
|
} | null;
|
|
121
121
|
name: string;
|
|
122
122
|
port: number | null;
|
|
123
|
+
viewPosition: number;
|
|
123
124
|
countryCode: string;
|
|
124
125
|
trafficLimitBytes: number | null;
|
|
125
|
-
viewPosition: number;
|
|
126
126
|
address: string;
|
|
127
127
|
isDisabled: boolean;
|
|
128
128
|
isConnected: boolean;
|
|
@@ -171,9 +171,9 @@ export declare const NodesSchema: z.ZodObject<{
|
|
|
171
171
|
} | null;
|
|
172
172
|
name: string;
|
|
173
173
|
port: number | null;
|
|
174
|
+
viewPosition: number;
|
|
174
175
|
countryCode: string;
|
|
175
176
|
trafficLimitBytes: number | null;
|
|
176
|
-
viewPosition: number;
|
|
177
177
|
address: string;
|
|
178
178
|
isDisabled: boolean;
|
|
179
179
|
isConnected: boolean;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const SubscriptionTemplateSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
viewPosition: z.ZodNumber;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
templateType: z.ZodNativeEnum<{
|
|
7
|
+
readonly XRAY_JSON: "XRAY_JSON";
|
|
8
|
+
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
9
|
+
readonly MIHOMO: "MIHOMO";
|
|
10
|
+
readonly STASH: "STASH";
|
|
11
|
+
readonly CLASH: "CLASH";
|
|
12
|
+
readonly SINGBOX: "SINGBOX";
|
|
13
|
+
}>;
|
|
14
|
+
templateJson: z.ZodNullable<z.ZodUnknown>;
|
|
15
|
+
encodedTemplateYaml: z.ZodNullable<z.ZodString>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
uuid: string;
|
|
18
|
+
name: string;
|
|
19
|
+
viewPosition: number;
|
|
20
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
21
|
+
encodedTemplateYaml: string | null;
|
|
22
|
+
templateJson?: unknown;
|
|
23
|
+
}, {
|
|
24
|
+
uuid: string;
|
|
25
|
+
name: string;
|
|
26
|
+
viewPosition: number;
|
|
27
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
28
|
+
encodedTemplateYaml: string | null;
|
|
29
|
+
templateJson?: unknown;
|
|
30
|
+
}>;
|
|
31
|
+
//# sourceMappingURL=subscription-template.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-template.schema.d.ts","sourceRoot":"","sources":["../../../models/subscription-template.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOrC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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.SubscriptionTemplateSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const constants_1 = require("../constants");
|
|
9
|
+
exports.SubscriptionTemplateSchema = zod_1.default.object({
|
|
10
|
+
uuid: zod_1.default.string().uuid(),
|
|
11
|
+
viewPosition: zod_1.default.number().int(),
|
|
12
|
+
name: zod_1.default.string(),
|
|
13
|
+
templateType: zod_1.default.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
|
14
|
+
templateJson: zod_1.default.nullable(zod_1.default.unknown()),
|
|
15
|
+
encodedTemplateYaml: zod_1.default.nullable(zod_1.default.string()),
|
|
16
|
+
});
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CONFIG_PROFILES_ROUTES = exports.CONFIG_PROFILES_CONTROLLER = void 0;
|
|
4
4
|
exports.CONFIG_PROFILES_CONTROLLER = 'config-profiles';
|
|
5
|
+
const ACTIONS_ROUTE = 'actions';
|
|
5
6
|
exports.CONFIG_PROFILES_ROUTES = {
|
|
6
7
|
GET: '', // Get list of all config profiles // get
|
|
7
8
|
CREATE: '', // Create new config profile // post
|
|
@@ -11,4 +12,7 @@ exports.CONFIG_PROFILES_ROUTES = {
|
|
|
11
12
|
GET_INBOUNDS_BY_PROFILE_UUID: (uuid) => `${uuid}/inbounds`, // Get list of all inbounds by config profile uuid // get
|
|
12
13
|
GET_COMPUTED_CONFIG_BY_PROFILE_UUID: (uuid) => `${uuid}/computed-config`, // Get computed config by config profile uuid // get
|
|
13
14
|
GET_ALL_INBOUNDS: 'inbounds', // Get list of all inbounds // get
|
|
15
|
+
ACTIONS: {
|
|
16
|
+
REORDER: `${ACTIONS_ROUTE}/reorder`,
|
|
17
|
+
},
|
|
14
18
|
};
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EXTERNAL_SQUADS_ROUTES = exports.EXTERNAL_SQUADS_CONTROLLER = void 0;
|
|
4
4
|
exports.EXTERNAL_SQUADS_CONTROLLER = 'external-squads';
|
|
5
5
|
const BULK_ACTIONS_ROUTE = 'bulk-actions';
|
|
6
|
+
const ACTIONS_ROUTE = 'actions';
|
|
6
7
|
exports.EXTERNAL_SQUADS_ROUTES = {
|
|
7
8
|
GET: '', // Get list of all external squads // get
|
|
8
9
|
CREATE: '', // Create new external squad // post
|
|
@@ -13,4 +14,7 @@ exports.EXTERNAL_SQUADS_ROUTES = {
|
|
|
13
14
|
ADD_USERS: (uuid) => `${uuid}/${BULK_ACTIONS_ROUTE}/add-users`, // Add users to external squad // post
|
|
14
15
|
REMOVE_USERS: (uuid) => `${uuid}/${BULK_ACTIONS_ROUTE}/remove-users`, // Remove users from external squad // delete
|
|
15
16
|
},
|
|
17
|
+
ACTIONS: {
|
|
18
|
+
REORDER: `${ACTIONS_ROUTE}/reorder`,
|
|
19
|
+
},
|
|
16
20
|
};
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.INTERNAL_SQUADS_ROUTES = exports.INTERNAL_SQUADS_CONTROLLER = void 0;
|
|
4
4
|
exports.INTERNAL_SQUADS_CONTROLLER = 'internal-squads';
|
|
5
5
|
const BULK_ACTIONS_ROUTE = 'bulk-actions';
|
|
6
|
+
const ACTIONS_ROUTE = 'actions';
|
|
6
7
|
exports.INTERNAL_SQUADS_ROUTES = {
|
|
7
8
|
GET: '', // Get list of all internal squads // get
|
|
8
9
|
CREATE: '', // Create new internal squad // post
|
|
@@ -14,4 +15,7 @@ exports.INTERNAL_SQUADS_ROUTES = {
|
|
|
14
15
|
ADD_USERS: (uuid) => `${uuid}/${BULK_ACTIONS_ROUTE}/add-users`, // Add users to internal squad // post
|
|
15
16
|
REMOVE_USERS: (uuid) => `${uuid}/${BULK_ACTIONS_ROUTE}/remove-users`, // Remove users from internal squad // delete
|
|
16
17
|
},
|
|
18
|
+
ACTIONS: {
|
|
19
|
+
REORDER: `${ACTIONS_ROUTE}/reorder`,
|
|
20
|
+
},
|
|
17
21
|
};
|
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SUBSCRIPTION_TEMPLATE_ROUTES = exports.SUBSCRIPTION_TEMPLATE_CONTROLLER = void 0;
|
|
4
4
|
exports.SUBSCRIPTION_TEMPLATE_CONTROLLER = 'subscription-templates';
|
|
5
|
+
const ACTIONS_ROUTE = 'actions';
|
|
5
6
|
exports.SUBSCRIPTION_TEMPLATE_ROUTES = {
|
|
6
7
|
GET_ALL: '', // get
|
|
7
8
|
GET: (uuid) => `${uuid}`, // get
|
|
8
9
|
UPDATE: '', // patch
|
|
9
10
|
DELETE: (uuid) => `${uuid}`, // delete
|
|
10
11
|
CREATE: '', // post
|
|
12
|
+
ACTIONS: {
|
|
13
|
+
REORDER: `${ACTIONS_ROUTE}/reorder`,
|
|
14
|
+
},
|
|
11
15
|
};
|