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