@remnawave/backend-contract 2.0.0-alpha.8 → 2.0.0

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 (280) 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/index.d.ts +1 -0
  5. package/build/backend/api/controllers/index.d.ts.map +1 -1
  6. package/build/backend/api/controllers/index.js +1 -0
  7. package/build/backend/api/controllers/infra-billing.d.ts +16 -0
  8. package/build/backend/api/controllers/infra-billing.d.ts.map +1 -0
  9. package/build/backend/api/controllers/infra-billing.js +18 -0
  10. package/build/backend/api/controllers/internal-squads.d.ts +4 -0
  11. package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
  12. package/build/backend/api/controllers/internal-squads.js +5 -0
  13. package/build/backend/api/controllers/subscription.d.ts +1 -0
  14. package/build/backend/api/controllers/subscription.d.ts.map +1 -1
  15. package/build/backend/api/controllers/subscription.js +1 -0
  16. package/build/backend/api/controllers/system.d.ts +1 -0
  17. package/build/backend/api/controllers/system.d.ts.map +1 -1
  18. package/build/backend/api/controllers/system.js +1 -0
  19. package/build/backend/api/routes.d.ts +22 -0
  20. package/build/backend/api/routes.d.ts.map +1 -1
  21. package/build/backend/api/routes.js +22 -0
  22. package/build/backend/commands/api-tokens/create.command.d.ts +0 -3
  23. package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
  24. package/build/backend/commands/api-tokens/create.command.js +0 -1
  25. package/build/backend/commands/api-tokens/find.command.d.ts +0 -7
  26. package/build/backend/commands/api-tokens/find.command.d.ts.map +1 -1
  27. package/build/backend/commands/auth/get-status.command.d.ts +23 -0
  28. package/build/backend/commands/auth/get-status.command.d.ts.map +1 -1
  29. package/build/backend/commands/auth/get-status.command.js +3 -0
  30. package/build/backend/commands/auth/oauth2/authorize.command.d.ts +36 -0
  31. package/build/backend/commands/auth/oauth2/authorize.command.d.ts.map +1 -0
  32. package/build/backend/commands/auth/oauth2/authorize.command.js +20 -0
  33. package/build/backend/commands/auth/oauth2/callback.command.d.ts +43 -0
  34. package/build/backend/commands/auth/oauth2/callback.command.d.ts.map +1 -0
  35. package/build/backend/commands/auth/oauth2/callback.command.js +22 -0
  36. package/build/backend/commands/auth/oauth2/index.d.ts +2 -0
  37. package/build/backend/commands/auth/oauth2/index.d.ts.map +1 -1
  38. package/build/backend/commands/auth/oauth2/index.js +2 -0
  39. package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
  40. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +31 -10
  41. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  42. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +31 -10
  43. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  44. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +31 -10
  45. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  46. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +31 -10
  47. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
  48. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +31 -10
  49. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
  50. package/build/backend/commands/hosts/create.command.d.ts +52 -19
  51. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  52. package/build/backend/commands/hosts/create.command.js +13 -13
  53. package/build/backend/commands/hosts/get-all.command.d.ts +31 -10
  54. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  55. package/build/backend/commands/hosts/get-one.command.d.ts +31 -10
  56. package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
  57. package/build/backend/commands/hosts/reorder.command.d.ts +11 -2
  58. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  59. package/build/backend/commands/hosts/update.command.d.ts +63 -21
  60. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  61. package/build/backend/commands/hosts/update.command.js +10 -11
  62. package/build/backend/commands/index.d.ts +1 -0
  63. package/build/backend/commands/index.d.ts.map +1 -1
  64. package/build/backend/commands/index.js +1 -0
  65. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +125 -0
  66. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -0
  67. package/build/backend/commands/infra-billing/create-bill-record.command.js +30 -0
  68. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +467 -0
  69. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
  70. package/build/backend/commands/infra-billing/create-billing-node.command.js +38 -0
  71. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +123 -0
  72. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -0
  73. package/build/backend/commands/infra-billing/create-infra-provider.command.js +24 -0
  74. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +119 -0
  75. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +1 -0
  76. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  77. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +461 -0
  78. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
  79. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  80. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +33 -0
  81. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +1 -0
  82. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  83. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +122 -0
  84. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -0
  85. package/build/backend/commands/infra-billing/get-bill-records.command.js +31 -0
  86. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +453 -0
  87. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -0
  88. package/build/backend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  89. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +117 -0
  90. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -0
  91. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  92. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +156 -0
  93. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -0
  94. package/build/backend/commands/infra-billing/get-infra-providers.command.js +19 -0
  95. package/build/backend/commands/infra-billing/index.d.ts +13 -0
  96. package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
  97. package/build/backend/commands/infra-billing/index.js +28 -0
  98. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +464 -0
  99. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
  100. package/build/backend/commands/infra-billing/update-billing-node.command.js +35 -0
  101. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +126 -0
  102. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -0
  103. package/build/backend/commands/infra-billing/update-infra-provider.command.js +26 -0
  104. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +33 -0
  105. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -0
  106. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  107. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +33 -0
  108. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -0
  109. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  110. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +3 -0
  111. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +1 -0
  112. package/build/backend/commands/internal-squads/bulk-actions/index.js +18 -0
  113. package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
  114. package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..d.ts → get-internal-squad-by-uuid.d.ts} +1 -1
  115. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +1 -0
  116. package/build/backend/commands/internal-squads/index.d.ts +2 -1
  117. package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
  118. package/build/backend/commands/internal-squads/index.js +2 -1
  119. package/build/backend/commands/nodes/actions/disable.command.d.ts +166 -68
  120. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  121. package/build/backend/commands/nodes/actions/enable.command.d.ts +166 -68
  122. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  123. package/build/backend/commands/nodes/actions/reorder.command.d.ts +240 -92
  124. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  125. package/build/backend/commands/nodes/create.command.d.ts +187 -74
  126. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  127. package/build/backend/commands/nodes/create.command.js +7 -4
  128. package/build/backend/commands/nodes/get-all.command.d.ts +166 -68
  129. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  130. package/build/backend/commands/nodes/get-one.command.d.ts +166 -68
  131. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  132. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  133. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  134. package/build/backend/commands/nodes/update.command.d.ts +261 -98
  135. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  136. package/build/backend/commands/nodes/update.command.js +9 -4
  137. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts +354 -0
  138. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -0
  139. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +67 -0
  140. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +4 -4
  141. package/build/backend/commands/subscription/index.d.ts +1 -0
  142. package/build/backend/commands/subscription/index.d.ts.map +1 -1
  143. package/build/backend/commands/subscription/index.js +1 -0
  144. package/build/backend/commands/subscriptions/get-all-subscriptions.command.d.ts +6 -6
  145. package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts +4 -4
  146. package/build/backend/commands/system/get-nodes-metrics.command.d.ts +153 -0
  147. package/build/backend/commands/system/get-nodes-metrics.command.d.ts.map +1 -0
  148. package/build/backend/commands/system/get-nodes-metrics.command.js +33 -0
  149. package/build/backend/commands/system/index.d.ts +1 -0
  150. package/build/backend/commands/system/index.d.ts.map +1 -1
  151. package/build/backend/commands/system/index.js +1 -0
  152. package/build/backend/commands/users/create-user.command.d.ts +6 -6
  153. package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
  154. package/build/backend/commands/users/create-user.command.js +2 -4
  155. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  156. package/build/backend/constants/errors/errors.d.ts +115 -0
  157. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  158. package/build/backend/constants/errors/errors.js +115 -0
  159. package/build/backend/constants/events/events.d.ts +11 -0
  160. package/build/backend/constants/events/events.d.ts.map +1 -1
  161. package/build/backend/constants/events/events.js +10 -0
  162. package/build/backend/constants/headers/headers.constants.d.ts +3 -0
  163. package/build/backend/constants/headers/headers.constants.d.ts.map +1 -0
  164. package/build/backend/constants/headers/headers.constants.js +5 -0
  165. package/build/backend/constants/headers/index.d.ts +2 -0
  166. package/build/backend/constants/headers/index.d.ts.map +1 -0
  167. package/build/backend/constants/headers/index.js +17 -0
  168. package/build/backend/constants/index.d.ts +3 -0
  169. package/build/backend/constants/index.d.ts.map +1 -1
  170. package/build/backend/constants/index.js +3 -0
  171. package/build/backend/constants/messaging/index.d.ts +2 -0
  172. package/build/backend/constants/messaging/index.d.ts.map +1 -0
  173. package/build/backend/constants/messaging/index.js +17 -0
  174. package/build/backend/constants/messaging/messaging.constants.d.ts +13 -0
  175. package/build/backend/constants/messaging/messaging.constants.d.ts.map +1 -0
  176. package/build/backend/constants/messaging/messaging.constants.js +19 -0
  177. package/build/backend/constants/metrics/metric-names.constant.d.ts +17 -0
  178. package/build/backend/constants/metrics/metric-names.constant.d.ts.map +1 -1
  179. package/build/backend/constants/metrics/metric-names.constant.js +17 -0
  180. package/build/backend/constants/oauth2/index.d.ts +2 -0
  181. package/build/backend/constants/oauth2/index.d.ts.map +1 -0
  182. package/build/backend/constants/oauth2/index.js +17 -0
  183. package/build/backend/constants/oauth2/providers.contants.d.ts +9 -0
  184. package/build/backend/constants/oauth2/providers.contants.d.ts.map +1 -0
  185. package/build/backend/constants/oauth2/providers.contants.js +9 -0
  186. package/build/backend/constants/templates/template-keys.d.ts +1 -1
  187. package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
  188. package/build/backend/constants/templates/template-keys.js +1 -0
  189. package/build/backend/models/api-tokens.schema.d.ts +0 -3
  190. package/build/backend/models/api-tokens.schema.d.ts.map +1 -1
  191. package/build/backend/models/api-tokens.schema.js +0 -1
  192. package/build/backend/models/{extented-users.schema.d.ts → extended-users.schema.d.ts} +1 -1
  193. package/build/backend/models/{extented-users.schema.d.ts.map → extended-users.schema.d.ts.map} +1 -1
  194. package/build/backend/models/hosts.schema.d.ts +21 -6
  195. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  196. package/build/backend/models/hosts.schema.js +5 -2
  197. package/build/backend/models/index.d.ts +5 -1
  198. package/build/backend/models/index.d.ts.map +1 -1
  199. package/build/backend/models/index.js +5 -1
  200. package/build/backend/models/infra-billing-available-node.schema.d.ts +117 -0
  201. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
  202. package/build/backend/models/infra-billing-available-node.schema.js +9 -0
  203. package/build/backend/models/infra-billing-history-record.schema.d.ts +44 -0
  204. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -0
  205. package/build/backend/models/infra-billing-history-record.schema.js +19 -0
  206. package/build/backend/models/infra-billing-node.schema.d.ts +180 -0
  207. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
  208. package/build/backend/models/infra-billing-node.schema.js +34 -0
  209. package/build/backend/models/infra-provider.schema.d.ts +87 -0
  210. package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
  211. package/build/backend/models/infra-provider.schema.js +41 -0
  212. package/build/backend/models/nodes.schema.d.ts +120 -46
  213. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  214. package/build/backend/models/nodes.schema.js +8 -2
  215. package/build/frontend/api/controllers/auth.js +2 -0
  216. package/build/frontend/api/controllers/index.js +1 -0
  217. package/build/frontend/api/controllers/infra-billing.js +18 -0
  218. package/build/frontend/api/controllers/internal-squads.js +5 -0
  219. package/build/frontend/api/controllers/subscription.js +1 -0
  220. package/build/frontend/api/controllers/system.js +1 -0
  221. package/build/frontend/api/routes.js +22 -0
  222. package/build/frontend/commands/api-tokens/create.command.js +0 -1
  223. package/build/frontend/commands/auth/get-status.command.js +3 -0
  224. package/build/frontend/commands/auth/oauth2/authorize.command.js +20 -0
  225. package/build/frontend/commands/auth/oauth2/callback.command.js +22 -0
  226. package/build/frontend/commands/auth/oauth2/index.js +2 -0
  227. package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
  228. package/build/frontend/commands/hosts/create.command.js +13 -13
  229. package/build/frontend/commands/hosts/update.command.js +10 -11
  230. package/build/frontend/commands/index.js +1 -0
  231. package/build/frontend/commands/infra-billing/create-bill-record.command.js +30 -0
  232. package/build/frontend/commands/infra-billing/create-billing-node.command.js +38 -0
  233. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +24 -0
  234. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  235. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  236. package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  237. package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
  238. package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  239. package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  240. package/build/frontend/commands/infra-billing/get-infra-providers.command.js +19 -0
  241. package/build/frontend/commands/infra-billing/index.js +28 -0
  242. package/build/frontend/commands/infra-billing/update-billing-node.command.js +35 -0
  243. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +26 -0
  244. package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  245. package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  246. package/build/frontend/commands/internal-squads/bulk-actions/index.js +18 -0
  247. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
  248. package/build/frontend/commands/internal-squads/index.js +2 -1
  249. package/build/frontend/commands/nodes/create.command.js +7 -4
  250. package/build/frontend/commands/nodes/update.command.js +9 -4
  251. package/build/frontend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +67 -0
  252. package/build/frontend/commands/subscription/index.js +1 -0
  253. package/build/frontend/commands/system/get-nodes-metrics.command.js +33 -0
  254. package/build/frontend/commands/system/index.js +1 -0
  255. package/build/frontend/commands/users/create-user.command.js +2 -4
  256. package/build/frontend/constants/errors/errors.js +115 -0
  257. package/build/frontend/constants/events/events.js +10 -0
  258. package/build/frontend/constants/headers/headers.constants.js +5 -0
  259. package/build/frontend/constants/headers/index.js +17 -0
  260. package/build/frontend/constants/index.js +3 -0
  261. package/build/frontend/constants/messaging/index.js +17 -0
  262. package/build/frontend/constants/messaging/messaging.constants.js +19 -0
  263. package/build/frontend/constants/metrics/metric-names.constant.js +17 -0
  264. package/build/frontend/constants/oauth2/index.js +17 -0
  265. package/build/frontend/constants/oauth2/providers.contants.js +9 -0
  266. package/build/frontend/constants/templates/template-keys.js +1 -0
  267. package/build/frontend/models/api-tokens.schema.js +0 -1
  268. package/build/frontend/models/hosts.schema.js +5 -2
  269. package/build/frontend/models/index.js +5 -1
  270. package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
  271. package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
  272. package/build/frontend/models/infra-billing-node.schema.js +34 -0
  273. package/build/frontend/models/infra-provider.schema.js +41 -0
  274. package/build/frontend/models/nodes.schema.js +8 -2
  275. package/package.json +2 -2
  276. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +0 -1
  277. /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  278. /package/build/backend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
  279. /package/build/frontend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  280. /package/build/frontend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
