@remnawave/backend-contract 2.0.0-alpha.3 → 2.0.0-alpha.31

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 (223) hide show
  1. package/build/backend/api/controllers/index.d.ts +1 -0
  2. package/build/backend/api/controllers/index.d.ts.map +1 -1
  3. package/build/backend/api/controllers/index.js +1 -0
  4. package/build/backend/api/controllers/infra-billing.d.ts +16 -0
  5. package/build/backend/api/controllers/infra-billing.d.ts.map +1 -0
  6. package/build/backend/api/controllers/infra-billing.js +18 -0
  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/users.d.ts +1 -0
  11. package/build/backend/api/controllers/users.d.ts.map +1 -1
  12. package/build/backend/api/controllers/users.js +1 -0
  13. package/build/backend/api/routes.d.ts +19 -0
  14. package/build/backend/api/routes.d.ts.map +1 -1
  15. package/build/backend/api/routes.js +19 -0
  16. package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
  17. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +31 -10
  18. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  19. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +31 -10
  20. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  21. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +31 -10
  22. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  23. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +31 -10
  24. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
  25. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +31 -10
  26. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
  27. package/build/backend/commands/hosts/create.command.d.ts +52 -19
  28. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  29. package/build/backend/commands/hosts/create.command.js +13 -13
  30. package/build/backend/commands/hosts/get-all.command.d.ts +31 -10
  31. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  32. package/build/backend/commands/hosts/get-one.command.d.ts +31 -10
  33. package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
  34. package/build/backend/commands/hosts/reorder.command.d.ts +11 -2
  35. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  36. package/build/backend/commands/hosts/update.command.d.ts +63 -21
  37. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  38. package/build/backend/commands/hosts/update.command.js +10 -11
  39. package/build/backend/commands/index.d.ts +1 -0
  40. package/build/backend/commands/index.d.ts.map +1 -1
  41. package/build/backend/commands/index.js +1 -0
  42. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +125 -0
  43. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -0
  44. package/build/backend/commands/infra-billing/create-bill-record.command.js +30 -0
  45. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +467 -0
  46. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
  47. package/build/backend/commands/infra-billing/create-billing-node.command.js +38 -0
  48. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +123 -0
  49. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -0
  50. package/build/backend/commands/infra-billing/create-infra-provider.command.js +24 -0
  51. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +119 -0
  52. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +1 -0
  53. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  54. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +461 -0
  55. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
  56. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  57. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +33 -0
  58. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +1 -0
  59. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  60. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +122 -0
  61. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -0
  62. package/build/backend/commands/infra-billing/get-bill-records.command.js +31 -0
  63. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +453 -0
  64. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -0
  65. package/build/backend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  66. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +117 -0
  67. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -0
  68. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  69. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +156 -0
  70. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -0
  71. package/build/backend/commands/infra-billing/get-infra-providers.command.js +19 -0
  72. package/build/backend/commands/infra-billing/index.d.ts +13 -0
  73. package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
  74. package/build/backend/commands/infra-billing/index.js +28 -0
  75. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +464 -0
  76. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
  77. package/build/backend/commands/infra-billing/update-billing-node.command.js +35 -0
  78. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +126 -0
  79. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -0
  80. package/build/backend/commands/infra-billing/update-infra-provider.command.js +26 -0
  81. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +33 -0
  82. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -0
  83. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  84. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +33 -0
  85. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -0
  86. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  87. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +3 -0
  88. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +1 -0
  89. package/build/backend/commands/internal-squads/bulk-actions/index.js +18 -0
  90. package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
  91. package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..d.ts → get-internal-squad-by-uuid.d.ts} +1 -1
  92. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +1 -0
  93. package/build/backend/commands/internal-squads/index.d.ts +2 -1
  94. package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
  95. package/build/backend/commands/internal-squads/index.js +2 -1
  96. package/build/backend/commands/nodes/actions/disable.command.d.ts +162 -64
  97. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  98. package/build/backend/commands/nodes/actions/enable.command.d.ts +162 -64
  99. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  100. package/build/backend/commands/nodes/actions/reorder.command.d.ts +236 -88
  101. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  102. package/build/backend/commands/nodes/create.command.d.ts +183 -70
  103. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  104. package/build/backend/commands/nodes/create.command.js +7 -4
  105. package/build/backend/commands/nodes/get-all.command.d.ts +162 -64
  106. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  107. package/build/backend/commands/nodes/get-one.command.d.ts +162 -64
  108. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  109. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  110. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  111. package/build/backend/commands/nodes/update.command.d.ts +257 -94
  112. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  113. package/build/backend/commands/nodes/update.command.js +9 -4
  114. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +114 -0
  115. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -0
  116. package/build/backend/commands/users/get-user-accessible-nodes.command.js +31 -0
  117. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  118. package/build/backend/commands/users/index.d.ts +1 -0
  119. package/build/backend/commands/users/index.d.ts.map +1 -1
  120. package/build/backend/commands/users/index.js +1 -0
  121. package/build/backend/constants/errors/errors.d.ts +105 -0
  122. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  123. package/build/backend/constants/errors/errors.js +105 -0
  124. package/build/backend/constants/events/events.d.ts +11 -0
  125. package/build/backend/constants/events/events.d.ts.map +1 -1
  126. package/build/backend/constants/events/events.js +10 -0
  127. package/build/backend/constants/headers/headers.contants.d.ts +3 -0
  128. package/build/backend/constants/headers/headers.contants.d.ts.map +1 -0
  129. package/build/backend/constants/headers/headers.contants.js +5 -0
  130. package/build/backend/constants/headers/index.d.ts +2 -0
  131. package/build/backend/constants/headers/index.d.ts.map +1 -0
  132. package/build/backend/constants/headers/index.js +17 -0
  133. package/build/backend/constants/index.d.ts +2 -0
  134. package/build/backend/constants/index.d.ts.map +1 -1
  135. package/build/backend/constants/index.js +2 -0
  136. package/build/backend/constants/messaging/index.d.ts +2 -0
  137. package/build/backend/constants/messaging/index.d.ts.map +1 -0
  138. package/build/backend/constants/messaging/index.js +17 -0
  139. package/build/backend/constants/messaging/messaging.constants.d.ts +13 -0
  140. package/build/backend/constants/messaging/messaging.constants.d.ts.map +1 -0
  141. package/build/backend/constants/messaging/messaging.constants.js +19 -0
  142. package/build/backend/constants/metrics/metric-names.constant.d.ts +16 -0
  143. package/build/backend/constants/metrics/metric-names.constant.d.ts.map +1 -1
  144. package/build/backend/constants/metrics/metric-names.constant.js +16 -0
  145. package/build/backend/constants/templates/template-keys.d.ts +1 -1
  146. package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
  147. package/build/backend/constants/templates/template-keys.js +1 -0
  148. package/build/backend/models/{extented-users.schema.d.ts → extended-users.schema.d.ts} +1 -1
  149. package/build/backend/models/{extented-users.schema.d.ts.map → extended-users.schema.d.ts.map} +1 -1
  150. package/build/backend/models/hosts.schema.d.ts +21 -6
  151. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  152. package/build/backend/models/hosts.schema.js +5 -2
  153. package/build/backend/models/index.d.ts +5 -1
  154. package/build/backend/models/index.d.ts.map +1 -1
  155. package/build/backend/models/index.js +5 -1
  156. package/build/backend/models/infra-billing-available-node.schema.d.ts +117 -0
  157. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
  158. package/build/backend/models/infra-billing-available-node.schema.js +9 -0
  159. package/build/backend/models/infra-billing-history-record.schema.d.ts +44 -0
  160. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -0
  161. package/build/backend/models/infra-billing-history-record.schema.js +19 -0
  162. package/build/backend/models/infra-billing-node.schema.d.ts +180 -0
  163. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
  164. package/build/backend/models/infra-billing-node.schema.js +34 -0
  165. package/build/backend/models/infra-provider.schema.d.ts +87 -0
  166. package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
  167. package/build/backend/models/infra-provider.schema.js +41 -0
  168. package/build/backend/models/nodes.schema.d.ts +118 -44
  169. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  170. package/build/backend/models/nodes.schema.js +8 -2
  171. package/build/frontend/api/controllers/index.js +1 -0
  172. package/build/frontend/api/controllers/infra-billing.js +18 -0
  173. package/build/frontend/api/controllers/internal-squads.js +5 -0
  174. package/build/frontend/api/controllers/users.js +1 -0
  175. package/build/frontend/api/routes.js +19 -0
  176. package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
  177. package/build/frontend/commands/hosts/create.command.js +13 -13
  178. package/build/frontend/commands/hosts/update.command.js +10 -11
  179. package/build/frontend/commands/index.js +1 -0
  180. package/build/frontend/commands/infra-billing/create-bill-record.command.js +30 -0
  181. package/build/frontend/commands/infra-billing/create-billing-node.command.js +38 -0
  182. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +24 -0
  183. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  184. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  185. package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  186. package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
  187. package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  188. package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  189. package/build/frontend/commands/infra-billing/get-infra-providers.command.js +19 -0
  190. package/build/frontend/commands/infra-billing/index.js +28 -0
  191. package/build/frontend/commands/infra-billing/update-billing-node.command.js +35 -0
  192. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +26 -0
  193. package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  194. package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  195. package/build/frontend/commands/internal-squads/bulk-actions/index.js +18 -0
  196. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
  197. package/build/frontend/commands/internal-squads/index.js +2 -1
  198. package/build/frontend/commands/nodes/create.command.js +7 -4
  199. package/build/frontend/commands/nodes/update.command.js +9 -4
  200. package/build/frontend/commands/users/get-user-accessible-nodes.command.js +31 -0
  201. package/build/frontend/commands/users/index.js +1 -0
  202. package/build/frontend/constants/errors/errors.js +105 -0
  203. package/build/frontend/constants/events/events.js +10 -0
  204. package/build/frontend/constants/headers/headers.contants.js +5 -0
  205. package/build/frontend/constants/headers/index.js +17 -0
  206. package/build/frontend/constants/index.js +2 -0
  207. package/build/frontend/constants/messaging/index.js +17 -0
  208. package/build/frontend/constants/messaging/messaging.constants.js +19 -0
  209. package/build/frontend/constants/metrics/metric-names.constant.js +16 -0
  210. package/build/frontend/constants/templates/template-keys.js +1 -0
  211. package/build/frontend/models/hosts.schema.js +5 -2
  212. package/build/frontend/models/index.js +5 -1
  213. package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
  214. package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
  215. package/build/frontend/models/infra-billing-node.schema.js +34 -0
  216. package/build/frontend/models/infra-provider.schema.js +41 -0
  217. package/build/frontend/models/nodes.schema.js +8 -2
  218. package/package.json +2 -2
  219. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +0 -1
  220. /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  221. /package/build/backend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
  222. /package/build/frontend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  223. /package/build/frontend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
