@remnawave/backend-contract 2.0.0-alpha.9 → 2.0.1

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 (260) hide show
  1. package/build/backend/api/controllers/auth.d.ts +2 -0
  2. package/build/backend/api/controllers/auth.d.ts.map +1 -1
  3. package/build/backend/api/controllers/auth.js +2 -0
  4. package/build/backend/api/controllers/infra-billing.d.ts +1 -1
  5. package/build/backend/api/controllers/infra-billing.d.ts.map +1 -1
  6. package/build/backend/api/controllers/infra-billing.js +1 -5
  7. package/build/backend/api/controllers/internal-squads.d.ts +4 -0
  8. package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
  9. package/build/backend/api/controllers/internal-squads.js +5 -0
  10. package/build/backend/api/controllers/subscription.d.ts +1 -0
  11. package/build/backend/api/controllers/subscription.d.ts.map +1 -1
  12. package/build/backend/api/controllers/subscription.js +1 -0
  13. package/build/backend/api/controllers/system.d.ts +1 -0
  14. package/build/backend/api/controllers/system.d.ts.map +1 -1
  15. package/build/backend/api/controllers/system.js +1 -0
  16. package/build/backend/api/routes.d.ts +9 -1
  17. package/build/backend/api/routes.d.ts.map +1 -1
  18. package/build/backend/api/routes.js +9 -1
  19. package/build/backend/commands/api-tokens/create.command.d.ts +0 -3
  20. package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
  21. package/build/backend/commands/api-tokens/create.command.js +0 -1
  22. package/build/backend/commands/api-tokens/find.command.d.ts +0 -7
  23. package/build/backend/commands/api-tokens/find.command.d.ts.map +1 -1
  24. package/build/backend/commands/auth/get-status.command.d.ts +23 -0
  25. package/build/backend/commands/auth/get-status.command.d.ts.map +1 -1
  26. package/build/backend/commands/auth/get-status.command.js +3 -0
  27. package/build/backend/commands/auth/oauth2/authorize.command.d.ts +36 -0
  28. package/build/backend/commands/auth/oauth2/authorize.command.d.ts.map +1 -0
  29. package/build/backend/commands/auth/oauth2/authorize.command.js +20 -0
  30. package/build/backend/commands/auth/oauth2/callback.command.d.ts +43 -0
  31. package/build/backend/commands/auth/oauth2/callback.command.d.ts.map +1 -0
  32. package/build/backend/commands/auth/oauth2/callback.command.js +22 -0
  33. package/build/backend/commands/auth/oauth2/index.d.ts +2 -0
  34. package/build/backend/commands/auth/oauth2/index.d.ts.map +1 -1
  35. package/build/backend/commands/auth/oauth2/index.js +2 -0
  36. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +36 -10
  37. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  38. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +36 -10
  39. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  40. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +36 -10
  41. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  42. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +36 -10
  43. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
  44. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +36 -10
  45. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
  46. package/build/backend/commands/hosts/create.command.d.ts +60 -19
  47. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  48. package/build/backend/commands/hosts/create.command.js +14 -13
  49. package/build/backend/commands/hosts/get-all.command.d.ts +36 -10
  50. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  51. package/build/backend/commands/hosts/get-one.command.d.ts +36 -10
  52. package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
  53. package/build/backend/commands/hosts/reorder.command.d.ts +12 -2
  54. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  55. package/build/backend/commands/hosts/update.command.d.ts +72 -21
  56. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  57. package/build/backend/commands/hosts/update.command.js +11 -11
  58. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +125 -0
  59. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -0
  60. package/build/backend/commands/infra-billing/create-bill-record.command.js +30 -0
  61. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +467 -0
  62. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
  63. package/build/backend/commands/infra-billing/create-billing-node.command.js +38 -0
  64. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +59 -0
  65. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -1
  66. package/build/backend/commands/infra-billing/create-infra-provider.command.js +1 -1
  67. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +119 -0
  68. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +1 -0
  69. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  70. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +461 -0
  71. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
  72. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  73. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +122 -0
  74. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -0
  75. package/build/backend/commands/infra-billing/get-bill-records.command.js +31 -0
  76. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +453 -0
  77. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -0
  78. package/build/backend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  79. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +59 -0
  80. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -1
  81. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +77 -0
  82. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -1
  83. package/build/backend/commands/infra-billing/index.d.ts +7 -0
  84. package/build/backend/commands/infra-billing/index.d.ts.map +1 -1
  85. package/build/backend/commands/infra-billing/index.js +7 -0
  86. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +464 -0
  87. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
  88. package/build/backend/commands/infra-billing/update-billing-node.command.js +35 -0
  89. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +59 -0
  90. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -1
  91. package/build/backend/commands/infra-billing/update-infra-provider.command.js +1 -1
  92. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +33 -0
  93. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -0
  94. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  95. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +33 -0
  96. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -0
  97. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  98. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +3 -0
  99. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +1 -0
  100. package/build/backend/commands/internal-squads/bulk-actions/index.js +18 -0
  101. package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..d.ts → get-internal-squad-by-uuid.d.ts} +1 -1
  102. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +1 -0
  103. package/build/backend/commands/internal-squads/index.d.ts +2 -1
  104. package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
  105. package/build/backend/commands/internal-squads/index.js +2 -1
  106. package/build/backend/commands/nodes/actions/disable.command.d.ts +140 -101
  107. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  108. package/build/backend/commands/nodes/actions/enable.command.d.ts +140 -101
  109. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  110. package/build/backend/commands/nodes/actions/reorder.command.d.ts +194 -128
  111. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  112. package/build/backend/commands/nodes/create.command.d.ts +158 -107
  113. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  114. package/build/backend/commands/nodes/create.command.js +6 -4
  115. package/build/backend/commands/nodes/get-all.command.d.ts +140 -101
  116. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  117. package/build/backend/commands/nodes/get-one.command.d.ts +140 -101
  118. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  119. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  120. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  121. package/build/backend/commands/nodes/update.command.d.ts +212 -134
  122. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  123. package/build/backend/commands/nodes/update.command.js +8 -4
  124. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts +361 -0
  125. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -0
  126. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +68 -0
  127. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +4 -4
  128. package/build/backend/commands/subscription/index.d.ts +1 -0
  129. package/build/backend/commands/subscription/index.d.ts.map +1 -1
  130. package/build/backend/commands/subscription/index.js +1 -0
  131. package/build/backend/commands/subscriptions/get-all-subscriptions.command.d.ts +6 -6
  132. package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts +4 -4
  133. package/build/backend/commands/system/get-nodes-metrics.command.d.ts +153 -0
  134. package/build/backend/commands/system/get-nodes-metrics.command.d.ts.map +1 -0
  135. package/build/backend/commands/system/get-nodes-metrics.command.js +33 -0
  136. package/build/backend/commands/system/index.d.ts +1 -0
  137. package/build/backend/commands/system/index.d.ts.map +1 -1
  138. package/build/backend/commands/system/index.js +1 -0
  139. package/build/backend/commands/users/create-user.command.d.ts +6 -6
  140. package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
  141. package/build/backend/commands/users/create-user.command.js +2 -4
  142. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  143. package/build/backend/constants/errors/errors.d.ts +85 -0
  144. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  145. package/build/backend/constants/errors/errors.js +85 -0
  146. package/build/backend/constants/events/events.d.ts +11 -0
  147. package/build/backend/constants/events/events.d.ts.map +1 -1
  148. package/build/backend/constants/events/events.js +10 -0
  149. package/build/backend/constants/headers/headers.constants.d.ts +3 -0
  150. package/build/backend/constants/headers/headers.constants.d.ts.map +1 -0
  151. package/build/backend/constants/headers/headers.constants.js +5 -0
  152. package/build/backend/constants/headers/index.d.ts +2 -0
  153. package/build/backend/constants/headers/index.d.ts.map +1 -0
  154. package/build/backend/constants/headers/index.js +17 -0
  155. package/build/backend/constants/index.d.ts +3 -0
  156. package/build/backend/constants/index.d.ts.map +1 -1
  157. package/build/backend/constants/index.js +3 -0
  158. package/build/backend/constants/messaging/index.d.ts +2 -0
  159. package/build/backend/constants/messaging/index.d.ts.map +1 -0
  160. package/build/backend/constants/messaging/index.js +17 -0
  161. package/build/backend/constants/messaging/messaging.constants.d.ts +13 -0
  162. package/build/backend/constants/messaging/messaging.constants.d.ts.map +1 -0
  163. package/build/backend/constants/messaging/messaging.constants.js +19 -0
  164. package/build/backend/constants/metrics/metric-names.constant.d.ts +17 -0
  165. package/build/backend/constants/metrics/metric-names.constant.d.ts.map +1 -1
  166. package/build/backend/constants/metrics/metric-names.constant.js +17 -0
  167. package/build/backend/constants/oauth2/index.d.ts +2 -0
  168. package/build/backend/constants/oauth2/index.d.ts.map +1 -0
  169. package/build/backend/constants/oauth2/index.js +17 -0
  170. package/build/backend/constants/oauth2/providers.contants.d.ts +9 -0
  171. package/build/backend/constants/oauth2/providers.contants.d.ts.map +1 -0
  172. package/build/backend/constants/oauth2/providers.contants.js +9 -0
  173. package/build/backend/constants/templates/template-keys.d.ts +1 -1
  174. package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
  175. package/build/backend/constants/templates/template-keys.js +1 -0
  176. package/build/backend/models/api-tokens.schema.d.ts +0 -3
  177. package/build/backend/models/api-tokens.schema.d.ts.map +1 -1
  178. package/build/backend/models/api-tokens.schema.js +0 -1
  179. package/build/backend/models/{extented-users.schema.d.ts → extended-users.schema.d.ts} +1 -1
  180. package/build/backend/models/{extented-users.schema.d.ts.map → extended-users.schema.d.ts.map} +1 -1
  181. package/build/backend/models/hosts.schema.d.ts +24 -6
  182. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  183. package/build/backend/models/hosts.schema.js +6 -2
  184. package/build/backend/models/index.d.ts +4 -1
  185. package/build/backend/models/index.d.ts.map +1 -1
  186. package/build/backend/models/index.js +4 -1
  187. package/build/backend/models/infra-billing-available-node.schema.d.ts +117 -0
  188. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
  189. package/build/backend/models/infra-billing-available-node.schema.js +9 -0
  190. package/build/backend/models/infra-billing-history-record.schema.d.ts +44 -0
  191. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -0
  192. package/build/backend/models/infra-billing-history-record.schema.js +19 -0
  193. package/build/backend/models/infra-billing-node.schema.d.ts +180 -0
  194. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
  195. package/build/backend/models/infra-billing-node.schema.js +34 -0
  196. package/build/backend/models/infra-provider.schema.d.ts +63 -0
  197. package/build/backend/models/infra-provider.schema.d.ts.map +1 -1
  198. package/build/backend/models/infra-provider.schema.js +24 -1
  199. package/build/backend/models/nodes.schema.d.ts +96 -63
  200. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  201. package/build/backend/models/nodes.schema.js +6 -3
  202. package/build/frontend/api/controllers/auth.js +2 -0
  203. package/build/frontend/api/controllers/infra-billing.js +1 -5
  204. package/build/frontend/api/controllers/internal-squads.js +5 -0
  205. package/build/frontend/api/controllers/subscription.js +1 -0
  206. package/build/frontend/api/controllers/system.js +1 -0
  207. package/build/frontend/api/routes.js +9 -1
  208. package/build/frontend/commands/api-tokens/create.command.js +0 -1
  209. package/build/frontend/commands/auth/get-status.command.js +3 -0
  210. package/build/frontend/commands/auth/oauth2/authorize.command.js +20 -0
  211. package/build/frontend/commands/auth/oauth2/callback.command.js +22 -0
  212. package/build/frontend/commands/auth/oauth2/index.js +2 -0
  213. package/build/frontend/commands/hosts/create.command.js +14 -13
  214. package/build/frontend/commands/hosts/update.command.js +11 -11
  215. package/build/frontend/commands/infra-billing/create-bill-record.command.js +30 -0
  216. package/build/frontend/commands/infra-billing/create-billing-node.command.js +38 -0
  217. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +1 -1
  218. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  219. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  220. package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
  221. package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  222. package/build/frontend/commands/infra-billing/index.js +7 -0
  223. package/build/frontend/commands/infra-billing/update-billing-node.command.js +35 -0
  224. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +1 -1
  225. package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  226. package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  227. package/build/frontend/commands/internal-squads/bulk-actions/index.js +18 -0
  228. package/build/frontend/commands/internal-squads/index.js +2 -1
  229. package/build/frontend/commands/nodes/create.command.js +6 -4
  230. package/build/frontend/commands/nodes/update.command.js +8 -4
  231. package/build/frontend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +68 -0
  232. package/build/frontend/commands/subscription/index.js +1 -0
  233. package/build/frontend/commands/system/get-nodes-metrics.command.js +33 -0
  234. package/build/frontend/commands/system/index.js +1 -0
  235. package/build/frontend/commands/users/create-user.command.js +2 -4
  236. package/build/frontend/constants/errors/errors.js +85 -0
  237. package/build/frontend/constants/events/events.js +10 -0
  238. package/build/frontend/constants/headers/headers.constants.js +5 -0
  239. package/build/frontend/constants/headers/index.js +17 -0
  240. package/build/frontend/constants/index.js +3 -0
  241. package/build/frontend/constants/messaging/index.js +17 -0
  242. package/build/frontend/constants/messaging/messaging.constants.js +19 -0
  243. package/build/frontend/constants/metrics/metric-names.constant.js +17 -0
  244. package/build/frontend/constants/oauth2/index.js +17 -0
  245. package/build/frontend/constants/oauth2/providers.contants.js +9 -0
  246. package/build/frontend/constants/templates/template-keys.js +1 -0
  247. package/build/frontend/models/api-tokens.schema.js +0 -1
  248. package/build/frontend/models/hosts.schema.js +6 -2
  249. package/build/frontend/models/index.js +4 -1
  250. package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
  251. package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
  252. package/build/frontend/models/infra-billing-node.schema.js +34 -0
  253. package/build/frontend/models/infra-provider.schema.js +24 -1
  254. package/build/frontend/models/nodes.schema.js +6 -3
  255. package/package.json +2 -2
  256. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +0 -1
  257. /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  258. /package/build/backend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
  259. /package/build/frontend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  260. /package/build/frontend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