@@ -0,0 +1,467 @@
1
+ import { z } from 'zod';
2
+ export declare namespace CreateInfraBillingNodeCommand {
3
+ const url: "/api/infra-billing/nodes";
4
+ const TSQ_url: "/api/infra-billing/nodes";
5
+ const endpointDetails: import("../../constants").EndpointDetails;
6
+ const RequestSchema: z.ZodObject<{
7
+ providerUuid: z.ZodString;
8
+ nodeUuid: z.ZodString;
9
+ nextBillingAt: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ nodeUuid: string;
12
+ providerUuid: string;
13
+ nextBillingAt?: Date | undefined;
14
+ }, {
15
+ nodeUuid: string;
16
+ providerUuid: string;
17
+ nextBillingAt?: string | undefined;
18
+ }>;
19
+ type Request = z.infer<typeof RequestSchema>;
20
+ const ResponseSchema: z.ZodObject<{
21
+ response: z.ZodObject<{
22
+ totalBillingNodes: z.ZodNumber;
23
+ billingNodes: z.ZodArray<z.ZodObject<{
24
+ uuid: z.ZodString;
25
+ nodeUuid: z.ZodString;
26
+ providerUuid: z.ZodString;
27
+ provider: z.ZodObject<Pick<{
28
+ uuid: z.ZodString;
29
+ name: z.ZodString;
30
+ faviconLink: z.ZodNullable<z.ZodString>;
31
+ loginUrl: z.ZodNullable<z.ZodString>;
32
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
33
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
34
+ }, "uuid" | "name" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
35
+ uuid: string;
36
+ name: string;
37
+ faviconLink: string | null;
38
+ loginUrl: string | null;
39
+ }, {
40
+ uuid: string;
41
+ name: string;
42
+ faviconLink: string | null;
43
+ loginUrl: string | null;
44
+ }>;
45
+ node: z.ZodObject<Pick<{
46
+ uuid: z.ZodString;
47
+ name: z.ZodString;
48
+ address: z.ZodString;
49
+ port: z.ZodNullable<z.ZodNumber>;
50
+ isConnected: z.ZodBoolean;
51
+ isDisabled: z.ZodBoolean;
52
+ isConnecting: z.ZodBoolean;
53
+ isNodeOnline: z.ZodBoolean;
54
+ isXrayRunning: z.ZodBoolean;
55
+ lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
56
+ lastStatusMessage: z.ZodNullable<z.ZodString>;
57
+ xrayVersion: z.ZodNullable<z.ZodString>;
58
+ nodeVersion: z.ZodNullable<z.ZodString>;
59
+ xrayUptime: z.ZodString;
60
+ isTrafficTrackingActive: z.ZodBoolean;
61
+ trafficResetDay: z.ZodNullable<z.ZodNumber>;
62
+ trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
63
+ trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
64
+ notifyPercent: z.ZodNullable<z.ZodNumber>;
65
+ usersOnline: z.ZodNullable<z.ZodNumber>;
66
+ viewPosition: z.ZodNumber;
67
+ countryCode: z.ZodString;
68
+ consumptionMultiplier: z.ZodNumber;
69
+ cpuCount: z.ZodNullable<z.ZodNumber>;
70
+ cpuModel: z.ZodNullable<z.ZodString>;
71
+ totalRam: z.ZodNullable<z.ZodString>;
72
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
73
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
74
+ configProfile: z.ZodObject<{
75
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
76
+ activeInbounds: z.ZodArray<z.ZodObject<{
77
+ uuid: z.ZodString;
78
+ profileUuid: z.ZodString;
79
+ tag: z.ZodString;
80
+ type: z.ZodString;
81
+ network: z.ZodNullable<z.ZodString>;
82
+ security: z.ZodNullable<z.ZodString>;
83
+ port: z.ZodNullable<z.ZodNumber>;
84
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
85
+ }, "strip", z.ZodTypeAny, {
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
+ type: string;
96
+ uuid: string;
97
+ profileUuid: string;
98
+ tag: string;
99
+ network: string | null;
100
+ security: string | null;
101
+ port: number | null;
102
+ rawInbound?: unknown;
103
+ }>, "many">;
104
+ }, "strip", z.ZodTypeAny, {
105
+ activeConfigProfileUuid: string | null;
106
+ activeInbounds: {
107
+ type: string;
108
+ uuid: string;
109
+ profileUuid: string;
110
+ tag: string;
111
+ network: string | null;
112
+ security: string | null;
113
+ port: number | null;
114
+ rawInbound?: unknown;
115
+ }[];
116
+ }, {
117
+ activeConfigProfileUuid: string | null;
118
+ activeInbounds: {
119
+ type: string;
120
+ uuid: string;
121
+ profileUuid: string;
122
+ tag: string;
123
+ network: string | null;
124
+ security: string | null;
125
+ port: number | null;
126
+ rawInbound?: unknown;
127
+ }[];
128
+ }>;
129
+ providerUuid: z.ZodNullable<z.ZodString>;
130
+ provider: z.ZodNullable<z.ZodObject<{
131
+ uuid: z.ZodString;
132
+ name: z.ZodString;
133
+ faviconLink: z.ZodNullable<z.ZodString>;
134
+ loginUrl: z.ZodNullable<z.ZodString>;
135
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
136
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ uuid: string;
139
+ createdAt: Date;
140
+ updatedAt: Date;
141
+ name: string;
142
+ faviconLink: string | null;
143
+ loginUrl: string | null;
144
+ }, {
145
+ uuid: string;
146
+ createdAt: string;
147
+ updatedAt: string;
148
+ name: string;
149
+ faviconLink: string | null;
150
+ loginUrl: string | null;
151
+ }>>;
152
+ }, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
153
+ uuid: string;
154
+ name: string;
155
+ countryCode: string;
156
+ }, {
157
+ uuid: string;
158
+ name: string;
159
+ countryCode: string;
160
+ }>;
161
+ nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
162
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
163
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ uuid: string;
166
+ createdAt: Date;
167
+ updatedAt: Date;
168
+ provider: {
169
+ uuid: string;
170
+ name: string;
171
+ faviconLink: string | null;
172
+ loginUrl: string | null;
173
+ };
174
+ nodeUuid: string;
175
+ providerUuid: string;
176
+ node: {
177
+ uuid: string;
178
+ name: string;
179
+ countryCode: string;
180
+ };
181
+ nextBillingAt: Date;
182
+ }, {
183
+ uuid: string;
184
+ createdAt: string;
185
+ updatedAt: string;
186
+ provider: {
187
+ uuid: string;
188
+ name: string;
189
+ faviconLink: string | null;
190
+ loginUrl: string | null;
191
+ };
192
+ nodeUuid: string;
193
+ providerUuid: string;
194
+ node: {
195
+ uuid: string;
196
+ name: string;
197
+ countryCode: string;
198
+ };
199
+ nextBillingAt: string;
200
+ }>, "many">;
201
+ availableBillingNodes: z.ZodArray<z.ZodObject<Pick<{
202
+ uuid: z.ZodString;
203
+ name: z.ZodString;
204
+ address: z.ZodString;
205
+ port: z.ZodNullable<z.ZodNumber>;
206
+ isConnected: z.ZodBoolean;
207
+ isDisabled: z.ZodBoolean;
208
+ isConnecting: z.ZodBoolean;
209
+ isNodeOnline: z.ZodBoolean;
210
+ isXrayRunning: z.ZodBoolean;
211
+ lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
212
+ lastStatusMessage: z.ZodNullable<z.ZodString>;
213
+ xrayVersion: z.ZodNullable<z.ZodString>;
214
+ nodeVersion: z.ZodNullable<z.ZodString>;
215
+ xrayUptime: z.ZodString;
216
+ isTrafficTrackingActive: z.ZodBoolean;
217
+ trafficResetDay: z.ZodNullable<z.ZodNumber>;
218
+ trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
219
+ trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
220
+ notifyPercent: z.ZodNullable<z.ZodNumber>;
221
+ usersOnline: z.ZodNullable<z.ZodNumber>;
222
+ viewPosition: z.ZodNumber;
223
+ countryCode: z.ZodString;
224
+ consumptionMultiplier: z.ZodNumber;
225
+ cpuCount: z.ZodNullable<z.ZodNumber>;
226
+ cpuModel: z.ZodNullable<z.ZodString>;
227
+ totalRam: z.ZodNullable<z.ZodString>;
228
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
229
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
230
+ configProfile: z.ZodObject<{
231
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
232
+ activeInbounds: z.ZodArray<z.ZodObject<{
233
+ uuid: z.ZodString;
234
+ profileUuid: z.ZodString;
235
+ tag: z.ZodString;
236
+ type: z.ZodString;
237
+ network: z.ZodNullable<z.ZodString>;
238
+ security: z.ZodNullable<z.ZodString>;
239
+ port: z.ZodNullable<z.ZodNumber>;
240
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
241
+ }, "strip", z.ZodTypeAny, {
242
+ type: string;
243
+ uuid: string;
244
+ profileUuid: string;
245
+ tag: string;
246
+ network: string | null;
247
+ security: string | null;
248
+ port: number | null;
249
+ rawInbound?: unknown;
250
+ }, {
251
+ type: string;
252
+ uuid: string;
253
+ profileUuid: string;
254
+ tag: string;
255
+ network: string | null;
256
+ security: string | null;
257
+ port: number | null;
258
+ rawInbound?: unknown;
259
+ }>, "many">;
260
+ }, "strip", z.ZodTypeAny, {
261
+ activeConfigProfileUuid: string | null;
262
+ activeInbounds: {
263
+ type: string;
264
+ uuid: string;
265
+ profileUuid: string;
266
+ tag: string;
267
+ network: string | null;
268
+ security: string | null;
269
+ port: number | null;
270
+ rawInbound?: unknown;
271
+ }[];
272
+ }, {
273
+ activeConfigProfileUuid: string | null;
274
+ activeInbounds: {
275
+ type: string;
276
+ uuid: string;
277
+ profileUuid: string;
278
+ tag: string;
279
+ network: string | null;
280
+ security: string | null;
281
+ port: number | null;
282
+ rawInbound?: unknown;
283
+ }[];
284
+ }>;
285
+ providerUuid: z.ZodNullable<z.ZodString>;
286
+ provider: z.ZodNullable<z.ZodObject<{
287
+ uuid: z.ZodString;
288
+ name: z.ZodString;
289
+ faviconLink: z.ZodNullable<z.ZodString>;
290
+ loginUrl: z.ZodNullable<z.ZodString>;
291
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
292
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
293
+ }, "strip", z.ZodTypeAny, {
294
+ uuid: string;
295
+ createdAt: Date;
296
+ updatedAt: Date;
297
+ name: string;
298
+ faviconLink: string | null;
299
+ loginUrl: string | null;
300
+ }, {
301
+ uuid: string;
302
+ createdAt: string;
303
+ updatedAt: string;
304
+ name: string;
305
+ faviconLink: string | null;
306
+ loginUrl: string | null;
307
+ }>>;
308
+ }, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
309
+ uuid: string;
310
+ name: string;
311
+ countryCode: string;
312
+ }, {
313
+ uuid: string;
314
+ name: string;
315
+ countryCode: string;
316
+ }>, "many">;
317
+ totalAvailableBillingNodes: z.ZodNumber;
318
+ stats: z.ZodObject<{
319
+ upcomingNodesCount: z.ZodNumber;
320
+ currentMonthPayments: z.ZodNumber;
321
+ totalSpent: z.ZodNumber;
322
+ }, "strip", z.ZodTypeAny, {
323
+ upcomingNodesCount: number;
324
+ currentMonthPayments: number;
325
+ totalSpent: number;
326
+ }, {
327
+ upcomingNodesCount: number;
328
+ currentMonthPayments: number;
329
+ totalSpent: number;
330
+ }>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ stats: {
333
+ upcomingNodesCount: number;
334
+ currentMonthPayments: number;
335
+ totalSpent: number;
336
+ };
337
+ billingNodes: {
338
+ uuid: string;
339
+ createdAt: Date;
340
+ updatedAt: Date;
341
+ provider: {
342
+ uuid: string;
343
+ name: string;
344
+ faviconLink: string | null;
345
+ loginUrl: string | null;
346
+ };
347
+ nodeUuid: string;
348
+ providerUuid: string;
349
+ node: {
350
+ uuid: string;
351
+ name: string;
352
+ countryCode: string;
353
+ };
354
+ nextBillingAt: Date;
355
+ }[];
356
+ totalBillingNodes: number;
357
+ availableBillingNodes: {
358
+ uuid: string;
359
+ name: string;
360
+ countryCode: string;
361
+ }[];
362
+ totalAvailableBillingNodes: number;
363
+ }, {
364
+ stats: {
365
+ upcomingNodesCount: number;
366
+ currentMonthPayments: number;
367
+ totalSpent: number;
368
+ };
369
+ billingNodes: {
370
+ uuid: string;
371
+ createdAt: string;
372
+ updatedAt: string;
373
+ provider: {
374
+ uuid: string;
375
+ name: string;
376
+ faviconLink: string | null;
377
+ loginUrl: string | null;
378
+ };
379
+ nodeUuid: string;
380
+ providerUuid: string;
381
+ node: {
382
+ uuid: string;
383
+ name: string;
384
+ countryCode: string;
385
+ };
386
+ nextBillingAt: string;
387
+ }[];
388
+ totalBillingNodes: number;
389
+ availableBillingNodes: {
390
+ uuid: string;
391
+ name: string;
392
+ countryCode: string;
393
+ }[];
394
+ totalAvailableBillingNodes: number;
395
+ }>;
396
+ }, "strip", z.ZodTypeAny, {
397
+ response: {
398
+ stats: {
399
+ upcomingNodesCount: number;
400
+ currentMonthPayments: number;
401
+ totalSpent: number;
402
+ };
403
+ billingNodes: {
404
+ uuid: string;
405
+ createdAt: Date;
406
+ updatedAt: Date;
407
+ provider: {
408
+ uuid: string;
409
+ name: string;
410
+ faviconLink: string | null;
411
+ loginUrl: string | null;
412
+ };
413
+ nodeUuid: string;
414
+ providerUuid: string;
415
+ node: {
416
+ uuid: string;
417
+ name: string;
418
+ countryCode: string;
419
+ };
420
+ nextBillingAt: Date;
421
+ }[];
422
+ totalBillingNodes: number;
423
+ availableBillingNodes: {
424
+ uuid: string;
425
+ name: string;
426
+ countryCode: string;
427
+ }[];
428
+ totalAvailableBillingNodes: number;
429
+ };
430
+ }, {
431
+ response: {
432
+ stats: {
433
+ upcomingNodesCount: number;
434
+ currentMonthPayments: number;
435
+ totalSpent: number;
436
+ };
437
+ billingNodes: {
438
+ uuid: string;
439
+ createdAt: string;
440
+ updatedAt: string;
441
+ provider: {
442
+ uuid: string;
443
+ name: string;
444
+ faviconLink: string | null;
445
+ loginUrl: string | null;
446
+ };
447
+ nodeUuid: string;
448
+ providerUuid: string;
449
+ node: {
450
+ uuid: string;
451
+ name: string;
452
+ countryCode: string;
453
+ };
454
+ nextBillingAt: string;
455
+ }[];
456
+ totalBillingNodes: number;
457
+ availableBillingNodes: {
458
+ uuid: string;
459
+ name: string;
460
+ countryCode: string;
461
+ }[];
462
+ totalAvailableBillingNodes: number;
463
+ };
464
+ }>;
465
+ type Response = z.infer<typeof ResponseSchema>;
466
+ }
467
+ //# sourceMappingURL=create-billing-node.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-billing-node.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/create-billing-node.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,4BAA6C,CAAC;IACvD,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;MAWxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateInfraBillingNodeCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ const api_1 = require("../../api");
7
+ const constants_1 = require("../../constants");
8
+ var CreateInfraBillingNodeCommand;
9
+ (function (CreateInfraBillingNodeCommand) {
10
+ CreateInfraBillingNodeCommand.url = api_1.REST_API.INFRA_BILLING.CREATE_BILLING_NODE;
11
+ CreateInfraBillingNodeCommand.TSQ_url = CreateInfraBillingNodeCommand.url;
12
+ CreateInfraBillingNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.CREATE_BILLING_NODE, 'post', 'Create infra billing node');
13
+ CreateInfraBillingNodeCommand.RequestSchema = zod_1.z.object({
14
+ providerUuid: zod_1.z.string().uuid(),
15
+ nodeUuid: zod_1.z.string().uuid(),
16
+ nextBillingAt: zod_1.z
17
+ .string({
18
+ invalid_type_error: 'Invalid date format',
19
+ })
20
+ .datetime({ message: 'Invalid date format', offset: true, local: true })
21
+ .transform((str) => new Date(str))
22
+ .optional()
23
+ .describe('Next billing date. Format: 2025-01-17T15:38:45.065Z'),
24
+ });
25
+ CreateInfraBillingNodeCommand.ResponseSchema = zod_1.z.object({
26
+ response: zod_1.z.object({
27
+ totalBillingNodes: zod_1.z.number(),
28
+ billingNodes: zod_1.z.array(models_1.InfraBillingNodeSchema),
29
+ availableBillingNodes: zod_1.z.array(models_1.InfraBillingAvailableNodeSchema),
30
+ totalAvailableBillingNodes: zod_1.z.number(),
31
+ stats: zod_1.z.object({
32
+ upcomingNodesCount: zod_1.z.number(),
33
+ currentMonthPayments: zod_1.z.number(),
34
+ totalSpent: zod_1.z.number(),
35
+ }),
36
+ }),
37
+ });
38
+ })(CreateInfraBillingNodeCommand || (exports.CreateInfraBillingNodeCommand = CreateInfraBillingNodeCommand = {}));
@@ -0,0 +1,123 @@
1
+ import { z } from 'zod';
2
+ export declare namespace CreateInfraProviderCommand {
3
+ const url: "/api/infra-billing/providers";
4
+ const TSQ_url: "/api/infra-billing/providers";
5
+ const endpointDetails: import("../../constants").EndpointDetails;
6
+ const RequestSchema: z.ZodObject<{
7
+ name: z.ZodString;
8
+ faviconLink: z.ZodOptional<z.ZodString>;
9
+ loginUrl: z.ZodOptional<z.ZodString>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ name: string;
12
+ faviconLink?: string | undefined;
13
+ loginUrl?: string | undefined;
14
+ }, {
15
+ name: string;
16
+ faviconLink?: string | undefined;
17
+ loginUrl?: string | undefined;
18
+ }>;
19
+ type Request = z.infer<typeof RequestSchema>;
20
+ const ResponseSchema: z.ZodObject<{
21
+ response: z.ZodObject<{
22
+ uuid: z.ZodString;
23
+ name: z.ZodString;
24
+ faviconLink: z.ZodNullable<z.ZodString>;
25
+ loginUrl: z.ZodNullable<z.ZodString>;
26
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
27
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
28
+ billingHistory: z.ZodObject<{
29
+ totalAmount: z.ZodNumber;
30
+ totalBills: z.ZodNumber;
31
+ }, "strip", z.ZodTypeAny, {
32
+ totalAmount: number;
33
+ totalBills: number;
34
+ }, {
35
+ totalAmount: number;
36
+ totalBills: number;
37
+ }>;
38
+ billingNodes: z.ZodArray<z.ZodObject<{
39
+ nodeUuid: z.ZodString;
40
+ name: z.ZodString;
41
+ countryCode: z.ZodString;
42
+ }, "strip", z.ZodTypeAny, {
43
+ name: string;
44
+ countryCode: string;
45
+ nodeUuid: string;
46
+ }, {
47
+ name: string;
48
+ countryCode: string;
49
+ nodeUuid: string;
50
+ }>, "many">;
51
+ }, "strip", z.ZodTypeAny, {
52
+ uuid: string;
53
+ createdAt: Date;
54
+ updatedAt: Date;
55
+ name: string;
56
+ faviconLink: string | null;
57
+ loginUrl: string | null;
58
+ billingHistory: {
59
+ totalAmount: number;
60
+ totalBills: number;
61
+ };
62
+ billingNodes: {
63
+ name: string;
64
+ countryCode: string;
65
+ nodeUuid: string;
66
+ }[];
67
+ }, {
68
+ uuid: string;
69
+ createdAt: string;
70
+ updatedAt: string;
71
+ name: string;
72
+ faviconLink: string | null;
73
+ loginUrl: string | null;
74
+ billingHistory: {
75
+ totalAmount: number;
76
+ totalBills: number;
77
+ };
78
+ billingNodes: {
79
+ name: string;
80
+ countryCode: string;
81
+ nodeUuid: string;
82
+ }[];
83
+ }>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ response: {
86
+ uuid: string;
87
+ createdAt: Date;
88
+ updatedAt: Date;
89
+ name: string;
90
+ faviconLink: string | null;
91
+ loginUrl: string | null;
92
+ billingHistory: {
93
+ totalAmount: number;
94
+ totalBills: number;
95
+ };
96
+ billingNodes: {
97
+ name: string;
98
+ countryCode: string;
99
+ nodeUuid: string;
100
+ }[];
101
+ };
102
+ }, {
103
+ response: {
104
+ uuid: string;
105
+ createdAt: string;
106
+ updatedAt: string;
107
+ name: string;
108
+ faviconLink: string | null;
109
+ loginUrl: string | null;
110
+ billingHistory: {
111
+ totalAmount: number;
112
+ totalBills: number;
113
+ };
114
+ billingNodes: {
115
+ name: string;
116
+ countryCode: string;
117
+ nodeUuid: string;
118
+ }[];
119
+ };
120
+ }>;
121
+ type Response = z.infer<typeof ResponseSchema>;
122
+ }
123
+ //# sourceMappingURL=create-infra-provider.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-infra-provider.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/create-infra-provider.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,gCAAyC,CAAC;IACnD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;MAOxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateInfraProviderCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ const constants_1 = require("../../constants");
7
+ const models_1 = require("../../models");
8
+ var CreateInfraProviderCommand;
9
+ (function (CreateInfraProviderCommand) {
10
+ CreateInfraProviderCommand.url = api_1.REST_API.INFRA_BILLING.CREATE_PROVIDER;
11
+ CreateInfraProviderCommand.TSQ_url = CreateInfraProviderCommand.url;
12
+ CreateInfraProviderCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.CREATE_PROVIDER, 'post', 'Create infra provider');
13
+ CreateInfraProviderCommand.RequestSchema = zod_1.z.object({
14
+ name: zod_1.z
15
+ .string()
16
+ .min(2, 'Name must be at least 2 characters')
17
+ .max(30, 'Name must be less than 30 characters'),
18
+ faviconLink: zod_1.z.string().url().optional(),
19
+ loginUrl: zod_1.z.string().url().optional(),
20
+ });
21
+ CreateInfraProviderCommand.ResponseSchema = zod_1.z.object({
22
+ response: models_1.InfraProviderSchema,
23
+ });
24
+ })(CreateInfraProviderCommand || (exports.CreateInfraProviderCommand = CreateInfraProviderCommand = {}));