@remnawave/backend-contract 2.0.0-alpha.12 → 2.0.0-alpha.15
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/commands/infra-billing/create-bill-record.command.d.ts +15 -15
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/create-bill-record.command.js +0 -1
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +364 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.js +33 -0
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +12 -12
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +358 -0
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +24 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +12 -12
- package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts +350 -0
- package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-blling-nodes.command.js +21 -0
- package/build/backend/commands/infra-billing/index.d.ts +4 -0
- package/build/backend/commands/infra-billing/index.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/index.js +4 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +361 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.js +31 -0
- package/build/backend/commands/nodes/actions/disable.command.d.ts +36 -36
- package/build/backend/commands/nodes/actions/enable.command.d.ts +36 -36
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +36 -36
- package/build/backend/commands/nodes/create.command.d.ts +38 -38
- package/build/backend/commands/nodes/get-all.command.d.ts +36 -36
- package/build/backend/commands/nodes/get-one.command.d.ts +36 -36
- package/build/backend/commands/nodes/update.command.d.ts +38 -38
- package/build/backend/constants/errors/errors.d.ts +20 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +20 -0
- package/build/backend/models/index.d.ts +2 -0
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +2 -0
- package/build/backend/models/infra-billing-available-node.schema.d.ts +90 -0
- package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-available-node.schema.js +9 -0
- package/build/backend/models/infra-billing-history-record.schema.d.ts +4 -4
- package/build/backend/models/infra-billing-node.schema.d.ts +145 -0
- package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-node.schema.js +34 -0
- package/build/backend/models/nodes.schema.d.ts +18 -18
- package/build/frontend/commands/infra-billing/create-bill-record.command.js +0 -1
- package/build/frontend/commands/infra-billing/create-billing-node.command.js +33 -0
- package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +24 -0
- package/build/frontend/commands/infra-billing/get-blling-nodes.command.js +21 -0
- package/build/frontend/commands/infra-billing/index.js +4 -0
- package/build/frontend/commands/infra-billing/update-billing-node.command.js +31 -0
- package/build/frontend/constants/errors/errors.js +20 -0
- package/build/frontend/models/index.js +2 -0
- package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
- package/build/frontend/models/infra-billing-node.schema.js +34 -0
- package/package.json +1 -1
@@ -0,0 +1,34 @@
|
|
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.omit({
|
12
|
+
createdAt: true,
|
13
|
+
updatedAt: 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
|
+
});
|
package/package.json
CHANGED