@@ -0,0 +1,180 @@
1
+ import { z } from 'zod';
2
+ export declare const InfraBillingNodeSchema: z.ZodObject<{
3
+ uuid: z.ZodString;
4
+ nodeUuid: z.ZodString;
5
+ providerUuid: z.ZodString;
6
+ provider: z.ZodObject<Pick<{
7
+ uuid: z.ZodString;
8
+ name: z.ZodString;
9
+ faviconLink: z.ZodNullable<z.ZodString>;
10
+ loginUrl: z.ZodNullable<z.ZodString>;
11
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
12
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
13
+ }, "uuid" | "name" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
14
+ uuid: string;
15
+ name: string;
16
+ faviconLink: string | null;
17
+ loginUrl: string | null;
18
+ }, {
19
+ uuid: string;
20
+ name: string;
21
+ faviconLink: string | null;
22
+ loginUrl: string | null;
23
+ }>;
24
+ node: z.ZodObject<Pick<{
25
+ uuid: z.ZodString;
26
+ name: z.ZodString;
27
+ address: z.ZodString;
28
+ port: z.ZodNullable<z.ZodNumber>;
29
+ isConnected: z.ZodBoolean;
30
+ isDisabled: z.ZodBoolean;
31
+ isConnecting: z.ZodBoolean;
32
+ isNodeOnline: z.ZodBoolean;
33
+ isXrayRunning: z.ZodBoolean;
34
+ lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
35
+ lastStatusMessage: z.ZodNullable<z.ZodString>;
36
+ xrayVersion: z.ZodNullable<z.ZodString>;
37
+ nodeVersion: z.ZodNullable<z.ZodString>;
38
+ xrayUptime: z.ZodString;
39
+ isTrafficTrackingActive: z.ZodBoolean;
40
+ trafficResetDay: z.ZodNullable<z.ZodNumber>;
41
+ trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
42
+ trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
43
+ notifyPercent: z.ZodNullable<z.ZodNumber>;
44
+ usersOnline: z.ZodNullable<z.ZodNumber>;
45
+ viewPosition: z.ZodNumber;
46
+ countryCode: z.ZodString;
47
+ consumptionMultiplier: z.ZodNumber;
48
+ cpuCount: z.ZodNullable<z.ZodNumber>;
49
+ cpuModel: z.ZodNullable<z.ZodString>;
50
+ totalRam: z.ZodNullable<z.ZodString>;
51
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
52
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
53
+ configProfile: z.ZodObject<{
54
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
55
+ activeInbounds: z.ZodArray<z.ZodObject<{
56
+ uuid: z.ZodString;
57
+ profileUuid: z.ZodString;
58
+ tag: z.ZodString;
59
+ type: z.ZodString;
60
+ network: z.ZodNullable<z.ZodString>;
61
+ security: z.ZodNullable<z.ZodString>;
62
+ port: z.ZodNullable<z.ZodNumber>;
63
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ type: string;
66
+ uuid: string;
67
+ profileUuid: string;
68
+ tag: string;
69
+ network: string | null;
70
+ security: string | null;
71
+ port: number | null;
72
+ rawInbound?: unknown;
73
+ }, {
74
+ type: string;
75
+ uuid: string;
76
+ profileUuid: string;
77
+ tag: string;
78
+ network: string | null;
79
+ security: string | null;
80
+ port: number | null;
81
+ rawInbound?: unknown;
82
+ }>, "many">;
83
+ }, "strip", z.ZodTypeAny, {
84
+ activeConfigProfileUuid: string | null;
85
+ activeInbounds: {
86
+ type: string;
87
+ uuid: string;
88
+ profileUuid: string;
89
+ tag: string;
90
+ network: string | null;
91
+ security: string | null;
92
+ port: number | null;
93
+ rawInbound?: unknown;
94
+ }[];
95
+ }, {
96
+ activeConfigProfileUuid: string | null;
97
+ activeInbounds: {
98
+ type: string;
99
+ uuid: string;
100
+ profileUuid: string;
101
+ tag: string;
102
+ network: string | null;
103
+ security: string | null;
104
+ port: number | null;
105
+ rawInbound?: unknown;
106
+ }[];
107
+ }>;
108
+ providerUuid: z.ZodNullable<z.ZodString>;
109
+ provider: z.ZodNullable<z.ZodObject<{
110
+ uuid: z.ZodString;
111
+ name: z.ZodString;
112
+ faviconLink: z.ZodNullable<z.ZodString>;
113
+ loginUrl: z.ZodNullable<z.ZodString>;
114
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
115
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ uuid: string;
118
+ createdAt: Date;
119
+ updatedAt: Date;
120
+ name: string;
121
+ faviconLink: string | null;
122
+ loginUrl: string | null;
123
+ }, {
124
+ uuid: string;
125
+ createdAt: string;
126
+ updatedAt: string;
127
+ name: string;
128
+ faviconLink: string | null;
129
+ loginUrl: string | null;
130
+ }>>;
131
+ }, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
132
+ uuid: string;
133
+ name: string;
134
+ countryCode: string;
135
+ }, {
136
+ uuid: string;
137
+ name: string;
138
+ countryCode: string;
139
+ }>;
140
+ nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
141
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
142
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ uuid: string;
145
+ createdAt: Date;
146
+ updatedAt: Date;
147
+ provider: {
148
+ uuid: string;
149
+ name: string;
150
+ faviconLink: string | null;
151
+ loginUrl: string | null;
152
+ };
153
+ nodeUuid: string;
154
+ providerUuid: string;
155
+ node: {
156
+ uuid: string;
157
+ name: string;
158
+ countryCode: string;
159
+ };
160
+ nextBillingAt: Date;
161
+ }, {
162
+ uuid: string;
163
+ createdAt: string;
164
+ updatedAt: string;
165
+ provider: {
166
+ uuid: string;
167
+ name: string;
168
+ faviconLink: string | null;
169
+ loginUrl: string | null;
170
+ };
171
+ nodeUuid: string;
172
+ providerUuid: string;
173
+ node: {
174
+ uuid: string;
175
+ name: string;
176
+ countryCode: string;
177
+ };
178
+ nextBillingAt: string;
179
+ }>;
180
+ //# sourceMappingURL=infra-billing-node.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-billing-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-node.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BjC,CAAC"}
@@ -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.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
+ });
@@ -6,6 +6,69 @@ export declare const InfraProviderSchema: z.ZodObject<{
6
6
  loginUrl: z.ZodNullable<z.ZodString>;
7
7
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
8
8
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
9
+ billingHistory: z.ZodObject<{
10
+ totalAmount: z.ZodNumber;
11
+ totalBills: z.ZodNumber;
12
+ }, "strip", z.ZodTypeAny, {
13
+ totalAmount: number;
14
+ totalBills: number;
15
+ }, {
16
+ totalAmount: number;
17
+ totalBills: number;
18
+ }>;
19
+ billingNodes: z.ZodArray<z.ZodObject<{
20
+ nodeUuid: z.ZodString;
21
+ name: z.ZodString;
22
+ countryCode: z.ZodString;
23
+ }, "strip", z.ZodTypeAny, {
24
+ name: string;
25
+ countryCode: string;
26
+ nodeUuid: string;
27
+ }, {
28
+ name: string;
29
+ countryCode: string;
30
+ nodeUuid: string;
31
+ }>, "many">;
32
+ }, "strip", z.ZodTypeAny, {
33
+ uuid: string;
34
+ createdAt: Date;
35
+ updatedAt: Date;
36
+ name: string;
37
+ faviconLink: string | null;
38
+ loginUrl: string | null;
39
+ billingHistory: {
40
+ totalAmount: number;
41
+ totalBills: number;
42
+ };
43
+ billingNodes: {
44
+ name: string;
45
+ countryCode: string;
46
+ nodeUuid: string;
47
+ }[];
48
+ }, {
49
+ uuid: string;
50
+ createdAt: string;
51
+ updatedAt: string;
52
+ name: string;
53
+ faviconLink: string | null;
54
+ loginUrl: string | null;
55
+ billingHistory: {
56
+ totalAmount: number;
57
+ totalBills: number;
58
+ };
59
+ billingNodes: {
60
+ name: string;
61
+ countryCode: string;
62
+ nodeUuid: string;
63
+ }[];
64
+ }>;
65
+ export declare const PartialInfraProviderSchema: z.ZodObject<{
66
+ uuid: z.ZodString;
67
+ name: z.ZodString;
68
+ faviconLink: z.ZodNullable<z.ZodString>;
69
+ loginUrl: z.ZodNullable<z.ZodString>;
70
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
71
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
9
72
  }, "strip", z.ZodTypeAny, {
10
73
  uuid: string;
11
74
  createdAt: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"infra-provider.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-provider.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;EAc9B,CAAC"}
