@remnawave/backend-contract 2.0.0-alpha.27 → 2.0.0-alpha.3
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/index.d.ts +0 -1
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +0 -1
- package/build/backend/api/controllers/internal-squads.d.ts +0 -4
- package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
- package/build/backend/api/controllers/internal-squads.js +0 -5
- package/build/backend/api/controllers/users.d.ts +0 -1
- package/build/backend/api/controllers/users.d.ts.map +1 -1
- package/build/backend/api/controllers/users.js +0 -1
- package/build/backend/api/routes.d.ts +0 -19
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +0 -19
- package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +10 -26
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +10 -26
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +10 -26
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +10 -26
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +10 -26
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.d.ts +19 -47
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +13 -13
- package/build/backend/commands/hosts/get-all.command.d.ts +10 -26
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-one.command.d.ts +10 -26
- package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +2 -10
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +21 -57
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +11 -10
- package/build/backend/commands/index.d.ts +0 -1
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +0 -1
- package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
- package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid.d.ts → get-internal-squad-by-uuid..d.ts} +1 -1
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +1 -0
- package/build/backend/commands/internal-squads/index.d.ts +1 -2
- package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/index.js +1 -2
- package/build/backend/commands/nodes/actions/disable.command.d.ts +64 -157
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +64 -157
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +88 -230
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +70 -178
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +4 -7
- package/build/backend/commands/nodes/get-all.command.d.ts +64 -157
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +64 -157
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/nodes/update.command.d.ts +94 -251
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +4 -9
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/users/index.d.ts +0 -1
- package/build/backend/commands/users/index.d.ts.map +1 -1
- package/build/backend/commands/users/index.js +0 -1
- package/build/backend/constants/errors/errors.d.ts +0 -95
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +0 -95
- package/build/backend/constants/events/events.d.ts +0 -11
- package/build/backend/constants/events/events.d.ts.map +1 -1
- package/build/backend/constants/events/events.js +0 -10
- package/build/backend/constants/templates/template-keys.d.ts +1 -1
- package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
- package/build/backend/constants/templates/template-keys.js +0 -1
- package/build/backend/models/{extended-users.schema.d.ts → extented-users.schema.d.ts} +1 -1
- package/build/backend/models/{extended-users.schema.d.ts.map → extented-users.schema.d.ts.map} +1 -1
- package/build/backend/models/hosts.schema.d.ts +6 -18
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +2 -4
- package/build/backend/models/index.d.ts +1 -5
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +1 -5
- package/build/backend/models/nodes.schema.d.ts +44 -115
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +2 -7
- package/build/frontend/api/controllers/index.js +0 -1
- package/build/frontend/api/controllers/internal-squads.js +0 -5
- package/build/frontend/api/controllers/users.js +0 -1
- package/build/frontend/api/routes.js +0 -19
- package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
- package/build/frontend/commands/hosts/create.command.js +13 -13
- package/build/frontend/commands/hosts/update.command.js +11 -10
- package/build/frontend/commands/index.js +0 -1
- package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
- package/build/frontend/commands/internal-squads/index.js +1 -2
- package/build/frontend/commands/nodes/create.command.js +4 -7
- package/build/frontend/commands/nodes/update.command.js +4 -9
- package/build/frontend/commands/users/index.js +0 -1
- package/build/frontend/constants/errors/errors.js +0 -95
- package/build/frontend/constants/events/events.js +0 -10
- package/build/frontend/constants/templates/template-keys.js +0 -1
- package/build/frontend/models/hosts.schema.js +2 -4
- package/build/frontend/models/index.js +1 -5
- package/build/frontend/models/nodes.schema.js +2 -7
- package/package.json +1 -1
- package/build/backend/api/controllers/infra-billing.d.ts +0 -16
- package/build/backend/api/controllers/infra-billing.d.ts.map +0 -1
- package/build/backend/api/controllers/infra-billing.js +0 -18
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +0 -125
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/create-bill-record.command.js +0 -30
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +0 -465
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/create-billing-node.command.js +0 -38
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +0 -123
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/create-infra-provider.command.js +0 -24
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +0 -119
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +0 -459
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +0 -33
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +0 -122
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/get-bill-records.command.js +0 -31
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +0 -451
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/get-billing-nodes.command.js +0 -26
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +0 -117
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +0 -156
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/get-infra-providers.command.js +0 -19
- package/build/backend/commands/infra-billing/index.d.ts +0 -13
- package/build/backend/commands/infra-billing/index.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/index.js +0 -28
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +0 -462
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/update-billing-node.command.js +0 -35
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +0 -126
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/update-infra-provider.command.js +0 -26
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +0 -33
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +0 -1
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +0 -20
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +0 -33
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +0 -1
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +0 -20
- package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +0 -3
- package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +0 -1
- package/build/backend/commands/internal-squads/bulk-actions/index.js +0 -18
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +0 -1
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +0 -114
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +0 -1
- package/build/backend/commands/users/get-user-accessible-nodes.command.js +0 -31
- package/build/backend/models/infra-billing-available-node.schema.d.ts +0 -116
- package/build/backend/models/infra-billing-available-node.schema.d.ts.map +0 -1
- package/build/backend/models/infra-billing-available-node.schema.js +0 -9
- package/build/backend/models/infra-billing-history-record.schema.d.ts +0 -44
- package/build/backend/models/infra-billing-history-record.schema.d.ts.map +0 -1
- package/build/backend/models/infra-billing-history-record.schema.js +0 -19
- package/build/backend/models/infra-billing-node.schema.d.ts +0 -179
- package/build/backend/models/infra-billing-node.schema.d.ts.map +0 -1
- package/build/backend/models/infra-billing-node.schema.js +0 -34
- package/build/backend/models/infra-provider.schema.d.ts +0 -87
- package/build/backend/models/infra-provider.schema.d.ts.map +0 -1
- package/build/backend/models/infra-provider.schema.js +0 -41
- package/build/frontend/api/controllers/infra-billing.js +0 -18
- package/build/frontend/commands/infra-billing/create-bill-record.command.js +0 -30
- package/build/frontend/commands/infra-billing/create-billing-node.command.js +0 -38
- package/build/frontend/commands/infra-billing/create-infra-provider.command.js +0 -24
- package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
- package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
- package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
- package/build/frontend/commands/infra-billing/get-bill-records.command.js +0 -31
- package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +0 -26
- package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
- package/build/frontend/commands/infra-billing/get-infra-providers.command.js +0 -19
- package/build/frontend/commands/infra-billing/index.js +0 -28
- package/build/frontend/commands/infra-billing/update-billing-node.command.js +0 -35
- package/build/frontend/commands/infra-billing/update-infra-provider.command.js +0 -26
- package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +0 -20
- package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +0 -20
- package/build/frontend/commands/internal-squads/bulk-actions/index.js +0 -18
- package/build/frontend/commands/users/get-user-accessible-nodes.command.js +0 -31
- package/build/frontend/models/infra-billing-available-node.schema.js +0 -9
- package/build/frontend/models/infra-billing-history-record.schema.js +0 -19
- package/build/frontend/models/infra-billing-node.schema.js +0 -34
- package/build/frontend/models/infra-provider.schema.js +0 -41
- /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid.js → get-internal-squad-by-uuid..js} +0 -0
- /package/build/backend/models/{extended-users.schema.js → extented-users.schema.js} +0 -0
- /package/build/frontend/commands/internal-squads/{get-internal-squad-by-uuid.js → get-internal-squad-by-uuid..js} +0 -0
- /package/build/frontend/models/{extended-users.schema.js → extented-users.schema.js} +0 -0
@@ -1,28 +0,0 @@
|
|
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("./create-bill-record.command"), exports);
|
18
|
-
__exportStar(require("./create-billing-node.command"), exports);
|
19
|
-
__exportStar(require("./create-infra-provider.command"), exports);
|
20
|
-
__exportStar(require("./delete-bill-record-by-uuid.command"), exports);
|
21
|
-
__exportStar(require("./delete-billing-node-by-uuid.command"), exports);
|
22
|
-
__exportStar(require("./delete-infra-provider-by-uuid.command"), exports);
|
23
|
-
__exportStar(require("./get-bill-records.command"), exports);
|
24
|
-
__exportStar(require("./get-billing-nodes.command"), exports);
|
25
|
-
__exportStar(require("./get-infra-provider-by-uuid.command"), exports);
|
26
|
-
__exportStar(require("./get-infra-providers.command"), exports);
|
27
|
-
__exportStar(require("./update-billing-node.command"), exports);
|
28
|
-
__exportStar(require("./update-infra-provider.command"), exports);
|
@@ -1,35 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.UpdateInfraBillingNodeCommand = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const models_1 = require("../../models");
|
6
|
-
const api_1 = require("../../api");
|
7
|
-
const constants_1 = require("../../constants");
|
8
|
-
var UpdateInfraBillingNodeCommand;
|
9
|
-
(function (UpdateInfraBillingNodeCommand) {
|
10
|
-
UpdateInfraBillingNodeCommand.url = api_1.REST_API.INFRA_BILLING.UPDATE_BILLING_NODE;
|
11
|
-
UpdateInfraBillingNodeCommand.TSQ_url = UpdateInfraBillingNodeCommand.url;
|
12
|
-
UpdateInfraBillingNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.UPDATE_BILLING_NODE, 'patch', 'Update infra billing node');
|
13
|
-
UpdateInfraBillingNodeCommand.RequestSchema = zod_1.z.object({
|
14
|
-
uuid: zod_1.z.string().uuid(),
|
15
|
-
nextBillingAt: zod_1.z
|
16
|
-
.string({
|
17
|
-
invalid_type_error: 'Invalid date format',
|
18
|
-
})
|
19
|
-
.datetime({ message: 'Invalid date format', offset: true, local: true })
|
20
|
-
.transform((str) => new Date(str)),
|
21
|
-
});
|
22
|
-
UpdateInfraBillingNodeCommand.ResponseSchema = zod_1.z.object({
|
23
|
-
response: zod_1.z.object({
|
24
|
-
totalBillingNodes: zod_1.z.number(),
|
25
|
-
billingNodes: zod_1.z.array(models_1.InfraBillingNodeSchema),
|
26
|
-
availableBillingNodes: zod_1.z.array(models_1.InfraBillingAvailableNodeSchema),
|
27
|
-
totalAvailableBillingNodes: zod_1.z.number(),
|
28
|
-
stats: zod_1.z.object({
|
29
|
-
upcomingNodesCount: zod_1.z.number(),
|
30
|
-
currentMonthPayments: zod_1.z.number(),
|
31
|
-
totalSpent: zod_1.z.number(),
|
32
|
-
}),
|
33
|
-
}),
|
34
|
-
});
|
35
|
-
})(UpdateInfraBillingNodeCommand || (exports.UpdateInfraBillingNodeCommand = UpdateInfraBillingNodeCommand = {}));
|
@@ -1,26 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.UpdateInfraProviderCommand = 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 UpdateInfraProviderCommand;
|
9
|
-
(function (UpdateInfraProviderCommand) {
|
10
|
-
UpdateInfraProviderCommand.url = api_1.REST_API.INFRA_BILLING.UPDATE_PROVIDER;
|
11
|
-
UpdateInfraProviderCommand.TSQ_url = UpdateInfraProviderCommand.url;
|
12
|
-
UpdateInfraProviderCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.UPDATE_PROVIDER, 'patch', 'Update infra provider');
|
13
|
-
UpdateInfraProviderCommand.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
|
-
.optional(),
|
20
|
-
faviconLink: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().url())),
|
21
|
-
loginUrl: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().url())),
|
22
|
-
});
|
23
|
-
UpdateInfraProviderCommand.ResponseSchema = zod_1.z.object({
|
24
|
-
response: models_1.InfraProviderSchema,
|
25
|
-
});
|
26
|
-
})(UpdateInfraProviderCommand || (exports.UpdateInfraProviderCommand = UpdateInfraProviderCommand = {}));
|
package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.AddUsersToInternalSquadCommand = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const api_1 = require("../../../api");
|
6
|
-
const constants_1 = require("../../../constants");
|
7
|
-
var AddUsersToInternalSquadCommand;
|
8
|
-
(function (AddUsersToInternalSquadCommand) {
|
9
|
-
AddUsersToInternalSquadCommand.url = api_1.REST_API.INTERNAL_SQUADS.BULK_ACTIONS.ADD_USERS;
|
10
|
-
AddUsersToInternalSquadCommand.TSQ_url = AddUsersToInternalSquadCommand.url(':uuid');
|
11
|
-
AddUsersToInternalSquadCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INTERNAL_SQUADS_ROUTES.BULK_ACTIONS.ADD_USERS(':uuid'), 'post', 'Add all users to internal squad');
|
12
|
-
AddUsersToInternalSquadCommand.RequestSchema = zod_1.z.object({
|
13
|
-
uuid: zod_1.z.string().uuid(),
|
14
|
-
});
|
15
|
-
AddUsersToInternalSquadCommand.ResponseSchema = zod_1.z.object({
|
16
|
-
response: zod_1.z.object({
|
17
|
-
eventSent: zod_1.z.boolean(),
|
18
|
-
}),
|
19
|
-
});
|
20
|
-
})(AddUsersToInternalSquadCommand || (exports.AddUsersToInternalSquadCommand = AddUsersToInternalSquadCommand = {}));
|
@@ -1,20 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DeleteUsersFromInternalSquadCommand = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const api_1 = require("../../../api");
|
6
|
-
const constants_1 = require("../../../constants");
|
7
|
-
var DeleteUsersFromInternalSquadCommand;
|
8
|
-
(function (DeleteUsersFromInternalSquadCommand) {
|
9
|
-
DeleteUsersFromInternalSquadCommand.url = api_1.REST_API.INTERNAL_SQUADS.BULK_ACTIONS.REMOVE_USERS;
|
10
|
-
DeleteUsersFromInternalSquadCommand.TSQ_url = DeleteUsersFromInternalSquadCommand.url(':uuid');
|
11
|
-
DeleteUsersFromInternalSquadCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INTERNAL_SQUADS_ROUTES.BULK_ACTIONS.REMOVE_USERS(':uuid'), 'delete', 'Delete users from internal squad');
|
12
|
-
DeleteUsersFromInternalSquadCommand.RequestSchema = zod_1.z.object({
|
13
|
-
uuid: zod_1.z.string().uuid(),
|
14
|
-
});
|
15
|
-
DeleteUsersFromInternalSquadCommand.ResponseSchema = zod_1.z.object({
|
16
|
-
response: zod_1.z.object({
|
17
|
-
eventSent: zod_1.z.boolean(),
|
18
|
-
}),
|
19
|
-
});
|
20
|
-
})(DeleteUsersFromInternalSquadCommand || (exports.DeleteUsersFromInternalSquadCommand = DeleteUsersFromInternalSquadCommand = {}));
|
@@ -1,18 +0,0 @@
|
|
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-internal-squad.command"), exports);
|
18
|
-
__exportStar(require("./delete-users-from-internal-squad.command"), exports);
|
@@ -1,31 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GetUserAccessibleNodesCommand = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const constants_1 = require("../../constants");
|
6
|
-
const api_1 = require("../../api");
|
7
|
-
var GetUserAccessibleNodesCommand;
|
8
|
-
(function (GetUserAccessibleNodesCommand) {
|
9
|
-
GetUserAccessibleNodesCommand.url = api_1.REST_API.USERS.ACCESSIBLE_NODES;
|
10
|
-
GetUserAccessibleNodesCommand.TSQ_url = GetUserAccessibleNodesCommand.url(':uuid');
|
11
|
-
GetUserAccessibleNodesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACCESSIBLE_NODES(':uuid'), 'get', 'Get user accessible nodes');
|
12
|
-
GetUserAccessibleNodesCommand.RequestSchema = zod_1.z.object({
|
13
|
-
uuid: zod_1.z.string().uuid(),
|
14
|
-
});
|
15
|
-
GetUserAccessibleNodesCommand.ResponseSchema = zod_1.z.object({
|
16
|
-
response: zod_1.z.object({
|
17
|
-
userUuid: zod_1.z.string().uuid(),
|
18
|
-
activeNodes: zod_1.z.array(zod_1.z.object({
|
19
|
-
uuid: zod_1.z.string().uuid(),
|
20
|
-
nodeName: zod_1.z.string(),
|
21
|
-
countryCode: zod_1.z.string(),
|
22
|
-
configProfileUuid: zod_1.z.string().uuid(),
|
23
|
-
configProfileName: zod_1.z.string(),
|
24
|
-
activeSquads: zod_1.z.array(zod_1.z.object({
|
25
|
-
squadName: zod_1.z.string(),
|
26
|
-
activeInbounds: zod_1.z.array(zod_1.z.string()),
|
27
|
-
})),
|
28
|
-
})),
|
29
|
-
}),
|
30
|
-
});
|
31
|
-
})(GetUserAccessibleNodesCommand || (exports.GetUserAccessibleNodesCommand = GetUserAccessibleNodesCommand = {}));
|
@@ -1,9 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.InfraBillingAvailableNodeSchema = void 0;
|
4
|
-
const nodes_schema_1 = require("./nodes.schema");
|
5
|
-
exports.InfraBillingAvailableNodeSchema = nodes_schema_1.NodesSchema.pick({
|
6
|
-
uuid: true,
|
7
|
-
name: true,
|
8
|
-
countryCode: true,
|
9
|
-
});
|
@@ -1,19 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.InfraBillingHistoryRecordSchema = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const infra_provider_schema_1 = require("./infra-provider.schema");
|
6
|
-
exports.InfraBillingHistoryRecordSchema = zod_1.z.object({
|
7
|
-
uuid: zod_1.z.string().uuid(),
|
8
|
-
providerUuid: zod_1.z.string().uuid(),
|
9
|
-
amount: zod_1.z.number(),
|
10
|
-
billedAt: zod_1.z
|
11
|
-
.string()
|
12
|
-
.datetime()
|
13
|
-
.transform((str) => new Date(str)),
|
14
|
-
provider: infra_provider_schema_1.PartialInfraProviderSchema.omit({
|
15
|
-
createdAt: true,
|
16
|
-
updatedAt: true,
|
17
|
-
loginUrl: true,
|
18
|
-
}),
|
19
|
-
});
|
@@ -1,34 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.InfraBillingNodeSchema = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const infra_provider_schema_1 = require("./infra-provider.schema");
|
6
|
-
const nodes_schema_1 = require("./nodes.schema");
|
7
|
-
exports.InfraBillingNodeSchema = zod_1.z.object({
|
8
|
-
uuid: zod_1.z.string().uuid(),
|
9
|
-
nodeUuid: zod_1.z.string().uuid(),
|
10
|
-
providerUuid: zod_1.z.string().uuid(),
|
11
|
-
provider: infra_provider_schema_1.PartialInfraProviderSchema.pick({
|
12
|
-
uuid: true,
|
13
|
-
name: true,
|
14
|
-
loginUrl: true,
|
15
|
-
faviconLink: true,
|
16
|
-
}),
|
17
|
-
node: nodes_schema_1.NodesSchema.pick({
|
18
|
-
uuid: true,
|
19
|
-
name: true,
|
20
|
-
countryCode: true,
|
21
|
-
}),
|
22
|
-
nextBillingAt: zod_1.z
|
23
|
-
.string()
|
24
|
-
.datetime()
|
25
|
-
.transform((str) => new Date(str)),
|
26
|
-
createdAt: zod_1.z
|
27
|
-
.string()
|
28
|
-
.datetime()
|
29
|
-
.transform((str) => new Date(str)),
|
30
|
-
updatedAt: zod_1.z
|
31
|
-
.string()
|
32
|
-
.datetime()
|
33
|
-
.transform((str) => new Date(str)),
|
34
|
-
});
|
@@ -1,41 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.PartialInfraProviderSchema = exports.InfraProviderSchema = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
exports.InfraProviderSchema = zod_1.z.object({
|
6
|
-
uuid: zod_1.z.string().uuid(),
|
7
|
-
name: zod_1.z.string(),
|
8
|
-
faviconLink: zod_1.z.nullable(zod_1.z.string()),
|
9
|
-
loginUrl: zod_1.z.nullable(zod_1.z.string()),
|
10
|
-
createdAt: zod_1.z
|
11
|
-
.string()
|
12
|
-
.datetime()
|
13
|
-
.transform((str) => new Date(str)),
|
14
|
-
updatedAt: zod_1.z
|
15
|
-
.string()
|
16
|
-
.datetime()
|
17
|
-
.transform((str) => new Date(str)),
|
18
|
-
billingHistory: zod_1.z.object({
|
19
|
-
totalAmount: zod_1.z.number(),
|
20
|
-
totalBills: zod_1.z.number(),
|
21
|
-
}),
|
22
|
-
billingNodes: zod_1.z.array(zod_1.z.object({
|
23
|
-
nodeUuid: zod_1.z.string(),
|
24
|
-
name: zod_1.z.string(),
|
25
|
-
countryCode: zod_1.z.string(),
|
26
|
-
})),
|
27
|
-
});
|
28
|
-
exports.PartialInfraProviderSchema = zod_1.z.object({
|
29
|
-
uuid: zod_1.z.string().uuid(),
|
30
|
-
name: zod_1.z.string(),
|
31
|
-
faviconLink: zod_1.z.nullable(zod_1.z.string()),
|
32
|
-
loginUrl: zod_1.z.nullable(zod_1.z.string()),
|
33
|
-
createdAt: zod_1.z
|
34
|
-
.string()
|
35
|
-
.datetime()
|
36
|
-
.transform((str) => new Date(str)),
|
37
|
-
updatedAt: zod_1.z
|
38
|
-
.string()
|
39
|
-
.datetime()
|
40
|
-
.transform((str) => new Date(str)),
|
41
|
-
});
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|