@remnawave/backend-contract 2.2.4 → 2.2.6
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/external-squads.d.ts +13 -0
- package/build/backend/api/controllers/external-squads.d.ts.map +1 -0
- package/build/backend/api/controllers/external-squads.js +16 -0
- package/build/backend/api/controllers/index.d.ts +1 -0
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +1 -0
- package/build/backend/api/controllers-info.d.ts +4 -0
- package/build/backend/api/controllers-info.d.ts.map +1 -1
- package/build/backend/api/controllers-info.js +4 -0
- package/build/backend/api/routes.d.ts +11 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +11 -0
- package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.d.ts +33 -0
- package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.d.ts.map +1 -0
- package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.js +20 -0
- package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.d.ts +33 -0
- package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.d.ts.map +1 -0
- package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.js +20 -0
- package/build/backend/commands/external-squads/bulk-actions/index.d.ts +3 -0
- package/build/backend/commands/external-squads/bulk-actions/index.d.ts.map +1 -0
- package/build/backend/commands/external-squads/bulk-actions/index.js +18 -0
- package/build/backend/commands/external-squads/create-external-squad.command.d.ts +100 -0
- package/build/backend/commands/external-squads/create-external-squad.command.d.ts.map +1 -0
- package/build/backend/commands/external-squads/create-external-squad.command.js +23 -0
- package/build/backend/commands/external-squads/delete-external-squad.command.d.ts +33 -0
- package/build/backend/commands/external-squads/delete-external-squad.command.d.ts.map +1 -0
- package/build/backend/commands/external-squads/delete-external-squad.command.js +20 -0
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.d.ts +100 -0
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.d.ts.map +1 -0
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.js +19 -0
- package/build/backend/commands/external-squads/get-external-squads.command.d.ts +131 -0
- package/build/backend/commands/external-squads/get-external-squads.command.d.ts.map +1 -0
- package/build/backend/commands/external-squads/get-external-squads.command.js +19 -0
- package/build/backend/commands/external-squads/index.d.ts +7 -0
- package/build/backend/commands/external-squads/index.d.ts.map +1 -0
- package/build/backend/commands/external-squads/index.js +22 -0
- package/build/backend/commands/external-squads/update-external-squad.command.d.ts +128 -0
- package/build/backend/commands/external-squads/update-external-squad.command.d.ts.map +1 -0
- package/build/backend/commands/external-squads/update-external-squad.command.js +31 -0
- package/build/backend/commands/index.d.ts +1 -0
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +1 -0
- package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts +11 -11
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts +20 -20
- package/build/backend/commands/subscription-template/create-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/create-template.command.js +5 -1
- package/build/backend/commands/subscription-template/get-templates.command.d.ts +4 -4
- package/build/backend/commands/subscription-template/update-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/update-template.command.js +6 -1
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +7 -0
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts +18 -18
- package/build/backend/commands/users/actions/disable-user.command.d.ts +5 -0
- package/build/backend/commands/users/actions/disable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/enable-user.command.d.ts +5 -0
- package/build/backend/commands/users/actions/enable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +5 -0
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +5 -0
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts +5 -0
- package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-update-users.command.js +3 -0
- package/build/backend/commands/users/create-user.command.d.ts +8 -0
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.js +3 -0
- package/build/backend/commands/users/get-all-users.command.d.ts +7 -0
- package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts +5 -0
- package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +5 -0
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts +5 -0
- package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts +5 -0
- package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +5 -0
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts +5 -0
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.d.ts +10 -0
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.js +3 -0
- package/build/backend/constants/errors/errors.d.ts +55 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +55 -0
- package/build/backend/models/extended-users.schema.d.ts +3 -0
- package/build/backend/models/extended-users.schema.d.ts.map +1 -1
- package/build/backend/models/external-squad.schema.d.ts +56 -0
- package/build/backend/models/external-squad.schema.d.ts.map +1 -0
- package/build/backend/models/external-squad.schema.js +24 -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/response-rules/response-rule-modifications.schema.d.ts +3 -3
- package/build/backend/models/response-rules/response-rule-modifications.schema.js +3 -3
- package/build/backend/models/response-rules/response-rule.schema.d.ts +10 -10
- package/build/backend/models/response-rules/response-rules-config.schema.d.ts +7 -7
- package/build/backend/models/subscription-settings.schema.d.ts +9 -9
- package/build/backend/models/users.schema.d.ts +3 -0
- package/build/backend/models/users.schema.d.ts.map +1 -1
- package/build/backend/models/users.schema.js +1 -0
- package/build/frontend/api/controllers/external-squads.js +16 -0
- package/build/frontend/api/controllers/index.js +1 -0
- package/build/frontend/api/controllers-info.js +4 -0
- package/build/frontend/api/routes.js +11 -0
- package/build/frontend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.js +20 -0
- package/build/frontend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.js +20 -0
- package/build/frontend/commands/external-squads/bulk-actions/index.js +18 -0
- package/build/frontend/commands/external-squads/create-external-squad.command.js +23 -0
- package/build/frontend/commands/external-squads/delete-external-squad.command.js +20 -0
- package/build/frontend/commands/external-squads/get-external-squad-by-uuid.js +19 -0
- package/build/frontend/commands/external-squads/get-external-squads.command.js +19 -0
- package/build/frontend/commands/external-squads/index.js +22 -0
- package/build/frontend/commands/external-squads/update-external-squad.command.js +31 -0
- package/build/frontend/commands/index.js +1 -0
- package/build/frontend/commands/subscription-template/create-template.command.js +5 -1
- package/build/frontend/commands/subscription-template/update-template.command.js +6 -1
- package/build/frontend/commands/users/bulk/bulk-update-users.command.js +3 -0
- package/build/frontend/commands/users/create-user.command.js +3 -0
- package/build/frontend/commands/users/update-user.command.js +3 -0
- package/build/frontend/constants/errors/errors.js +55 -0
- package/build/frontend/models/external-squad.schema.js +24 -0
- package/build/frontend/models/index.js +1 -0
- package/build/frontend/models/response-rules/response-rule-modifications.schema.js +3 -3
- package/build/frontend/models/users.schema.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetExternalSquadsCommand {
|
|
3
|
+
const url: "/api/external-squads/";
|
|
4
|
+
const TSQ_url: "/api/external-squads/";
|
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
|
+
const ResponseSchema: z.ZodObject<{
|
|
7
|
+
response: z.ZodObject<{
|
|
8
|
+
total: z.ZodNumber;
|
|
9
|
+
externalSquads: z.ZodArray<z.ZodObject<{
|
|
10
|
+
uuid: z.ZodString;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
info: z.ZodObject<{
|
|
13
|
+
membersCount: z.ZodNumber;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
membersCount: number;
|
|
16
|
+
}, {
|
|
17
|
+
membersCount: number;
|
|
18
|
+
}>;
|
|
19
|
+
templates: z.ZodArray<z.ZodObject<{
|
|
20
|
+
templateUuid: z.ZodString;
|
|
21
|
+
templateType: z.ZodNativeEnum<{
|
|
22
|
+
readonly XRAY_JSON: "XRAY_JSON";
|
|
23
|
+
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
24
|
+
readonly MIHOMO: "MIHOMO";
|
|
25
|
+
readonly STASH: "STASH";
|
|
26
|
+
readonly CLASH: "CLASH";
|
|
27
|
+
readonly SINGBOX: "SINGBOX";
|
|
28
|
+
}>;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
templateUuid: string;
|
|
31
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
32
|
+
}, {
|
|
33
|
+
templateUuid: string;
|
|
34
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
35
|
+
}>, "many">;
|
|
36
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
37
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
uuid: string;
|
|
40
|
+
createdAt: Date;
|
|
41
|
+
updatedAt: Date;
|
|
42
|
+
name: string;
|
|
43
|
+
info: {
|
|
44
|
+
membersCount: number;
|
|
45
|
+
};
|
|
46
|
+
templates: {
|
|
47
|
+
templateUuid: string;
|
|
48
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
49
|
+
}[];
|
|
50
|
+
}, {
|
|
51
|
+
uuid: string;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
updatedAt: string;
|
|
54
|
+
name: string;
|
|
55
|
+
info: {
|
|
56
|
+
membersCount: number;
|
|
57
|
+
};
|
|
58
|
+
templates: {
|
|
59
|
+
templateUuid: string;
|
|
60
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
61
|
+
}[];
|
|
62
|
+
}>, "many">;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
total: number;
|
|
65
|
+
externalSquads: {
|
|
66
|
+
uuid: string;
|
|
67
|
+
createdAt: Date;
|
|
68
|
+
updatedAt: Date;
|
|
69
|
+
name: string;
|
|
70
|
+
info: {
|
|
71
|
+
membersCount: number;
|
|
72
|
+
};
|
|
73
|
+
templates: {
|
|
74
|
+
templateUuid: string;
|
|
75
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
76
|
+
}[];
|
|
77
|
+
}[];
|
|
78
|
+
}, {
|
|
79
|
+
total: number;
|
|
80
|
+
externalSquads: {
|
|
81
|
+
uuid: string;
|
|
82
|
+
createdAt: string;
|
|
83
|
+
updatedAt: string;
|
|
84
|
+
name: string;
|
|
85
|
+
info: {
|
|
86
|
+
membersCount: number;
|
|
87
|
+
};
|
|
88
|
+
templates: {
|
|
89
|
+
templateUuid: string;
|
|
90
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
91
|
+
}[];
|
|
92
|
+
}[];
|
|
93
|
+
}>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
response: {
|
|
96
|
+
total: number;
|
|
97
|
+
externalSquads: {
|
|
98
|
+
uuid: string;
|
|
99
|
+
createdAt: Date;
|
|
100
|
+
updatedAt: Date;
|
|
101
|
+
name: string;
|
|
102
|
+
info: {
|
|
103
|
+
membersCount: number;
|
|
104
|
+
};
|
|
105
|
+
templates: {
|
|
106
|
+
templateUuid: string;
|
|
107
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
108
|
+
}[];
|
|
109
|
+
}[];
|
|
110
|
+
};
|
|
111
|
+
}, {
|
|
112
|
+
response: {
|
|
113
|
+
total: number;
|
|
114
|
+
externalSquads: {
|
|
115
|
+
uuid: string;
|
|
116
|
+
createdAt: string;
|
|
117
|
+
updatedAt: string;
|
|
118
|
+
name: string;
|
|
119
|
+
info: {
|
|
120
|
+
membersCount: number;
|
|
121
|
+
};
|
|
122
|
+
templates: {
|
|
123
|
+
templateUuid: string;
|
|
124
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
125
|
+
}[];
|
|
126
|
+
}[];
|
|
127
|
+
};
|
|
128
|
+
}>;
|
|
129
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=get-external-squads.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-external-squads.command.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/get-external-squads.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,yBAA+B,CAAC;IACzC,MAAM,OAAO,yBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,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.GetExternalSquadsCommand = 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 GetExternalSquadsCommand;
|
|
9
|
+
(function (GetExternalSquadsCommand) {
|
|
10
|
+
GetExternalSquadsCommand.url = api_1.REST_API.EXTERNAL_SQUADS.GET;
|
|
11
|
+
GetExternalSquadsCommand.TSQ_url = GetExternalSquadsCommand.url;
|
|
12
|
+
GetExternalSquadsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.EXTERNAL_SQUADS_ROUTES.GET, 'get', 'Get all external squads');
|
|
13
|
+
GetExternalSquadsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
response: zod_1.z.object({
|
|
15
|
+
total: zod_1.z.number(),
|
|
16
|
+
externalSquads: zod_1.z.array(models_1.ExternalSquadSchema),
|
|
17
|
+
}),
|
|
18
|
+
});
|
|
19
|
+
})(GetExternalSquadsCommand || (exports.GetExternalSquadsCommand = GetExternalSquadsCommand = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './bulk-actions';
|
|
2
|
+
export * from './create-external-squad.command';
|
|
3
|
+
export * from './delete-external-squad.command';
|
|
4
|
+
export * from './get-external-squad-by-uuid';
|
|
5
|
+
export * from './get-external-squads.command';
|
|
6
|
+
export * from './update-external-squad.command';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,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("./bulk-actions"), exports);
|
|
18
|
+
__exportStar(require("./create-external-squad.command"), exports);
|
|
19
|
+
__exportStar(require("./delete-external-squad.command"), exports);
|
|
20
|
+
__exportStar(require("./get-external-squad-by-uuid"), exports);
|
|
21
|
+
__exportStar(require("./get-external-squads.command"), exports);
|
|
22
|
+
__exportStar(require("./update-external-squad.command"), exports);
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace UpdateExternalSquadCommand {
|
|
3
|
+
const url: "/api/external-squads/";
|
|
4
|
+
const TSQ_url: "/api/external-squads/";
|
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
|
+
const RequestSchema: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
name: z.ZodOptional<z.ZodString>;
|
|
9
|
+
templates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
|
+
templateUuid: z.ZodString;
|
|
11
|
+
templateType: z.ZodNativeEnum<{
|
|
12
|
+
readonly XRAY_JSON: "XRAY_JSON";
|
|
13
|
+
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
14
|
+
readonly MIHOMO: "MIHOMO";
|
|
15
|
+
readonly STASH: "STASH";
|
|
16
|
+
readonly CLASH: "CLASH";
|
|
17
|
+
readonly SINGBOX: "SINGBOX";
|
|
18
|
+
}>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
templateUuid: string;
|
|
21
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
22
|
+
}, {
|
|
23
|
+
templateUuid: string;
|
|
24
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
25
|
+
}>, "many">>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
uuid: string;
|
|
28
|
+
name?: string | undefined;
|
|
29
|
+
templates?: {
|
|
30
|
+
templateUuid: string;
|
|
31
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
32
|
+
}[] | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
uuid: string;
|
|
35
|
+
name?: string | undefined;
|
|
36
|
+
templates?: {
|
|
37
|
+
templateUuid: string;
|
|
38
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
39
|
+
}[] | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
42
|
+
const ResponseSchema: z.ZodObject<{
|
|
43
|
+
response: z.ZodObject<{
|
|
44
|
+
uuid: z.ZodString;
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
info: z.ZodObject<{
|
|
47
|
+
membersCount: z.ZodNumber;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
membersCount: number;
|
|
50
|
+
}, {
|
|
51
|
+
membersCount: number;
|
|
52
|
+
}>;
|
|
53
|
+
templates: z.ZodArray<z.ZodObject<{
|
|
54
|
+
templateUuid: z.ZodString;
|
|
55
|
+
templateType: z.ZodNativeEnum<{
|
|
56
|
+
readonly XRAY_JSON: "XRAY_JSON";
|
|
57
|
+
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
58
|
+
readonly MIHOMO: "MIHOMO";
|
|
59
|
+
readonly STASH: "STASH";
|
|
60
|
+
readonly CLASH: "CLASH";
|
|
61
|
+
readonly SINGBOX: "SINGBOX";
|
|
62
|
+
}>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
templateUuid: string;
|
|
65
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
66
|
+
}, {
|
|
67
|
+
templateUuid: string;
|
|
68
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
69
|
+
}>, "many">;
|
|
70
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
71
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
uuid: string;
|
|
74
|
+
createdAt: Date;
|
|
75
|
+
updatedAt: Date;
|
|
76
|
+
name: string;
|
|
77
|
+
info: {
|
|
78
|
+
membersCount: number;
|
|
79
|
+
};
|
|
80
|
+
templates: {
|
|
81
|
+
templateUuid: string;
|
|
82
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
83
|
+
}[];
|
|
84
|
+
}, {
|
|
85
|
+
uuid: string;
|
|
86
|
+
createdAt: string;
|
|
87
|
+
updatedAt: string;
|
|
88
|
+
name: string;
|
|
89
|
+
info: {
|
|
90
|
+
membersCount: number;
|
|
91
|
+
};
|
|
92
|
+
templates: {
|
|
93
|
+
templateUuid: string;
|
|
94
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
95
|
+
}[];
|
|
96
|
+
}>;
|
|
97
|
+
}, "strip", z.ZodTypeAny, {
|
|
98
|
+
response: {
|
|
99
|
+
uuid: string;
|
|
100
|
+
createdAt: Date;
|
|
101
|
+
updatedAt: Date;
|
|
102
|
+
name: string;
|
|
103
|
+
info: {
|
|
104
|
+
membersCount: number;
|
|
105
|
+
};
|
|
106
|
+
templates: {
|
|
107
|
+
templateUuid: string;
|
|
108
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
109
|
+
}[];
|
|
110
|
+
};
|
|
111
|
+
}, {
|
|
112
|
+
response: {
|
|
113
|
+
uuid: string;
|
|
114
|
+
createdAt: string;
|
|
115
|
+
updatedAt: string;
|
|
116
|
+
name: string;
|
|
117
|
+
info: {
|
|
118
|
+
membersCount: number;
|
|
119
|
+
};
|
|
120
|
+
templates: {
|
|
121
|
+
templateUuid: string;
|
|
122
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
123
|
+
}[];
|
|
124
|
+
};
|
|
125
|
+
}>;
|
|
126
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=update-external-squad.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-external-squad.command.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/update-external-squad.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,yBAAkC,CAAC;IAC5C,MAAM,OAAO,yBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBxB,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"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateExternalSquadCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
const api_1 = require("../../api");
|
|
7
|
+
const models_1 = require("../../models");
|
|
8
|
+
var UpdateExternalSquadCommand;
|
|
9
|
+
(function (UpdateExternalSquadCommand) {
|
|
10
|
+
UpdateExternalSquadCommand.url = api_1.REST_API.EXTERNAL_SQUADS.UPDATE;
|
|
11
|
+
UpdateExternalSquadCommand.TSQ_url = UpdateExternalSquadCommand.url;
|
|
12
|
+
UpdateExternalSquadCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.EXTERNAL_SQUADS_ROUTES.UPDATE, 'patch', 'Update external squad');
|
|
13
|
+
UpdateExternalSquadCommand.RequestSchema = zod_1.z.object({
|
|
14
|
+
uuid: zod_1.z.string().uuid(),
|
|
15
|
+
name: zod_1.z
|
|
16
|
+
.string()
|
|
17
|
+
.min(2, 'Name must be at least 2 characters')
|
|
18
|
+
.max(30, 'Name must be less than 30 characters')
|
|
19
|
+
.regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces')
|
|
20
|
+
.optional(),
|
|
21
|
+
templates: zod_1.z
|
|
22
|
+
.array(zod_1.z.object({
|
|
23
|
+
templateUuid: zod_1.z.string().uuid(),
|
|
24
|
+
templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
|
25
|
+
}))
|
|
26
|
+
.optional(),
|
|
27
|
+
});
|
|
28
|
+
UpdateExternalSquadCommand.ResponseSchema = zod_1.z.object({
|
|
29
|
+
response: models_1.ExternalSquadSchema,
|
|
30
|
+
});
|
|
31
|
+
})(UpdateExternalSquadCommand || (exports.UpdateExternalSquadCommand = UpdateExternalSquadCommand = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./api-tokens"), exports);
|
|
18
18
|
__exportStar(require("./auth"), exports);
|
|
19
19
|
__exportStar(require("./config-profiles"), exports);
|
|
20
|
+
__exportStar(require("./external-squads"), exports);
|
|
20
21
|
__exportStar(require("./hosts"), exports);
|
|
21
22
|
__exportStar(require("./hwid"), exports);
|
|
22
23
|
__exportStar(require("./infra-billing"), exports);
|
|
@@ -83,19 +83,19 @@ export declare namespace GetSubscriptionSettingsCommand {
|
|
|
83
83
|
value: string;
|
|
84
84
|
key: string;
|
|
85
85
|
}>, "many">>;
|
|
86
|
-
|
|
86
|
+
subscriptionTemplate: z.ZodOptional<z.ZodString>;
|
|
87
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
88
|
headers?: {
|
|
89
89
|
value: string;
|
|
90
90
|
key: string;
|
|
91
91
|
}[] | undefined;
|
|
92
|
-
|
|
92
|
+
subscriptionTemplate?: string | undefined;
|
|
93
93
|
}, {
|
|
94
94
|
headers?: {
|
|
95
95
|
value: string;
|
|
96
96
|
key: string;
|
|
97
97
|
}[] | undefined;
|
|
98
|
-
|
|
98
|
+
subscriptionTemplate?: string | undefined;
|
|
99
99
|
}>>;
|
|
100
100
|
}, "strip", z.ZodTypeAny, {
|
|
101
101
|
name: string;
|
|
@@ -114,7 +114,7 @@ export declare namespace GetSubscriptionSettingsCommand {
|
|
|
114
114
|
value: string;
|
|
115
115
|
key: string;
|
|
116
116
|
}[] | undefined;
|
|
117
|
-
|
|
117
|
+
subscriptionTemplate?: string | undefined;
|
|
118
118
|
} | undefined;
|
|
119
119
|
}, {
|
|
120
120
|
name: string;
|
|
@@ -133,7 +133,7 @@ export declare namespace GetSubscriptionSettingsCommand {
|
|
|
133
133
|
value: string;
|
|
134
134
|
key: string;
|
|
135
135
|
}[] | undefined;
|
|
136
|
-
|
|
136
|
+
subscriptionTemplate?: string | undefined;
|
|
137
137
|
} | undefined;
|
|
138
138
|
}>, "many">;
|
|
139
139
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -155,7 +155,7 @@ export declare namespace GetSubscriptionSettingsCommand {
|
|
|
155
155
|
value: string;
|
|
156
156
|
key: string;
|
|
157
157
|
}[] | undefined;
|
|
158
|
-
|
|
158
|
+
subscriptionTemplate?: string | undefined;
|
|
159
159
|
} | undefined;
|
|
160
160
|
}[];
|
|
161
161
|
}, {
|
|
@@ -177,7 +177,7 @@ export declare namespace GetSubscriptionSettingsCommand {
|
|
|
177
177
|
value: string;
|
|
178
178
|
key: string;
|
|
179
179
|
}[] | undefined;
|
|
180
|
-
|
|
180
|
+
subscriptionTemplate?: string | undefined;
|
|
181
181
|
} | undefined;
|
|
182
182
|
}[];
|
|
183
183
|
}>>;
|
|
@@ -220,7 +220,7 @@ export declare namespace GetSubscriptionSettingsCommand {
|
|
|
220
220
|
value: string;
|
|
221
221
|
key: string;
|
|
222
222
|
}[] | undefined;
|
|
223
|
-
|
|
223
|
+
subscriptionTemplate?: string | undefined;
|
|
224
224
|
} | undefined;
|
|
225
225
|
}[];
|
|
226
226
|
} | null;
|
|
@@ -261,7 +261,7 @@ export declare namespace GetSubscriptionSettingsCommand {
|
|
|
261
261
|
value: string;
|
|
262
262
|
key: string;
|
|
263
263
|
}[] | undefined;
|
|
264
|
-
|
|
264
|
+
subscriptionTemplate?: string | undefined;
|
|
265
265
|
} | undefined;
|
|
266
266
|
}[];
|
|
267
267
|
} | null;
|
|
@@ -304,7 +304,7 @@ export declare namespace GetSubscriptionSettingsCommand {
|
|
|
304
304
|
value: string;
|
|
305
305
|
key: string;
|
|
306
306
|
}[] | undefined;
|
|
307
|
-
|
|
307
|
+
subscriptionTemplate?: string | undefined;
|
|
308
308
|
} | undefined;
|
|
309
309
|
}[];
|
|
310
310
|
} | null;
|
|
@@ -347,7 +347,7 @@ export declare namespace GetSubscriptionSettingsCommand {
|
|
|
347
347
|
value: string;
|
|
348
348
|
key: string;
|
|
349
349
|
}[] | undefined;
|
|
350
|
-
|
|
350
|
+
subscriptionTemplate?: string | undefined;
|
|
351
351
|
} | undefined;
|
|
352
352
|
}[];
|
|
353
353
|
} | null;
|
package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts
CHANGED
|
@@ -82,19 +82,19 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
82
82
|
value: string;
|
|
83
83
|
key: string;
|
|
84
84
|
}>, "many">>;
|
|
85
|
-
|
|
85
|
+
subscriptionTemplate: z.ZodOptional<z.ZodString>;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
87
|
headers?: {
|
|
88
88
|
value: string;
|
|
89
89
|
key: string;
|
|
90
90
|
}[] | undefined;
|
|
91
|
-
|
|
91
|
+
subscriptionTemplate?: string | undefined;
|
|
92
92
|
}, {
|
|
93
93
|
headers?: {
|
|
94
94
|
value: string;
|
|
95
95
|
key: string;
|
|
96
96
|
}[] | undefined;
|
|
97
|
-
|
|
97
|
+
subscriptionTemplate?: string | undefined;
|
|
98
98
|
}>>;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
100
|
name: string;
|
|
@@ -113,7 +113,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
113
113
|
value: string;
|
|
114
114
|
key: string;
|
|
115
115
|
}[] | undefined;
|
|
116
|
-
|
|
116
|
+
subscriptionTemplate?: string | undefined;
|
|
117
117
|
} | undefined;
|
|
118
118
|
}, {
|
|
119
119
|
name: string;
|
|
@@ -132,7 +132,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
132
132
|
value: string;
|
|
133
133
|
key: string;
|
|
134
134
|
}[] | undefined;
|
|
135
|
-
|
|
135
|
+
subscriptionTemplate?: string | undefined;
|
|
136
136
|
} | undefined;
|
|
137
137
|
}>, "many">;
|
|
138
138
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -154,7 +154,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
154
154
|
value: string;
|
|
155
155
|
key: string;
|
|
156
156
|
}[] | undefined;
|
|
157
|
-
|
|
157
|
+
subscriptionTemplate?: string | undefined;
|
|
158
158
|
} | undefined;
|
|
159
159
|
}[];
|
|
160
160
|
}, {
|
|
@@ -176,7 +176,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
176
176
|
value: string;
|
|
177
177
|
key: string;
|
|
178
178
|
}[] | undefined;
|
|
179
|
-
|
|
179
|
+
subscriptionTemplate?: string | undefined;
|
|
180
180
|
} | undefined;
|
|
181
181
|
}[];
|
|
182
182
|
}>>;
|
|
@@ -215,7 +215,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
215
215
|
value: string;
|
|
216
216
|
key: string;
|
|
217
217
|
}[] | undefined;
|
|
218
|
-
|
|
218
|
+
subscriptionTemplate?: string | undefined;
|
|
219
219
|
} | undefined;
|
|
220
220
|
}[];
|
|
221
221
|
} | undefined;
|
|
@@ -254,7 +254,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
254
254
|
value: string;
|
|
255
255
|
key: string;
|
|
256
256
|
}[] | undefined;
|
|
257
|
-
|
|
257
|
+
subscriptionTemplate?: string | undefined;
|
|
258
258
|
} | undefined;
|
|
259
259
|
}[];
|
|
260
260
|
} | undefined;
|
|
@@ -340,19 +340,19 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
340
340
|
value: string;
|
|
341
341
|
key: string;
|
|
342
342
|
}>, "many">>;
|
|
343
|
-
|
|
343
|
+
subscriptionTemplate: z.ZodOptional<z.ZodString>;
|
|
344
344
|
}, "strip", z.ZodTypeAny, {
|
|
345
345
|
headers?: {
|
|
346
346
|
value: string;
|
|
347
347
|
key: string;
|
|
348
348
|
}[] | undefined;
|
|
349
|
-
|
|
349
|
+
subscriptionTemplate?: string | undefined;
|
|
350
350
|
}, {
|
|
351
351
|
headers?: {
|
|
352
352
|
value: string;
|
|
353
353
|
key: string;
|
|
354
354
|
}[] | undefined;
|
|
355
|
-
|
|
355
|
+
subscriptionTemplate?: string | undefined;
|
|
356
356
|
}>>;
|
|
357
357
|
}, "strip", z.ZodTypeAny, {
|
|
358
358
|
name: string;
|
|
@@ -371,7 +371,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
371
371
|
value: string;
|
|
372
372
|
key: string;
|
|
373
373
|
}[] | undefined;
|
|
374
|
-
|
|
374
|
+
subscriptionTemplate?: string | undefined;
|
|
375
375
|
} | undefined;
|
|
376
376
|
}, {
|
|
377
377
|
name: string;
|
|
@@ -390,7 +390,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
390
390
|
value: string;
|
|
391
391
|
key: string;
|
|
392
392
|
}[] | undefined;
|
|
393
|
-
|
|
393
|
+
subscriptionTemplate?: string | undefined;
|
|
394
394
|
} | undefined;
|
|
395
395
|
}>, "many">;
|
|
396
396
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -412,7 +412,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
412
412
|
value: string;
|
|
413
413
|
key: string;
|
|
414
414
|
}[] | undefined;
|
|
415
|
-
|
|
415
|
+
subscriptionTemplate?: string | undefined;
|
|
416
416
|
} | undefined;
|
|
417
417
|
}[];
|
|
418
418
|
}, {
|
|
@@ -434,7 +434,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
434
434
|
value: string;
|
|
435
435
|
key: string;
|
|
436
436
|
}[] | undefined;
|
|
437
|
-
|
|
437
|
+
subscriptionTemplate?: string | undefined;
|
|
438
438
|
} | undefined;
|
|
439
439
|
}[];
|
|
440
440
|
}>>;
|
|
@@ -477,7 +477,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
477
477
|
value: string;
|
|
478
478
|
key: string;
|
|
479
479
|
}[] | undefined;
|
|
480
|
-
|
|
480
|
+
subscriptionTemplate?: string | undefined;
|
|
481
481
|
} | undefined;
|
|
482
482
|
}[];
|
|
483
483
|
} | null;
|
|
@@ -518,7 +518,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
518
518
|
value: string;
|
|
519
519
|
key: string;
|
|
520
520
|
}[] | undefined;
|
|
521
|
-
|
|
521
|
+
subscriptionTemplate?: string | undefined;
|
|
522
522
|
} | undefined;
|
|
523
523
|
}[];
|
|
524
524
|
} | null;
|
|
@@ -561,7 +561,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
561
561
|
value: string;
|
|
562
562
|
key: string;
|
|
563
563
|
}[] | undefined;
|
|
564
|
-
|
|
564
|
+
subscriptionTemplate?: string | undefined;
|
|
565
565
|
} | undefined;
|
|
566
566
|
}[];
|
|
567
567
|
} | null;
|
|
@@ -604,7 +604,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
604
604
|
value: string;
|
|
605
605
|
key: string;
|
|
606
606
|
}[] | undefined;
|
|
607
|
-
|
|
607
|
+
subscriptionTemplate?: string | undefined;
|
|
608
608
|
} | undefined;
|
|
609
609
|
}[];
|
|
610
610
|
} | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-template.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/create-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;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"create-template.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/create-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;;;;;;;;;;;;;;;;MAUxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -11,7 +11,11 @@ var CreateSubscriptionTemplateCommand;
|
|
|
11
11
|
CreateSubscriptionTemplateCommand.TSQ_url = CreateSubscriptionTemplateCommand.url;
|
|
12
12
|
CreateSubscriptionTemplateCommand.endpointDetails = (0, constants_2.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.CREATE, 'post', 'Create subscription template');
|
|
13
13
|
CreateSubscriptionTemplateCommand.RequestSchema = zod_1.z.object({
|
|
14
|
-
name: zod_1.z
|
|
14
|
+
name: zod_1.z
|
|
15
|
+
.string()
|
|
16
|
+
.min(2, 'Name must be at least 2 characters')
|
|
17
|
+
.max(255, 'Name must be less than 255 characters')
|
|
18
|
+
.regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces'),
|
|
15
19
|
templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
|
16
20
|
});
|
|
17
21
|
CreateSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
|