@remnawave/backend-contract 2.2.4 → 2.2.5
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 +3 -3
- package/build/backend/commands/subscription-template/update-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/update-template.command.js +5 -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 +5 -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,13 @@
|
|
|
1
|
+
export declare const EXTERNAL_SQUADS_CONTROLLER: "external-squads";
|
|
2
|
+
export declare const EXTERNAL_SQUADS_ROUTES: {
|
|
3
|
+
readonly GET: "";
|
|
4
|
+
readonly CREATE: "";
|
|
5
|
+
readonly UPDATE: "";
|
|
6
|
+
readonly GET_BY_UUID: (uuid: string) => string;
|
|
7
|
+
readonly DELETE: (uuid: string) => string;
|
|
8
|
+
readonly BULK_ACTIONS: {
|
|
9
|
+
readonly ADD_USERS: (uuid: string) => string;
|
|
10
|
+
readonly REMOVE_USERS: (uuid: string) => string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=external-squads.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-squads.d.ts","sourceRoot":"","sources":["../../../../api/controllers/external-squads.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,EAAG,iBAA0B,CAAC;AAIrE,eAAO,MAAM,sBAAsB;;;;iCAIX,MAAM;4BACX,MAAM;;mCAGC,MAAM;sCACH,MAAM;;CAEzB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EXTERNAL_SQUADS_ROUTES = exports.EXTERNAL_SQUADS_CONTROLLER = void 0;
|
|
4
|
+
exports.EXTERNAL_SQUADS_CONTROLLER = 'external-squads';
|
|
5
|
+
const BULK_ACTIONS_ROUTE = 'bulk-actions';
|
|
6
|
+
exports.EXTERNAL_SQUADS_ROUTES = {
|
|
7
|
+
GET: '', // Get list of all external squads // get
|
|
8
|
+
CREATE: '', // Create new external squad // post
|
|
9
|
+
UPDATE: '', // Update external squad by uuid // patch
|
|
10
|
+
GET_BY_UUID: (uuid) => `${uuid}`, // Get external squad by uuid // get
|
|
11
|
+
DELETE: (uuid) => `${uuid}`, // Delete external squad by uuid // delete
|
|
12
|
+
BULK_ACTIONS: {
|
|
13
|
+
ADD_USERS: (uuid) => `${uuid}/${BULK_ACTIONS_ROUTE}/add-users`, // Add users to external squad // post
|
|
14
|
+
REMOVE_USERS: (uuid) => `${uuid}/${BULK_ACTIONS_ROUTE}/remove-users`, // Remove users from external squad // delete
|
|
15
|
+
},
|
|
16
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../api/controllers/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":["../../../../api/controllers/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);
|
|
@@ -39,6 +39,10 @@ export declare const CONTROLLERS_INFO: {
|
|
|
39
39
|
readonly tag: "Internal Squads Controller";
|
|
40
40
|
readonly description: "Management of Internal Squads.";
|
|
41
41
|
};
|
|
42
|
+
readonly EXTERNAL_SQUADS: {
|
|
43
|
+
readonly tag: "External Squads Controller";
|
|
44
|
+
readonly description: "Management of External Squads.";
|
|
45
|
+
};
|
|
42
46
|
readonly NODES: {
|
|
43
47
|
readonly tag: "Nodes Controller";
|
|
44
48
|
readonly description: "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controllers-info.d.ts","sourceRoot":"","sources":["../../../api/controllers-info.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"controllers-info.d.ts","sourceRoot":"","sources":["../../../api/controllers-info.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4FnB,CAAC"}
|
|
@@ -42,6 +42,10 @@ exports.CONTROLLERS_INFO = {
|
|
|
42
42
|
tag: 'Internal Squads Controller',
|
|
43
43
|
description: 'Management of Internal Squads.',
|
|
44
44
|
},
|
|
45
|
+
EXTERNAL_SQUADS: {
|
|
46
|
+
tag: 'External Squads Controller',
|
|
47
|
+
description: 'Management of External Squads.',
|
|
48
|
+
},
|
|
45
49
|
NODES: {
|
|
46
50
|
tag: 'Nodes Controller',
|
|
47
51
|
description: '',
|
|
@@ -195,5 +195,16 @@ export declare const REST_API: {
|
|
|
195
195
|
readonly UPDATE: "/api/snippets/";
|
|
196
196
|
readonly DELETE: "/api/snippets/";
|
|
197
197
|
};
|
|
198
|
+
readonly EXTERNAL_SQUADS: {
|
|
199
|
+
readonly GET: "/api/external-squads/";
|
|
200
|
+
readonly CREATE: "/api/external-squads/";
|
|
201
|
+
readonly UPDATE: "/api/external-squads/";
|
|
202
|
+
readonly GET_BY_UUID: (uuid: string) => string;
|
|
203
|
+
readonly DELETE: (uuid: string) => string;
|
|
204
|
+
readonly BULK_ACTIONS: {
|
|
205
|
+
readonly ADD_USERS: (uuid: string) => string;
|
|
206
|
+
readonly REMOVE_USERS: (uuid: string) => string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
198
209
|
};
|
|
199
210
|
//# sourceMappingURL=routes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW,EAAG,SAAkB,CAAC;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;gCAcE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;;;;;iDAUM,MAAM;;;;;;;;gCAWvB,MAAM;qCAGD,MAAM;0CAED,MAAM;sDAEM,MAAM;;qCAMvB,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;6CAOV,MAAM;0CAIT,MAAM;2DAIW,MAAM;+CAIlB,MAAM;oCAIjB,MAAM;gCAIV,MAAM;;;;;;;;;;;;;;;gDAmBU,MAAM;;;;;;;kCAWpB,MAAM;0CAEE,MAAM;uCAET,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAmCT,MAAM;;gCAKH,MAAM;;;;;;;;;;;mDAca,MAAM;;;;;;;;0CAWf,MAAM;kCAId,MAAM;6CAIK,MAAM;iDAIF,MAAM;;;;;;;qCAUlB,MAAM;gCAIX,MAAM;sDAIgB,MAAM;;;;;;;qCAUvB,MAAM;gCAIX,MAAM;0CAII,MAAM;;uCAKT,MAAM;0CAEH,MAAM;;;;;;;yCASP,MAAM;8CAED,MAAM;;;;6CAMP,MAAM;;;gDAKH,MAAM
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW,EAAG,SAAkB,CAAC;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;gCAcE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;;;;;iDAUM,MAAM;;;;;;;;gCAWvB,MAAM;qCAGD,MAAM;0CAED,MAAM;sDAEM,MAAM;;qCAMvB,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;6CAOV,MAAM;0CAIT,MAAM;2DAIW,MAAM;+CAIlB,MAAM;oCAIjB,MAAM;gCAIV,MAAM;;;;;;;;;;;;;;;gDAmBU,MAAM;;;;;;;kCAWpB,MAAM;0CAEE,MAAM;uCAET,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAmCT,MAAM;;gCAKH,MAAM;;;;;;;;;;;mDAca,MAAM;;;;;;;;0CAWf,MAAM;kCAId,MAAM;6CAIK,MAAM;iDAIF,MAAM;;;;;;;qCAUlB,MAAM;gCAIX,MAAM;sDAIgB,MAAM;;;;;;;qCAUvB,MAAM;gCAIX,MAAM;0CAII,MAAM;;uCAKT,MAAM;0CAEH,MAAM;;;;;;;yCASP,MAAM;8CAED,MAAM;;;;6CAMP,MAAM;;;gDAKH,MAAM;;;;;;;;;;;;;;;;qCAiBjB,MAAM;gCAIX,MAAM;;uCAKC,MAAM;0CAEH,MAAM;;;CAI7B,CAAC"}
|
|
@@ -232,4 +232,15 @@ exports.REST_API = {
|
|
|
232
232
|
UPDATE: `${exports.ROOT}/${CONTROLLERS.SNIPPETS_CONTROLLER}/${CONTROLLERS.SNIPPETS_ROUTES.UPDATE}`,
|
|
233
233
|
DELETE: `${exports.ROOT}/${CONTROLLERS.SNIPPETS_CONTROLLER}/${CONTROLLERS.SNIPPETS_ROUTES.DELETE}`,
|
|
234
234
|
},
|
|
235
|
+
EXTERNAL_SQUADS: {
|
|
236
|
+
GET: `${exports.ROOT}/${CONTROLLERS.EXTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.EXTERNAL_SQUADS_ROUTES.GET}`,
|
|
237
|
+
CREATE: `${exports.ROOT}/${CONTROLLERS.EXTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.EXTERNAL_SQUADS_ROUTES.CREATE}`,
|
|
238
|
+
UPDATE: `${exports.ROOT}/${CONTROLLERS.EXTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.EXTERNAL_SQUADS_ROUTES.UPDATE}`,
|
|
239
|
+
GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.EXTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.EXTERNAL_SQUADS_ROUTES.GET_BY_UUID(uuid)}`,
|
|
240
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.EXTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.EXTERNAL_SQUADS_ROUTES.DELETE(uuid)}`,
|
|
241
|
+
BULK_ACTIONS: {
|
|
242
|
+
ADD_USERS: (uuid) => `${exports.ROOT}/${CONTROLLERS.EXTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.EXTERNAL_SQUADS_ROUTES.BULK_ACTIONS.ADD_USERS(uuid)}`,
|
|
243
|
+
REMOVE_USERS: (uuid) => `${exports.ROOT}/${CONTROLLERS.EXTERNAL_SQUADS_CONTROLLER}/${CONTROLLERS.EXTERNAL_SQUADS_ROUTES.BULK_ACTIONS.REMOVE_USERS(uuid)}`,
|
|
244
|
+
},
|
|
245
|
+
},
|
|
235
246
|
};
|
package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace AddUsersToExternalSquadCommand {
|
|
3
|
+
const url: (uuid: string) => string;
|
|
4
|
+
const TSQ_url: string;
|
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
+
const RequestSchema: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
uuid: string;
|
|
10
|
+
}, {
|
|
11
|
+
uuid: string;
|
|
12
|
+
}>;
|
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
response: z.ZodObject<{
|
|
16
|
+
eventSent: z.ZodBoolean;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
eventSent: boolean;
|
|
19
|
+
}, {
|
|
20
|
+
eventSent: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
response: {
|
|
24
|
+
eventSent: boolean;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
response: {
|
|
28
|
+
eventSent: boolean;
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
31
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=add-users-to-external-squad.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-users-to-external-squad.command.d.ts","sourceRoot":"","sources":["../../../../../commands/external-squads/bulk-actions/add-users-to-external-squad.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,0BAAkD,CAAC;IAC5D,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddUsersToExternalSquadCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
var AddUsersToExternalSquadCommand;
|
|
8
|
+
(function (AddUsersToExternalSquadCommand) {
|
|
9
|
+
AddUsersToExternalSquadCommand.url = api_1.REST_API.EXTERNAL_SQUADS.BULK_ACTIONS.ADD_USERS;
|
|
10
|
+
AddUsersToExternalSquadCommand.TSQ_url = AddUsersToExternalSquadCommand.url(':uuid');
|
|
11
|
+
AddUsersToExternalSquadCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.EXTERNAL_SQUADS_ROUTES.BULK_ACTIONS.ADD_USERS(':uuid'), 'post', 'Add all users to external squad');
|
|
12
|
+
AddUsersToExternalSquadCommand.RequestSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
});
|
|
15
|
+
AddUsersToExternalSquadCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
response: zod_1.z.object({
|
|
17
|
+
eventSent: zod_1.z.boolean(),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
})(AddUsersToExternalSquadCommand || (exports.AddUsersToExternalSquadCommand = AddUsersToExternalSquadCommand = {}));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace DeleteUsersFromExternalSquadCommand {
|
|
3
|
+
const url: (uuid: string) => string;
|
|
4
|
+
const TSQ_url: string;
|
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
+
const RequestSchema: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
uuid: string;
|
|
10
|
+
}, {
|
|
11
|
+
uuid: string;
|
|
12
|
+
}>;
|
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
response: z.ZodObject<{
|
|
16
|
+
eventSent: z.ZodBoolean;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
eventSent: boolean;
|
|
19
|
+
}, {
|
|
20
|
+
eventSent: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
response: {
|
|
24
|
+
eventSent: boolean;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
response: {
|
|
28
|
+
eventSent: boolean;
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
31
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=delete-users-from-external-squad.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-users-from-external-squad.command.d.ts","sourceRoot":"","sources":["../../../../../commands/external-squads/bulk-actions/delete-users-from-external-squad.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,mCAAmC,CAAC;IAC1C,MAAM,GAAG,0BAAqD,CAAC;IAC/D,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteUsersFromExternalSquadCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
var DeleteUsersFromExternalSquadCommand;
|
|
8
|
+
(function (DeleteUsersFromExternalSquadCommand) {
|
|
9
|
+
DeleteUsersFromExternalSquadCommand.url = api_1.REST_API.EXTERNAL_SQUADS.BULK_ACTIONS.REMOVE_USERS;
|
|
10
|
+
DeleteUsersFromExternalSquadCommand.TSQ_url = DeleteUsersFromExternalSquadCommand.url(':uuid');
|
|
11
|
+
DeleteUsersFromExternalSquadCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.EXTERNAL_SQUADS_ROUTES.BULK_ACTIONS.REMOVE_USERS(':uuid'), 'delete', 'Delete users from external squad');
|
|
12
|
+
DeleteUsersFromExternalSquadCommand.RequestSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
});
|
|
15
|
+
DeleteUsersFromExternalSquadCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
response: zod_1.z.object({
|
|
17
|
+
eventSent: zod_1.z.boolean(),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
})(DeleteUsersFromExternalSquadCommand || (exports.DeleteUsersFromExternalSquadCommand = DeleteUsersFromExternalSquadCommand = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/external-squads/bulk-actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,4CAA4C,CAAC"}
|
|
@@ -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("./add-users-to-external-squad.command"), exports);
|
|
18
|
+
__exportStar(require("./delete-users-from-external-squad.command"), exports);
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace CreateExternalSquadCommand {
|
|
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
|
+
name: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
name: string;
|
|
10
|
+
}, {
|
|
11
|
+
name: string;
|
|
12
|
+
}>;
|
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
response: z.ZodObject<{
|
|
16
|
+
uuid: z.ZodString;
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
info: z.ZodObject<{
|
|
19
|
+
membersCount: z.ZodNumber;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
membersCount: number;
|
|
22
|
+
}, {
|
|
23
|
+
membersCount: number;
|
|
24
|
+
}>;
|
|
25
|
+
templates: z.ZodArray<z.ZodObject<{
|
|
26
|
+
templateUuid: z.ZodString;
|
|
27
|
+
templateType: z.ZodNativeEnum<{
|
|
28
|
+
readonly XRAY_JSON: "XRAY_JSON";
|
|
29
|
+
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
30
|
+
readonly MIHOMO: "MIHOMO";
|
|
31
|
+
readonly STASH: "STASH";
|
|
32
|
+
readonly CLASH: "CLASH";
|
|
33
|
+
readonly SINGBOX: "SINGBOX";
|
|
34
|
+
}>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
templateUuid: string;
|
|
37
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
38
|
+
}, {
|
|
39
|
+
templateUuid: string;
|
|
40
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
41
|
+
}>, "many">;
|
|
42
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
43
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
uuid: string;
|
|
46
|
+
createdAt: Date;
|
|
47
|
+
updatedAt: Date;
|
|
48
|
+
name: string;
|
|
49
|
+
info: {
|
|
50
|
+
membersCount: number;
|
|
51
|
+
};
|
|
52
|
+
templates: {
|
|
53
|
+
templateUuid: string;
|
|
54
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
55
|
+
}[];
|
|
56
|
+
}, {
|
|
57
|
+
uuid: string;
|
|
58
|
+
createdAt: string;
|
|
59
|
+
updatedAt: string;
|
|
60
|
+
name: string;
|
|
61
|
+
info: {
|
|
62
|
+
membersCount: number;
|
|
63
|
+
};
|
|
64
|
+
templates: {
|
|
65
|
+
templateUuid: string;
|
|
66
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
67
|
+
}[];
|
|
68
|
+
}>;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
response: {
|
|
71
|
+
uuid: string;
|
|
72
|
+
createdAt: Date;
|
|
73
|
+
updatedAt: Date;
|
|
74
|
+
name: string;
|
|
75
|
+
info: {
|
|
76
|
+
membersCount: number;
|
|
77
|
+
};
|
|
78
|
+
templates: {
|
|
79
|
+
templateUuid: string;
|
|
80
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
81
|
+
}[];
|
|
82
|
+
};
|
|
83
|
+
}, {
|
|
84
|
+
response: {
|
|
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
|
+
}>;
|
|
98
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=create-external-squad.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-external-squad.command.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/create-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;;;;;;MASxB,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,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateExternalSquadCommand = 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 CreateExternalSquadCommand;
|
|
9
|
+
(function (CreateExternalSquadCommand) {
|
|
10
|
+
CreateExternalSquadCommand.url = api_1.REST_API.EXTERNAL_SQUADS.CREATE;
|
|
11
|
+
CreateExternalSquadCommand.TSQ_url = CreateExternalSquadCommand.url;
|
|
12
|
+
CreateExternalSquadCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.EXTERNAL_SQUADS_ROUTES.CREATE, 'post', 'Create external squad');
|
|
13
|
+
CreateExternalSquadCommand.RequestSchema = zod_1.z.object({
|
|
14
|
+
name: zod_1.z
|
|
15
|
+
.string()
|
|
16
|
+
.min(2, 'Name must be at least 2 characters')
|
|
17
|
+
.max(30, 'Name must be less than 30 characters')
|
|
18
|
+
.regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces'),
|
|
19
|
+
});
|
|
20
|
+
CreateExternalSquadCommand.ResponseSchema = zod_1.z.object({
|
|
21
|
+
response: models_1.ExternalSquadSchema,
|
|
22
|
+
});
|
|
23
|
+
})(CreateExternalSquadCommand || (exports.CreateExternalSquadCommand = CreateExternalSquadCommand = {}));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace DeleteExternalSquadCommand {
|
|
3
|
+
const url: (uuid: string) => string;
|
|
4
|
+
const TSQ_url: string;
|
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
|
+
const RequestSchema: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
uuid: string;
|
|
10
|
+
}, {
|
|
11
|
+
uuid: string;
|
|
12
|
+
}>;
|
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
response: z.ZodObject<{
|
|
16
|
+
isDeleted: z.ZodBoolean;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
isDeleted: boolean;
|
|
19
|
+
}, {
|
|
20
|
+
isDeleted: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
response: {
|
|
24
|
+
isDeleted: boolean;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
response: {
|
|
28
|
+
isDeleted: boolean;
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
31
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=delete-external-squad.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-external-squad.command.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/delete-external-squad.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,0BAAkC,CAAC;IAC5C,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;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteExternalSquadCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var DeleteExternalSquadCommand;
|
|
8
|
+
(function (DeleteExternalSquadCommand) {
|
|
9
|
+
DeleteExternalSquadCommand.url = api_1.REST_API.EXTERNAL_SQUADS.DELETE;
|
|
10
|
+
DeleteExternalSquadCommand.TSQ_url = DeleteExternalSquadCommand.url(':uuid');
|
|
11
|
+
DeleteExternalSquadCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.EXTERNAL_SQUADS_ROUTES.DELETE(':uuid'), 'delete', 'Delete external squad');
|
|
12
|
+
DeleteExternalSquadCommand.RequestSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
});
|
|
15
|
+
DeleteExternalSquadCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
response: zod_1.z.object({
|
|
17
|
+
isDeleted: zod_1.z.boolean(),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
})(DeleteExternalSquadCommand || (exports.DeleteExternalSquadCommand = DeleteExternalSquadCommand = {}));
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetExternalSquadByUuidCommand {
|
|
3
|
+
const url: (uuid: string) => string;
|
|
4
|
+
const TSQ_url: string;
|
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
|
+
const RequestSchema: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
uuid: string;
|
|
10
|
+
}, {
|
|
11
|
+
uuid: string;
|
|
12
|
+
}>;
|
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
response: z.ZodObject<{
|
|
16
|
+
uuid: z.ZodString;
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
info: z.ZodObject<{
|
|
19
|
+
membersCount: z.ZodNumber;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
membersCount: number;
|
|
22
|
+
}, {
|
|
23
|
+
membersCount: number;
|
|
24
|
+
}>;
|
|
25
|
+
templates: z.ZodArray<z.ZodObject<{
|
|
26
|
+
templateUuid: z.ZodString;
|
|
27
|
+
templateType: z.ZodNativeEnum<{
|
|
28
|
+
readonly XRAY_JSON: "XRAY_JSON";
|
|
29
|
+
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
30
|
+
readonly MIHOMO: "MIHOMO";
|
|
31
|
+
readonly STASH: "STASH";
|
|
32
|
+
readonly CLASH: "CLASH";
|
|
33
|
+
readonly SINGBOX: "SINGBOX";
|
|
34
|
+
}>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
templateUuid: string;
|
|
37
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
38
|
+
}, {
|
|
39
|
+
templateUuid: string;
|
|
40
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
41
|
+
}>, "many">;
|
|
42
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
43
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
uuid: string;
|
|
46
|
+
createdAt: Date;
|
|
47
|
+
updatedAt: Date;
|
|
48
|
+
name: string;
|
|
49
|
+
info: {
|
|
50
|
+
membersCount: number;
|
|
51
|
+
};
|
|
52
|
+
templates: {
|
|
53
|
+
templateUuid: string;
|
|
54
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
55
|
+
}[];
|
|
56
|
+
}, {
|
|
57
|
+
uuid: string;
|
|
58
|
+
createdAt: string;
|
|
59
|
+
updatedAt: string;
|
|
60
|
+
name: string;
|
|
61
|
+
info: {
|
|
62
|
+
membersCount: number;
|
|
63
|
+
};
|
|
64
|
+
templates: {
|
|
65
|
+
templateUuid: string;
|
|
66
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
67
|
+
}[];
|
|
68
|
+
}>;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
response: {
|
|
71
|
+
uuid: string;
|
|
72
|
+
createdAt: Date;
|
|
73
|
+
updatedAt: Date;
|
|
74
|
+
name: string;
|
|
75
|
+
info: {
|
|
76
|
+
membersCount: number;
|
|
77
|
+
};
|
|
78
|
+
templates: {
|
|
79
|
+
templateUuid: string;
|
|
80
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
81
|
+
}[];
|
|
82
|
+
};
|
|
83
|
+
}, {
|
|
84
|
+
response: {
|
|
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
|
+
}>;
|
|
98
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=get-external-squad-by-uuid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-external-squad-by-uuid.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/get-external-squad-by-uuid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAAuC,CAAC;IACjD,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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetExternalSquadByUuidCommand = 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 GetExternalSquadByUuidCommand;
|
|
9
|
+
(function (GetExternalSquadByUuidCommand) {
|
|
10
|
+
GetExternalSquadByUuidCommand.url = api_1.REST_API.EXTERNAL_SQUADS.GET_BY_UUID;
|
|
11
|
+
GetExternalSquadByUuidCommand.TSQ_url = GetExternalSquadByUuidCommand.url(':uuid');
|
|
12
|
+
GetExternalSquadByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.EXTERNAL_SQUADS_ROUTES.GET_BY_UUID(':uuid'), 'get', 'Get external squad by uuid');
|
|
13
|
+
GetExternalSquadByUuidCommand.RequestSchema = zod_1.z.object({
|
|
14
|
+
uuid: zod_1.z.string().uuid(),
|
|
15
|
+
});
|
|
16
|
+
GetExternalSquadByUuidCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
response: models_1.ExternalSquadSchema,
|
|
18
|
+
});
|
|
19
|
+
})(GetExternalSquadByUuidCommand || (exports.GetExternalSquadByUuidCommand = GetExternalSquadByUuidCommand = {}));
|