@@ -0,0 +1,156 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetInfraProvidersCommand {
3
+ const url: "/api/infra-billing/providers";
4
+ const TSQ_url: "/api/infra-billing/providers";
5
+ const endpointDetails: import("../../constants").EndpointDetails;
6
+ const ResponseSchema: z.ZodObject<{
7
+ response: z.ZodObject<{
8
+ total: z.ZodNumber;
9
+ providers: z.ZodArray<z.ZodObject<{
10
+ uuid: z.ZodString;
11
+ name: z.ZodString;
12
+ faviconLink: z.ZodNullable<z.ZodString>;
13
+ loginUrl: z.ZodNullable<z.ZodString>;
14
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
15
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
16
+ billingHistory: z.ZodObject<{
17
+ totalAmount: z.ZodNumber;
18
+ totalBills: z.ZodNumber;
19
+ }, "strip", z.ZodTypeAny, {
20
+ totalAmount: number;
21
+ totalBills: number;
22
+ }, {
23
+ totalAmount: number;
24
+ totalBills: number;
25
+ }>;
26
+ billingNodes: z.ZodArray<z.ZodObject<{
27
+ nodeUuid: z.ZodString;
28
+ name: z.ZodString;
29
+ countryCode: z.ZodString;
30
+ }, "strip", z.ZodTypeAny, {
31
+ name: string;
32
+ countryCode: string;
33
+ nodeUuid: string;
34
+ }, {
35
+ name: string;
36
+ countryCode: string;
37
+ nodeUuid: string;
38
+ }>, "many">;
39
+ }, "strip", z.ZodTypeAny, {
40
+ uuid: string;
41
+ createdAt: Date;
42
+ updatedAt: Date;
43
+ name: string;
44
+ faviconLink: string | null;
45
+ loginUrl: string | null;
46
+ billingHistory: {
47
+ totalAmount: number;
48
+ totalBills: number;
49
+ };
50
+ billingNodes: {
51
+ name: string;
52
+ countryCode: string;
53
+ nodeUuid: string;
54
+ }[];
55
+ }, {
56
+ uuid: string;
57
+ createdAt: string;
58
+ updatedAt: string;
59
+ name: string;
60
+ faviconLink: string | null;
61
+ loginUrl: string | null;
62
+ billingHistory: {
63
+ totalAmount: number;
64
+ totalBills: number;
65
+ };
66
+ billingNodes: {
67
+ name: string;
68
+ countryCode: string;
69
+ nodeUuid: string;
70
+ }[];
71
+ }>, "many">;
72
+ }, "strip", z.ZodTypeAny, {
73
+ providers: {
74
+ uuid: string;
75
+ createdAt: Date;
76
+ updatedAt: Date;
77
+ name: string;
78
+ faviconLink: string | null;
79
+ loginUrl: string | null;
80
+ billingHistory: {
81
+ totalAmount: number;
82
+ totalBills: number;
83
+ };
84
+ billingNodes: {
85
+ name: string;
86
+ countryCode: string;
87
+ nodeUuid: string;
88
+ }[];
89
+ }[];
90
+ total: number;
91
+ }, {
92
+ providers: {
93
+ uuid: string;
94
+ createdAt: string;
95
+ updatedAt: string;
96
+ name: string;
97
+ faviconLink: string | null;
98
+ loginUrl: string | null;
99
+ billingHistory: {
100
+ totalAmount: number;
101
+ totalBills: number;
102
+ };
103
+ billingNodes: {
104
+ name: string;
105
+ countryCode: string;
106
+ nodeUuid: string;
107
+ }[];
108
+ }[];
109
+ total: number;
110
+ }>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ response: {
113
+ providers: {
114
+ uuid: string;
115
+ createdAt: Date;
116
+ updatedAt: Date;
117
+ name: string;
118
+ faviconLink: string | null;
119
+ loginUrl: string | null;
120
+ billingHistory: {
121
+ totalAmount: number;
122
+ totalBills: number;
123
+ };
124
+ billingNodes: {
125
+ name: string;
126
+ countryCode: string;
127
+ nodeUuid: string;
128
+ }[];
129
+ }[];
130
+ total: number;
131
+ };
132
+ }, {
133
+ response: {
134
+ providers: {
135
+ uuid: string;
136
+ createdAt: string;
137
+ updatedAt: string;
138
+ name: string;
139
+ faviconLink: string | null;
140
+ loginUrl: string | null;
141
+ billingHistory: {
142
+ totalAmount: number;
143
+ totalBills: number;
144
+ };
145
+ billingNodes: {
146
+ name: string;
147
+ countryCode: string;
148
+ nodeUuid: string;
149
+ }[];
150
+ }[];
151
+ total: number;
152
+ };
153
+ }>;
154
+ type Response = z.infer<typeof ResponseSchema>;
155
+ }
156
+ //# sourceMappingURL=get-infra-providers.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-infra-providers.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/get-infra-providers.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,gCAAuC,CAAC;IACjD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetInfraProvidersCommand = 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 GetInfraProvidersCommand;
9
+ (function (GetInfraProvidersCommand) {
10
+ GetInfraProvidersCommand.url = api_1.REST_API.INFRA_BILLING.GET_PROVIDERS;
11
+ GetInfraProvidersCommand.TSQ_url = GetInfraProvidersCommand.url;
12
+ GetInfraProvidersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.GET_PROVIDERS, 'get', 'Get all infra providers');
13
+ GetInfraProvidersCommand.ResponseSchema = zod_1.z.object({
14
+ response: zod_1.z.object({
15
+ total: zod_1.z.number(),
16
+ providers: zod_1.z.array(models_1.InfraProviderSchema),
17
+ }),
18
+ });
19
+ })(GetInfraProvidersCommand || (exports.GetInfraProvidersCommand = GetInfraProvidersCommand = {}));
@@ -0,0 +1,13 @@
1
+ export * from './create-bill-record.command';
2
+ export * from './create-billing-node.command';
3
+ export * from './create-infra-provider.command';
4
+ export * from './delete-bill-record-by-uuid.command';
5
+ export * from './delete-billing-node-by-uuid.command';
6
+ export * from './delete-infra-provider-by-uuid.command';
7
+ export * from './get-bill-records.command';
8
+ export * from './get-billing-nodes.command';
9
+ export * from './get-infra-provider-by-uuid.command';
10
+ export * from './get-infra-providers.command';
11
+ export * from './update-billing-node.command';
12
+ export * from './update-infra-provider.command';
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,yCAAyC,CAAC;AACxD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./create-bill-record.command"), exports);
18
+ __exportStar(require("./create-billing-node.command"), exports);
19
+ __exportStar(require("./create-infra-provider.command"), exports);
20
+ __exportStar(require("./delete-bill-record-by-uuid.command"), exports);
21
+ __exportStar(require("./delete-billing-node-by-uuid.command"), exports);
22
+ __exportStar(require("./delete-infra-provider-by-uuid.command"), exports);
23
+ __exportStar(require("./get-bill-records.command"), exports);
24
+ __exportStar(require("./get-billing-nodes.command"), exports);
25
+ __exportStar(require("./get-infra-provider-by-uuid.command"), exports);
26
+ __exportStar(require("./get-infra-providers.command"), exports);
27
+ __exportStar(require("./update-billing-node.command"), exports);
28
+ __exportStar(require("./update-infra-provider.command"), exports);
@@ -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
+ nodeUuid: string;
166
+ providerUuid: string;
167
+ provider: {
168
+ uuid: string;
169
+ name: string;
170
+ faviconLink: string | null;
171
+ loginUrl: string | null;
172
+ };
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
+ nodeUuid: string;
184
+ providerUuid: string;
185
+ provider: {
186
+ uuid: string;
187
+ name: string;
188
+ faviconLink: string | null;
189
+ loginUrl: string | null;
190
+ };
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
+ nodeUuid: string;
339
+ providerUuid: string;
340
+ provider: {
341
+ uuid: string;
342
+ name: string;
343
+ faviconLink: string | null;
344
+ loginUrl: string | null;
345
+ };
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
+ nodeUuid: string;
371
+ providerUuid: string;
372
+ provider: {
373
+ uuid: string;
374
+ name: string;
375
+ faviconLink: string | null;
376
+ loginUrl: string | null;
377
+ };
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
+ nodeUuid: string;
405
+ providerUuid: string;
406
+ provider: {
407
+ uuid: string;
408
+ name: string;
409
+ faviconLink: string | null;
410
+ loginUrl: string | null;
411
+ };
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
+ nodeUuid: string;
439
+ providerUuid: string;
440
+ provider: {
441
+ uuid: string;
442
+ name: string;
443
+ faviconLink: string | null;
444
+ loginUrl: string | null;
445
+ };
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