1
+ {"version":3,"file":"infra-provider.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-provider.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B9B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;EAcrC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InfraProviderSchema = void 0;
3
+ exports.PartialInfraProviderSchema = exports.InfraProviderSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.InfraProviderSchema = zod_1.z.object({
6
6
  uuid: zod_1.z.string().uuid(),
@@ -15,4 +15,27 @@ exports.InfraProviderSchema = zod_1.z.object({
15
15
  .string()
16
16
  .datetime()
17
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().uuid(),
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)),
18
41
  });
@@ -12,6 +12,7 @@ export declare const NodesSchema: z.ZodObject<{
12
12
  lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
13
13
  lastStatusMessage: z.ZodNullable<z.ZodString>;
14
14
  xrayVersion: z.ZodNullable<z.ZodString>;
15
+ nodeVersion: z.ZodNullable<z.ZodString>;
15
16
  xrayUptime: z.ZodString;
16
17
  isTrafficTrackingActive: z.ZodBoolean;
17
18
  trafficResetDay: z.ZodNullable<z.ZodNumber>;
@@ -27,35 +28,61 @@ export declare const NodesSchema: z.ZodObject<{
27
28
  totalRam: z.ZodNullable<z.ZodString>;
28
29
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
29
30
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
30
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
31
- activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
32
- uuid: z.ZodString;
33
- profileUuid: z.ZodString;
34
- tag: z.ZodString;
35
- type: z.ZodString;
36
- network: z.ZodNullable<z.ZodString>;
37
- security: z.ZodNullable<z.ZodString>;
38
- port: z.ZodNullable<z.ZodNumber>;
39
- rawInbound: z.ZodNullable<z.ZodUnknown>;
31
+ configProfile: z.ZodObject<{
32
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
33
+ activeInbounds: z.ZodArray<z.ZodObject<{
34
+ uuid: z.ZodString;
35
+ profileUuid: z.ZodString;
36
+ tag: z.ZodString;
37
+ type: z.ZodString;
38
+ network: z.ZodNullable<z.ZodString>;
39
+ security: z.ZodNullable<z.ZodString>;
40
+ port: z.ZodNullable<z.ZodNumber>;
41
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ type: string;
44
+ uuid: string;
45
+ profileUuid: string;
46
+ tag: string;
47
+ network: string | null;
48
+ security: string | null;
49
+ port: number | null;
50
+ rawInbound?: unknown;
51
+ }, {
52
+ type: string;
53
+ uuid: string;
54
+ profileUuid: string;
55
+ tag: string;
56
+ network: string | null;
57
+ security: string | null;
58
+ port: number | null;
59
+ rawInbound?: unknown;
60
+ }>, "many">;
40
61
  }, "strip", z.ZodTypeAny, {
41
- type: string;
42
- uuid: string;
43
- profileUuid: string;
44
- tag: string;
45
- network: string | null;
46
- security: string | null;
47
- port: number | null;
48
- rawInbound?: unknown;
62
+ activeConfigProfileUuid: string | null;
63
+ activeInbounds: {
64
+ type: string;
65
+ uuid: string;
66
+ profileUuid: string;
67
+ tag: string;
68
+ network: string | null;
69
+ security: string | null;
70
+ port: number | null;
71
+ rawInbound?: unknown;
72
+ }[];
49
73
  }, {
50
- type: string;
51
- uuid: string;
52
- profileUuid: string;
53
- tag: string;
54
- network: string | null;
55
- security: string | null;
56
- port: number | null;
57
- rawInbound?: unknown;
58
- }>, "many">>;
74
+ activeConfigProfileUuid: string | null;
75
+ activeInbounds: {
76
+ type: string;
77
+ uuid: string;
78
+ profileUuid: string;
79
+ tag: string;
80
+ network: string | null;
81
+ security: string | null;
82
+ port: number | null;
83
+ rawInbound?: unknown;
84
+ }[];
85
+ }>;
59
86
  providerUuid: z.ZodNullable<z.ZodString>;
60
87
  provider: z.ZodNullable<z.ZodObject<{
61
88
  uuid: z.ZodString;
@@ -83,6 +110,14 @@ export declare const NodesSchema: z.ZodObject<{
83
110
  uuid: string;
84
111
  createdAt: Date;
85
112
  updatedAt: Date;
113
+ provider: {
114
+ uuid: string;
115
+ createdAt: Date;
116
+ updatedAt: Date;
117
+ name: string;
118
+ faviconLink: string | null;
119
+ loginUrl: string | null;
120
+ } | null;
86
121
  name: string;
87
122
  port: number | null;
88
123
  countryCode: string;
@@ -97,6 +132,7 @@ export declare const NodesSchema: z.ZodObject<{
97
132
  lastStatusChange: Date | null;
98
133
  lastStatusMessage: string | null;
99
134
  xrayVersion: string | null;
135
+ nodeVersion: string | null;
100
136
  xrayUptime: string;
101
137
  isTrafficTrackingActive: boolean;
102
138
  trafficResetDay: number | null;
@@ -107,30 +143,32 @@ export declare const NodesSchema: z.ZodObject<{
107
143
  cpuCount: number | null;
108
144
  cpuModel: string | null;
109
145
  totalRam: string | null;
110
- activeConfigProfileUuid: string | null;
111
- activeInbounds: {
112
- type: string;
113
- uuid: string;
114
- profileUuid: string;
115
- tag: string;
116
- network: string | null;
117
- security: string | null;
118
- port: number | null;
119
- rawInbound?: unknown;
120
- }[] | null;
146
+ configProfile: {
147
+ activeConfigProfileUuid: string | null;
148
+ activeInbounds: {
149
+ type: string;
150
+ uuid: string;
151
+ profileUuid: string;
152
+ tag: string;
153
+ network: string | null;
154
+ security: string | null;
155
+ port: number | null;
156
+ rawInbound?: unknown;
157
+ }[];
158
+ };
121
159
  providerUuid: string | null;
160
+ }, {
161
+ uuid: string;
162
+ createdAt: string;
163
+ updatedAt: string;
122
164
  provider: {
123
165
  uuid: string;
124
- createdAt: Date;
125
- updatedAt: Date;
166
+ createdAt: string;
167
+ updatedAt: string;
126
168
  name: string;
127
169
  faviconLink: string | null;
128
170
  loginUrl: string | null;
129
171
  } | null;
130
- }, {
131
- uuid: string;
132
- createdAt: string;
133
- updatedAt: string;
134
172
  name: string;
135
173
  port: number | null;
136
174
  countryCode: string;
@@ -145,6 +183,7 @@ export declare const NodesSchema: z.ZodObject<{
145
183
  lastStatusChange: string | null;
146
184
  lastStatusMessage: string | null;
147
185
  xrayVersion: string | null;
186
+ nodeVersion: string | null;
148
187
  xrayUptime: string;
149
188
  isTrafficTrackingActive: boolean;
150
189
  trafficResetDay: number | null;
@@ -155,25 +194,19 @@ export declare const NodesSchema: z.ZodObject<{
155
194
  cpuCount: number | null;
156
195
  cpuModel: string | null;
157
196
  totalRam: string | null;
158
- activeConfigProfileUuid: string | null;
159
- activeInbounds: {
160
- type: string;
161
- uuid: string;
162
- profileUuid: string;
163
- tag: string;
164
- network: string | null;
165
- security: string | null;
166
- port: number | null;
167
- rawInbound?: unknown;
168
- }[] | null;
197
+ configProfile: {
198
+ activeConfigProfileUuid: string | null;
199
+ activeInbounds: {
200
+ type: string;
201
+ uuid: string;
202
+ profileUuid: string;
203
+ tag: string;
204
+ network: string | null;
205
+ security: string | null;
206
+ port: number | null;
207
+ rawInbound?: unknown;
208
+ }[];
209
+ };
169
210
  providerUuid: string | null;
170
- provider: {
171
- uuid: string;
172
- createdAt: string;
173
- updatedAt: string;
174
- name: string;
175
- faviconLink: string | null;
176
- loginUrl: string | null;
177
- } | null;
178
211
  }>;
179
212
  //# sourceMappingURL=nodes.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDtB,CAAC"}
1
+ {"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDtB,CAAC"}
@@ -20,6 +20,7 @@ exports.NodesSchema = zod_1.z.object({
20
20
  .transform((str) => new Date(str))),
21
21
  lastStatusMessage: zod_1.z.nullable(zod_1.z.string()),
22
22
  xrayVersion: zod_1.z.nullable(zod_1.z.string()),
23
+ nodeVersion: zod_1.z.nullable(zod_1.z.string()),
23
24
  xrayUptime: zod_1.z.string(),
24
25
  isTrafficTrackingActive: zod_1.z.boolean(),
25
26
  trafficResetDay: zod_1.z.nullable(zod_1.z.number().int()),
@@ -41,8 +42,10 @@ exports.NodesSchema = zod_1.z.object({
41
42
  .string()
42
43
  .datetime()
43
44
  .transform((str) => new Date(str)),
44
- activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
45
- activeInbounds: zod_1.z.nullable(zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema)),
45
+ configProfile: zod_1.z.object({
46
+ activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
47
+ activeInbounds: zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema),
48
+ }),
46
49
  providerUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
47
- provider: zod_1.z.nullable(infra_provider_schema_1.InfraProviderSchema),
50
+ provider: zod_1.z.nullable(infra_provider_schema_1.PartialInfraProviderSchema),
48
51
  });
@@ -8,5 +8,7 @@ exports.AUTH_ROUTES = {
8
8
  GET_STATUS: 'status',
9
9
  OAUTH2: {
10
10
  TELEGRAM_CALLBACK: 'oauth2/tg/callback',
11
+ AUTHORIZE: 'oauth2/authorize',
12
+ CALLBACK: 'oauth2/callback',
11
13
  },
12
14
  };
@@ -10,13 +10,9 @@ exports.INFRA_BILLING_ROUTES = {
10
10
  GET_PROVIDER_BY_UUID: (uuid) => `providers/${uuid}`, // Get provider by uuid // get
11
11
  GET_BILLING_NODES: 'nodes', // Get list of all nodes billing // get
12
12
  CREATE_BILLING_NODE: 'nodes', // Create new node billing // post
13
- UPDATE_BILLING_NODE: (uuid) => `nodes/${uuid}`, // Update node billing by uuid // patch
13
+ UPDATE_BILLING_NODE: 'nodes', // Update node billing by uuid // patch
14
14
  DELETE_BILLING_NODE: (uuid) => `nodes/${uuid}`, // Delete node billing by uuid // delete
15
15
  GET_BILLING_HISTORY: 'history', // Get list of all nodes billing history // get
16
16
  CREATE_BILLING_HISTORY: 'history', // Create new node billing history // post
17
17
  DELETE_BILLING_HISTORY: (uuid) => `history/${uuid}`, // Delete node billing history by uuid // delete
18
- // GET_BILLING_HISTORY_BY_NODE_UUID: (nodeUuid: string) => `history/${nodeUuid}`, // Get list of all nodes billing history by node uuid // get
19
- // GET_BILLING_HISTORY_BY_PROVIDER_UUID: (providerUuid: string) => `history/${providerUuid}`, // Get list of all nodes billing history by provider uuid // get
20
- // GET_BILLING_HISTORY_BY_NODE_UUID_AND_PROVIDER_UUID: (nodeUuid: string, providerUuid: string) =>
21
- // `history/${nodeUuid}/${providerUuid}`, // Get list of all nodes billing history by node uuid and provider uuid // get
22
18
  };
@@ -2,10 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.INTERNAL_SQUADS_ROUTES = exports.INTERNAL_SQUADS_CONTROLLER = void 0;
4
4
  exports.INTERNAL_SQUADS_CONTROLLER = 'internal-squads';
5
+ const BULK_ACTIONS_ROUTE = 'bulk-actions';
5
6
  exports.INTERNAL_SQUADS_ROUTES = {
6
7
  GET: '', // Get list of all internal squads // get
7
8
  CREATE: '', // Create new internal squad // post
8
9
  UPDATE: '', // Update internal squad by uuid // patch
9
10
  GET_BY_UUID: (uuid) => `${uuid}`, // Get internal squad by uuid // get
10
11
  DELETE: (uuid) => `${uuid}`, // Delete internal squad by uuid // delete
12
+ BULK_ACTIONS: {
13
+ ADD_USERS: (uuid) => `${uuid}/${BULK_ACTIONS_ROUTE}/add-users`, // Add users to internal squad // post
14
+ REMOVE_USERS: (uuid) => `${uuid}/${BULK_ACTIONS_ROUTE}/remove-users`, // Remove users from internal squad // delete
15
+ },
11
16
  };
@@ -6,4 +6,5 @@ exports.SUBSCRIPTION_ROUTES = {
6
6
  GET: '',
7
7
  GET_OUTLINE: '/outline',
8
8
  GET_INFO: (shortUuid) => `${shortUuid}/info`,
9
+ GET_RAW: (shortUuid) => `${shortUuid}/raw`,
9
10
  };
@@ -7,6 +7,7 @@ exports.SYSTEM_ROUTES = {
7
7
  SYSTEM_STATS: 'stats',
8
8
  BANDWIDTH_STATS: 'stats/bandwidth',
9
9
  NODES_STATS: 'stats/nodes',
10
+ NODES_METRICS: 'nodes/metrics',
10
11
  },
11
12
  HEALTH: 'health',
12
13
  };