@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.
Files changed (52) hide show
  1. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +15 -15
  2. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -1
  3. package/build/backend/commands/infra-billing/create-bill-record.command.js +0 -1
  4. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +364 -0
  5. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
  6. package/build/backend/commands/infra-billing/create-billing-node.command.js +33 -0
  7. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +12 -12
  8. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +358 -0
  9. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
  10. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +24 -0
  11. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +12 -12
  12. package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts +350 -0
  13. package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts.map +1 -0
  14. package/build/backend/commands/infra-billing/get-blling-nodes.command.js +21 -0
  15. package/build/backend/commands/infra-billing/index.d.ts +4 -0
  16. package/build/backend/commands/infra-billing/index.d.ts.map +1 -1
  17. package/build/backend/commands/infra-billing/index.js +4 -0
  18. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +361 -0
  19. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
  20. package/build/backend/commands/infra-billing/update-billing-node.command.js +31 -0
  21. package/build/backend/commands/nodes/actions/disable.command.d.ts +36 -36
  22. package/build/backend/commands/nodes/actions/enable.command.d.ts +36 -36
  23. package/build/backend/commands/nodes/actions/reorder.command.d.ts +36 -36
  24. package/build/backend/commands/nodes/create.command.d.ts +38 -38
  25. package/build/backend/commands/nodes/get-all.command.d.ts +36 -36
  26. package/build/backend/commands/nodes/get-one.command.d.ts +36 -36
  27. package/build/backend/commands/nodes/update.command.d.ts +38 -38
  28. package/build/backend/constants/errors/errors.d.ts +20 -0
  29. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  30. package/build/backend/constants/errors/errors.js +20 -0
  31. package/build/backend/models/index.d.ts +2 -0
  32. package/build/backend/models/index.d.ts.map +1 -1
  33. package/build/backend/models/index.js +2 -0
  34. package/build/backend/models/infra-billing-available-node.schema.d.ts +90 -0
  35. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
  36. package/build/backend/models/infra-billing-available-node.schema.js +9 -0
  37. package/build/backend/models/infra-billing-history-record.schema.d.ts +4 -4
  38. package/build/backend/models/infra-billing-node.schema.d.ts +145 -0
  39. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
  40. package/build/backend/models/infra-billing-node.schema.js +34 -0
  41. package/build/backend/models/nodes.schema.d.ts +18 -18
  42. package/build/frontend/commands/infra-billing/create-bill-record.command.js +0 -1
  43. package/build/frontend/commands/infra-billing/create-billing-node.command.js +33 -0
  44. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +24 -0
  45. package/build/frontend/commands/infra-billing/get-blling-nodes.command.js +21 -0
  46. package/build/frontend/commands/infra-billing/index.js +4 -0
  47. package/build/frontend/commands/infra-billing/update-billing-node.command.js +31 -0
  48. package/build/frontend/constants/errors/errors.js +20 -0
  49. package/build/frontend/models/index.js +2 -0
  50. package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
  51. package/build/frontend/models/infra-billing-node.schema.js +34 -0
  52. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.0.0-alpha.12",
3
+ "version": "2.0.0-alpha.15",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",