@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.
Files changed (146) hide show
  1. package/build/backend/api/controllers/index.d.ts +0 -1
  2. package/build/backend/api/controllers/index.d.ts.map +1 -1
  3. package/build/backend/api/controllers/index.js +0 -1
  4. package/build/backend/api/controllers/users.d.ts +0 -1
  5. package/build/backend/api/controllers/users.d.ts.map +1 -1
  6. package/build/backend/api/controllers/users.js +0 -1
  7. package/build/backend/api/routes.d.ts +0 -15
  8. package/build/backend/api/routes.d.ts.map +1 -1
  9. package/build/backend/api/routes.js +0 -15
  10. package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
  11. package/build/backend/commands/hosts/create.command.d.ts +6 -6
  12. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  13. package/build/backend/commands/hosts/create.command.js +2 -4
  14. package/build/backend/commands/index.d.ts +0 -1
  15. package/build/backend/commands/index.d.ts.map +1 -1
  16. package/build/backend/commands/index.js +0 -1
  17. package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
  18. package/build/backend/commands/nodes/actions/disable.command.d.ts +0 -59
  19. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  20. package/build/backend/commands/nodes/actions/enable.command.d.ts +0 -59
  21. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  22. package/build/backend/commands/nodes/actions/reorder.command.d.ts +0 -82
  23. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  24. package/build/backend/commands/nodes/create.command.d.ts +0 -62
  25. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  26. package/build/backend/commands/nodes/create.command.js +0 -1
  27. package/build/backend/commands/nodes/get-all.command.d.ts +0 -59
  28. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  29. package/build/backend/commands/nodes/get-one.command.d.ts +0 -59
  30. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  31. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  32. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  33. package/build/backend/commands/nodes/update.command.d.ts +0 -85
  34. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  35. package/build/backend/commands/nodes/update.command.js +0 -1
  36. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  37. package/build/backend/commands/users/index.d.ts +0 -1
  38. package/build/backend/commands/users/index.d.ts.map +1 -1
  39. package/build/backend/commands/users/index.js +0 -1
  40. package/build/backend/constants/errors/errors.d.ts +0 -75
  41. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  42. package/build/backend/constants/errors/errors.js +0 -75
  43. package/build/backend/constants/events/events.d.ts +0 -11
  44. package/build/backend/constants/events/events.d.ts.map +1 -1
  45. package/build/backend/constants/events/events.js +0 -10
  46. package/build/backend/constants/templates/template-keys.d.ts +1 -1
  47. package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
  48. package/build/backend/constants/templates/template-keys.js +0 -1
  49. package/build/backend/models/index.d.ts +0 -4
  50. package/build/backend/models/index.d.ts.map +1 -1
  51. package/build/backend/models/index.js +0 -4
  52. package/build/backend/models/nodes.schema.d.ts +0 -41
  53. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  54. package/build/backend/models/nodes.schema.js +0 -3
  55. package/build/frontend/api/controllers/index.js +0 -1
  56. package/build/frontend/api/controllers/users.js +0 -1
  57. package/build/frontend/api/routes.js +0 -15
  58. package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
  59. package/build/frontend/commands/hosts/create.command.js +2 -4
  60. package/build/frontend/commands/index.js +0 -1
  61. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
  62. package/build/frontend/commands/nodes/create.command.js +0 -1
  63. package/build/frontend/commands/nodes/update.command.js +0 -1
  64. package/build/frontend/commands/users/index.js +0 -1
  65. package/build/frontend/constants/errors/errors.js +0 -75
  66. package/build/frontend/constants/events/events.js +0 -10
  67. package/build/frontend/constants/templates/template-keys.js +0 -1
  68. package/build/frontend/models/index.js +0 -4
  69. package/build/frontend/models/nodes.schema.js +0 -3
  70. package/package.json +1 -1
  71. package/build/backend/api/controllers/infra-billing.d.ts +0 -16
  72. package/build/backend/api/controllers/infra-billing.d.ts.map +0 -1
  73. package/build/backend/api/controllers/infra-billing.js +0 -18
  74. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +0 -125
  75. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +0 -1
  76. package/build/backend/commands/infra-billing/create-bill-record.command.js +0 -30
  77. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +0 -413
  78. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +0 -1
  79. package/build/backend/commands/infra-billing/create-billing-node.command.js +0 -38
  80. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +0 -123
  81. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +0 -1
  82. package/build/backend/commands/infra-billing/create-infra-provider.command.js +0 -24
  83. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +0 -119
  84. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +0 -1
  85. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
  86. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +0 -407
  87. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +0 -1
  88. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
  89. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +0 -33
  90. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +0 -1
  91. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
  92. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +0 -122
  93. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +0 -1
  94. package/build/backend/commands/infra-billing/get-bill-records.command.js +0 -31
  95. package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts +0 -399
  96. package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts.map +0 -1
  97. package/build/backend/commands/infra-billing/get-blling-nodes.command.js +0 -26
  98. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +0 -117
  99. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +0 -1
  100. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
  101. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +0 -156
  102. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +0 -1
  103. package/build/backend/commands/infra-billing/get-infra-providers.command.js +0 -19
  104. package/build/backend/commands/infra-billing/index.d.ts +0 -13
  105. package/build/backend/commands/infra-billing/index.d.ts.map +0 -1
  106. package/build/backend/commands/infra-billing/index.js +0 -28
  107. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +0 -410
  108. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +0 -1
  109. package/build/backend/commands/infra-billing/update-billing-node.command.js +0 -35
  110. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +0 -126
  111. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +0 -1
  112. package/build/backend/commands/infra-billing/update-infra-provider.command.js +0 -26
  113. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +0 -114
  114. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +0 -1
  115. package/build/backend/commands/users/get-user-accessible-nodes.command.js +0 -31
  116. package/build/backend/models/infra-billing-available-node.schema.d.ts +0 -90
  117. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +0 -1
  118. package/build/backend/models/infra-billing-available-node.schema.js +0 -9
  119. package/build/backend/models/infra-billing-history-record.schema.d.ts +0 -44
  120. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +0 -1
  121. package/build/backend/models/infra-billing-history-record.schema.js +0 -19
  122. package/build/backend/models/infra-billing-node.schema.d.ts +0 -153
  123. package/build/backend/models/infra-billing-node.schema.d.ts.map +0 -1
  124. package/build/backend/models/infra-billing-node.schema.js +0 -34
  125. package/build/backend/models/infra-provider.schema.d.ts +0 -87
  126. package/build/backend/models/infra-provider.schema.d.ts.map +0 -1
  127. package/build/backend/models/infra-provider.schema.js +0 -41
  128. package/build/frontend/api/controllers/infra-billing.js +0 -18
  129. package/build/frontend/commands/infra-billing/create-bill-record.command.js +0 -30
  130. package/build/frontend/commands/infra-billing/create-billing-node.command.js +0 -38
  131. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +0 -24
  132. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
  133. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
  134. package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
  135. package/build/frontend/commands/infra-billing/get-bill-records.command.js +0 -31
  136. package/build/frontend/commands/infra-billing/get-blling-nodes.command.js +0 -26
  137. package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
  138. package/build/frontend/commands/infra-billing/get-infra-providers.command.js +0 -19
  139. package/build/frontend/commands/infra-billing/index.js +0 -28
  140. package/build/frontend/commands/infra-billing/update-billing-node.command.js +0 -35
  141. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +0 -26
  142. package/build/frontend/commands/users/get-user-accessible-nodes.command.js +0 -31
  143. package/build/frontend/models/infra-billing-available-node.schema.js +0 -9
  144. package/build/frontend/models/infra-billing-history-record.schema.js +0 -19
  145. package/build/frontend/models/infra-billing-node.schema.js +0 -34
  146. 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
- });