@remnawave/backend-contract 2.0.0-alpha.19 → 2.0.0-alpha.2
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/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 -15
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +0 -15
- package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
- package/build/backend/commands/hosts/create.command.d.ts +6 -6
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +2 -4
- 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/nodes/actions/disable.command.d.ts +0 -59
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +0 -59
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +0 -82
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +0 -62
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +0 -1
- package/build/backend/commands/nodes/get-all.command.d.ts +0 -59
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +0 -59
- 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 +0 -85
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +0 -1
- 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 -75
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +0 -75
- 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/index.d.ts +0 -4
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +0 -4
- package/build/backend/models/nodes.schema.d.ts +0 -41
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +0 -3
- package/build/frontend/api/controllers/index.js +0 -1
- package/build/frontend/api/controllers/users.js +0 -1
- package/build/frontend/api/routes.js +0 -15
- package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
- package/build/frontend/commands/hosts/create.command.js +2 -4
- 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/nodes/create.command.js +0 -1
- package/build/frontend/commands/nodes/update.command.js +0 -1
- package/build/frontend/commands/users/index.js +0 -1
- package/build/frontend/constants/errors/errors.js +0 -75
- package/build/frontend/constants/events/events.js +0 -10
- package/build/frontend/constants/templates/template-keys.js +0 -1
- package/build/frontend/models/index.js +0 -4
- package/build/frontend/models/nodes.schema.js +0 -3
- 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 -413
- 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 -407
- 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-blling-nodes.command.d.ts +0 -399
- package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/get-blling-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 -410
- 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/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 -90
- 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 -153
- 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-blling-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/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
@@ -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
|
-
});
|