@remnawave/backend-contract 2.0.0-alpha.18 → 2.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/build/backend/api/controllers/index.d.ts +0 -1
  2. package/build/backend/api/controllers/index.d.ts.map +1 -1
  3. package/build/backend/api/controllers/index.js +0 -1
  4. package/build/backend/api/controllers/users.d.ts +0 -1
  5. package/build/backend/api/controllers/users.d.ts.map +1 -1
  6. package/build/backend/api/controllers/users.js +0 -1
  7. package/build/backend/api/routes.d.ts +0 -15
  8. package/build/backend/api/routes.d.ts.map +1 -1
  9. package/build/backend/api/routes.js +0 -15
  10. package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
  11. package/build/backend/commands/hosts/create.command.d.ts +6 -6
  12. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  13. package/build/backend/commands/hosts/create.command.js +2 -4
  14. package/build/backend/commands/index.d.ts +0 -1
  15. package/build/backend/commands/index.d.ts.map +1 -1
  16. package/build/backend/commands/index.js +0 -1
  17. package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
  18. package/build/backend/commands/nodes/actions/disable.command.d.ts +0 -59
  19. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  20. package/build/backend/commands/nodes/actions/enable.command.d.ts +0 -59
  21. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  22. package/build/backend/commands/nodes/actions/reorder.command.d.ts +0 -82
  23. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  24. package/build/backend/commands/nodes/create.command.d.ts +0 -62
  25. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  26. package/build/backend/commands/nodes/create.command.js +0 -1
  27. package/build/backend/commands/nodes/get-all.command.d.ts +0 -59
  28. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  29. package/build/backend/commands/nodes/get-one.command.d.ts +0 -59
  30. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  31. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  32. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  33. package/build/backend/commands/nodes/update.command.d.ts +0 -85
  34. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  35. package/build/backend/commands/nodes/update.command.js +0 -1
  36. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  37. package/build/backend/commands/users/index.d.ts +0 -1
  38. package/build/backend/commands/users/index.d.ts.map +1 -1
  39. package/build/backend/commands/users/index.js +0 -1
  40. package/build/backend/constants/errors/errors.d.ts +0 -70
  41. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  42. package/build/backend/constants/errors/errors.js +0 -70
  43. package/build/backend/models/index.d.ts +0 -4
  44. package/build/backend/models/index.d.ts.map +1 -1
  45. package/build/backend/models/index.js +0 -4
  46. package/build/backend/models/nodes.schema.d.ts +0 -41
  47. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  48. package/build/backend/models/nodes.schema.js +0 -3
  49. package/build/frontend/api/controllers/index.js +0 -1
  50. package/build/frontend/api/controllers/users.js +0 -1
  51. package/build/frontend/api/routes.js +0 -15
  52. package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
  53. package/build/frontend/commands/hosts/create.command.js +2 -4
  54. package/build/frontend/commands/index.js +0 -1
  55. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
  56. package/build/frontend/commands/nodes/create.command.js +0 -1
  57. package/build/frontend/commands/nodes/update.command.js +0 -1
  58. package/build/frontend/commands/users/index.js +0 -1
  59. package/build/frontend/constants/errors/errors.js +0 -70
  60. package/build/frontend/models/index.js +0 -4
  61. package/build/frontend/models/nodes.schema.js +0 -3
  62. package/package.json +1 -1
  63. package/build/backend/api/controllers/infra-billing.d.ts +0 -16
  64. package/build/backend/api/controllers/infra-billing.d.ts.map +0 -1
  65. package/build/backend/api/controllers/infra-billing.js +0 -18
  66. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +0 -125
  67. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +0 -1
  68. package/build/backend/commands/infra-billing/create-bill-record.command.js +0 -30
  69. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +0 -413
  70. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +0 -1
  71. package/build/backend/commands/infra-billing/create-billing-node.command.js +0 -38
  72. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +0 -123
  73. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +0 -1
  74. package/build/backend/commands/infra-billing/create-infra-provider.command.js +0 -24
  75. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +0 -119
  76. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +0 -1
  77. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
  78. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +0 -407
  79. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +0 -1
  80. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
  81. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +0 -33
  82. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +0 -1
  83. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
  84. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +0 -122
  85. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +0 -1
  86. package/build/backend/commands/infra-billing/get-bill-records.command.js +0 -31
  87. package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts +0 -399
  88. package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts.map +0 -1
  89. package/build/backend/commands/infra-billing/get-blling-nodes.command.js +0 -26
  90. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +0 -117
  91. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +0 -1
  92. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
  93. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +0 -156
  94. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +0 -1
  95. package/build/backend/commands/infra-billing/get-infra-providers.command.js +0 -19
  96. package/build/backend/commands/infra-billing/index.d.ts +0 -13
  97. package/build/backend/commands/infra-billing/index.d.ts.map +0 -1
  98. package/build/backend/commands/infra-billing/index.js +0 -28
  99. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +0 -410
  100. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +0 -1
  101. package/build/backend/commands/infra-billing/update-billing-node.command.js +0 -35
  102. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +0 -126
  103. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +0 -1
  104. package/build/backend/commands/infra-billing/update-infra-provider.command.js +0 -26
  105. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +0 -114
  106. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +0 -1
  107. package/build/backend/commands/users/get-user-accessible-nodes.command.js +0 -31
  108. package/build/backend/models/infra-billing-available-node.schema.d.ts +0 -90
  109. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +0 -1
  110. package/build/backend/models/infra-billing-available-node.schema.js +0 -9
  111. package/build/backend/models/infra-billing-history-record.schema.d.ts +0 -44
  112. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +0 -1
  113. package/build/backend/models/infra-billing-history-record.schema.js +0 -19
  114. package/build/backend/models/infra-billing-node.schema.d.ts +0 -153
  115. package/build/backend/models/infra-billing-node.schema.d.ts.map +0 -1
  116. package/build/backend/models/infra-billing-node.schema.js +0 -34
  117. package/build/backend/models/infra-provider.schema.d.ts +0 -87
  118. package/build/backend/models/infra-provider.schema.d.ts.map +0 -1
  119. package/build/backend/models/infra-provider.schema.js +0 -41
  120. package/build/frontend/api/controllers/infra-billing.js +0 -18
  121. package/build/frontend/commands/infra-billing/create-bill-record.command.js +0 -30
  122. package/build/frontend/commands/infra-billing/create-billing-node.command.js +0 -38
  123. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +0 -24
  124. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
  125. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
  126. package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
  127. package/build/frontend/commands/infra-billing/get-bill-records.command.js +0 -31
  128. package/build/frontend/commands/infra-billing/get-blling-nodes.command.js +0 -26
  129. package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
  130. package/build/frontend/commands/infra-billing/get-infra-providers.command.js +0 -19
  131. package/build/frontend/commands/infra-billing/index.js +0 -28
  132. package/build/frontend/commands/infra-billing/update-billing-node.command.js +0 -35
  133. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +0 -26
  134. package/build/frontend/commands/users/get-user-accessible-nodes.command.js +0 -31
  135. package/build/frontend/models/infra-billing-available-node.schema.js +0 -9
  136. package/build/frontend/models/infra-billing-history-record.schema.js +0 -19
  137. package/build/frontend/models/infra-billing-node.schema.js +0 -34
  138. package/build/frontend/models/infra-provider.schema.js +0 -41
@@ -1,399 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace GetInfraBillingNodesCommand {
3
- const url: "/api/infra-billing/nodes";
4
- const TSQ_url: "/api/infra-billing/nodes";
5
- const endpointDetails: import("../../constants").EndpointDetails;
6
- const ResponseSchema: z.ZodObject<{
7
- response: z.ZodObject<{
8
- totalBillingNodes: z.ZodNumber;
9
- billingNodes: z.ZodArray<z.ZodObject<{
10
- uuid: z.ZodString;
11
- nodeUuid: z.ZodString;
12
- providerUuid: z.ZodString;
13
- provider: z.ZodObject<Pick<{
14
- uuid: z.ZodString;
15
- name: z.ZodString;
16
- faviconLink: z.ZodNullable<z.ZodString>;
17
- loginUrl: z.ZodNullable<z.ZodString>;
18
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
19
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
20
- }, "uuid" | "name" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
21
- uuid: string;
22
- name: string;
23
- faviconLink: string | null;
24
- loginUrl: string | null;
25
- }, {
26
- uuid: string;
27
- name: string;
28
- faviconLink: string | null;
29
- loginUrl: string | null;
30
- }>;
31
- node: z.ZodObject<Pick<{
32
- uuid: z.ZodString;
33
- name: z.ZodString;
34
- address: z.ZodString;
35
- port: z.ZodNullable<z.ZodNumber>;
36
- isConnected: z.ZodBoolean;
37
- isDisabled: z.ZodBoolean;
38
- isConnecting: z.ZodBoolean;
39
- isNodeOnline: z.ZodBoolean;
40
- isXrayRunning: z.ZodBoolean;
41
- lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
42
- lastStatusMessage: z.ZodNullable<z.ZodString>;
43
- xrayVersion: z.ZodNullable<z.ZodString>;
44
- xrayUptime: z.ZodString;
45
- isTrafficTrackingActive: z.ZodBoolean;
46
- trafficResetDay: z.ZodNullable<z.ZodNumber>;
47
- trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
48
- trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
49
- notifyPercent: z.ZodNullable<z.ZodNumber>;
50
- usersOnline: z.ZodNullable<z.ZodNumber>;
51
- viewPosition: z.ZodNumber;
52
- countryCode: z.ZodString;
53
- consumptionMultiplier: z.ZodNumber;
54
- cpuCount: z.ZodNullable<z.ZodNumber>;
55
- cpuModel: z.ZodNullable<z.ZodString>;
56
- totalRam: z.ZodNullable<z.ZodString>;
57
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
58
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
59
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
60
- activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
61
- uuid: z.ZodString;
62
- profileUuid: z.ZodString;
63
- tag: z.ZodString;
64
- type: z.ZodString;
65
- network: z.ZodNullable<z.ZodString>;
66
- security: z.ZodNullable<z.ZodString>;
67
- port: z.ZodNullable<z.ZodNumber>;
68
- rawInbound: z.ZodNullable<z.ZodUnknown>;
69
- }, "strip", z.ZodTypeAny, {
70
- type: string;
71
- uuid: string;
72
- profileUuid: string;
73
- tag: string;
74
- network: string | null;
75
- security: string | null;
76
- port: number | null;
77
- rawInbound?: unknown;
78
- }, {
79
- type: string;
80
- uuid: string;
81
- profileUuid: string;
82
- tag: string;
83
- network: string | null;
84
- security: string | null;
85
- port: number | null;
86
- rawInbound?: unknown;
87
- }>, "many">>;
88
- providerUuid: z.ZodNullable<z.ZodString>;
89
- provider: z.ZodNullable<z.ZodObject<{
90
- uuid: z.ZodString;
91
- name: z.ZodString;
92
- faviconLink: z.ZodNullable<z.ZodString>;
93
- loginUrl: z.ZodNullable<z.ZodString>;
94
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
95
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
96
- }, "strip", z.ZodTypeAny, {
97
- uuid: string;
98
- createdAt: Date;
99
- updatedAt: Date;
100
- name: string;
101
- faviconLink: string | null;
102
- loginUrl: string | null;
103
- }, {
104
- uuid: string;
105
- createdAt: string;
106
- updatedAt: string;
107
- name: string;
108
- faviconLink: string | null;
109
- loginUrl: string | null;
110
- }>>;
111
- }, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
112
- uuid: string;
113
- name: string;
114
- countryCode: string;
115
- }, {
116
- uuid: string;
117
- name: string;
118
- countryCode: string;
119
- }>;
120
- nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
121
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
122
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
123
- }, "strip", z.ZodTypeAny, {
124
- uuid: string;
125
- createdAt: Date;
126
- updatedAt: Date;
127
- nodeUuid: string;
128
- providerUuid: string;
129
- provider: {
130
- uuid: string;
131
- name: string;
132
- faviconLink: string | null;
133
- loginUrl: string | null;
134
- };
135
- node: {
136
- uuid: string;
137
- name: string;
138
- countryCode: string;
139
- };
140
- nextBillingAt: Date;
141
- }, {
142
- uuid: string;
143
- createdAt: string;
144
- updatedAt: string;
145
- nodeUuid: string;
146
- providerUuid: string;
147
- provider: {
148
- uuid: string;
149
- name: string;
150
- faviconLink: string | null;
151
- loginUrl: string | null;
152
- };
153
- node: {
154
- uuid: string;
155
- name: string;
156
- countryCode: string;
157
- };
158
- nextBillingAt: string;
159
- }>, "many">;
160
- availableBillingNodes: z.ZodArray<z.ZodObject<Pick<{
161
- uuid: z.ZodString;
162
- name: z.ZodString;
163
- address: z.ZodString;
164
- port: z.ZodNullable<z.ZodNumber>;
165
- isConnected: z.ZodBoolean;
166
- isDisabled: z.ZodBoolean;
167
- isConnecting: z.ZodBoolean;
168
- isNodeOnline: z.ZodBoolean;
169
- isXrayRunning: z.ZodBoolean;
170
- lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
171
- lastStatusMessage: z.ZodNullable<z.ZodString>;
172
- xrayVersion: z.ZodNullable<z.ZodString>;
173
- xrayUptime: z.ZodString;
174
- isTrafficTrackingActive: z.ZodBoolean;
175
- trafficResetDay: z.ZodNullable<z.ZodNumber>;
176
- trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
177
- trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
178
- notifyPercent: z.ZodNullable<z.ZodNumber>;
179
- usersOnline: z.ZodNullable<z.ZodNumber>;
180
- viewPosition: z.ZodNumber;
181
- countryCode: z.ZodString;
182
- consumptionMultiplier: z.ZodNumber;
183
- cpuCount: z.ZodNullable<z.ZodNumber>;
184
- cpuModel: z.ZodNullable<z.ZodString>;
185
- totalRam: z.ZodNullable<z.ZodString>;
186
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
187
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
188
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
189
- activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
190
- uuid: z.ZodString;
191
- profileUuid: z.ZodString;
192
- tag: z.ZodString;
193
- type: z.ZodString;
194
- network: z.ZodNullable<z.ZodString>;
195
- security: z.ZodNullable<z.ZodString>;
196
- port: z.ZodNullable<z.ZodNumber>;
197
- rawInbound: z.ZodNullable<z.ZodUnknown>;
198
- }, "strip", z.ZodTypeAny, {
199
- type: string;
200
- uuid: string;
201
- profileUuid: string;
202
- tag: string;
203
- network: string | null;
204
- security: string | null;
205
- port: number | null;
206
- rawInbound?: unknown;
207
- }, {
208
- type: string;
209
- uuid: string;
210
- profileUuid: string;
211
- tag: string;
212
- network: string | null;
213
- security: string | null;
214
- port: number | null;
215
- rawInbound?: unknown;
216
- }>, "many">>;
217
- providerUuid: z.ZodNullable<z.ZodString>;
218
- provider: z.ZodNullable<z.ZodObject<{
219
- uuid: z.ZodString;
220
- name: z.ZodString;
221
- faviconLink: z.ZodNullable<z.ZodString>;
222
- loginUrl: z.ZodNullable<z.ZodString>;
223
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
224
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
225
- }, "strip", z.ZodTypeAny, {
226
- uuid: string;
227
- createdAt: Date;
228
- updatedAt: Date;
229
- name: string;
230
- faviconLink: string | null;
231
- loginUrl: string | null;
232
- }, {
233
- uuid: string;
234
- createdAt: string;
235
- updatedAt: string;
236
- name: string;
237
- faviconLink: string | null;
238
- loginUrl: string | null;
239
- }>>;
240
- }, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
241
- uuid: string;
242
- name: string;
243
- countryCode: string;
244
- }, {
245
- uuid: string;
246
- name: string;
247
- countryCode: string;
248
- }>, "many">;
249
- totalAvailableBillingNodes: z.ZodNumber;
250
- stats: z.ZodObject<{
251
- upcomingNodesCount: z.ZodNumber;
252
- currentMonthPayments: z.ZodNumber;
253
- totalSpent: z.ZodNumber;
254
- }, "strip", z.ZodTypeAny, {
255
- upcomingNodesCount: number;
256
- currentMonthPayments: number;
257
- totalSpent: number;
258
- }, {
259
- upcomingNodesCount: number;
260
- currentMonthPayments: number;
261
- totalSpent: number;
262
- }>;
263
- }, "strip", z.ZodTypeAny, {
264
- stats: {
265
- upcomingNodesCount: number;
266
- currentMonthPayments: number;
267
- totalSpent: number;
268
- };
269
- billingNodes: {
270
- uuid: string;
271
- createdAt: Date;
272
- updatedAt: Date;
273
- nodeUuid: string;
274
- providerUuid: string;
275
- provider: {
276
- uuid: string;
277
- name: string;
278
- faviconLink: string | null;
279
- loginUrl: string | null;
280
- };
281
- node: {
282
- uuid: string;
283
- name: string;
284
- countryCode: string;
285
- };
286
- nextBillingAt: Date;
287
- }[];
288
- totalBillingNodes: number;
289
- availableBillingNodes: {
290
- uuid: string;
291
- name: string;
292
- countryCode: string;
293
- }[];
294
- totalAvailableBillingNodes: number;
295
- }, {
296
- stats: {
297
- upcomingNodesCount: number;
298
- currentMonthPayments: number;
299
- totalSpent: number;
300
- };
301
- billingNodes: {
302
- uuid: string;
303
- createdAt: string;
304
- updatedAt: string;
305
- nodeUuid: string;
306
- providerUuid: string;
307
- provider: {
308
- uuid: string;
309
- name: string;
310
- faviconLink: string | null;
311
- loginUrl: string | null;
312
- };
313
- node: {
314
- uuid: string;
315
- name: string;
316
- countryCode: string;
317
- };
318
- nextBillingAt: string;
319
- }[];
320
- totalBillingNodes: number;
321
- availableBillingNodes: {
322
- uuid: string;
323
- name: string;
324
- countryCode: string;
325
- }[];
326
- totalAvailableBillingNodes: number;
327
- }>;
328
- }, "strip", z.ZodTypeAny, {
329
- response: {
330
- stats: {
331
- upcomingNodesCount: number;
332
- currentMonthPayments: number;
333
- totalSpent: number;
334
- };
335
- billingNodes: {
336
- uuid: string;
337
- createdAt: Date;
338
- updatedAt: Date;
339
- nodeUuid: string;
340
- providerUuid: string;
341
- provider: {
342
- uuid: string;
343
- name: string;
344
- faviconLink: string | null;
345
- loginUrl: string | null;
346
- };
347
- node: {
348
- uuid: string;
349
- name: string;
350
- countryCode: string;
351
- };
352
- nextBillingAt: Date;
353
- }[];
354
- totalBillingNodes: number;
355
- availableBillingNodes: {
356
- uuid: string;
357
- name: string;
358
- countryCode: string;
359
- }[];
360
- totalAvailableBillingNodes: number;
361
- };
362
- }, {
363
- response: {
364
- stats: {
365
- upcomingNodesCount: number;
366
- currentMonthPayments: number;
367
- totalSpent: number;
368
- };
369
- billingNodes: {
370
- uuid: string;
371
- createdAt: string;
372
- updatedAt: string;
373
- nodeUuid: string;
374
- providerUuid: string;
375
- provider: {
376
- uuid: string;
377
- name: string;
378
- faviconLink: string | null;
379
- loginUrl: string | null;
380
- };
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
- }>;
397
- type Response = z.infer<typeof ResponseSchema>;
398
- }
399
- //# sourceMappingURL=get-blling-nodes.command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-blling-nodes.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/get-blling-nodes.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,GAAG,4BAA2C,CAAC;IACrD,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetInfraBillingNodesCommand = 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 GetInfraBillingNodesCommand;
9
- (function (GetInfraBillingNodesCommand) {
10
- GetInfraBillingNodesCommand.url = api_1.REST_API.INFRA_BILLING.GET_BILLING_NODES;
11
- GetInfraBillingNodesCommand.TSQ_url = GetInfraBillingNodesCommand.url;
12
- GetInfraBillingNodesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.GET_BILLING_NODES, 'get', 'Get infra billing nodes');
13
- GetInfraBillingNodesCommand.ResponseSchema = zod_1.z.object({
14
- response: zod_1.z.object({
15
- totalBillingNodes: zod_1.z.number(),
16
- billingNodes: zod_1.z.array(models_1.InfraBillingNodeSchema),
17
- availableBillingNodes: zod_1.z.array(models_1.InfraBillingAvailableNodeSchema),
18
- totalAvailableBillingNodes: zod_1.z.number(),
19
- stats: zod_1.z.object({
20
- upcomingNodesCount: zod_1.z.number(),
21
- currentMonthPayments: zod_1.z.number(),
22
- totalSpent: zod_1.z.number(),
23
- }),
24
- }),
25
- });
26
- })(GetInfraBillingNodesCommand || (exports.GetInfraBillingNodesCommand = GetInfraBillingNodesCommand = {}));
@@ -1,117 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace GetInfraProviderByUuidCommand {
3
- const url: 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
- uuid: z.ZodString;
17
- name: z.ZodString;
18
- faviconLink: z.ZodNullable<z.ZodString>;
19
- loginUrl: z.ZodNullable<z.ZodString>;
20
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
21
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
22
- billingHistory: z.ZodObject<{
23
- totalAmount: z.ZodNumber;
24
- totalBills: z.ZodNumber;
25
- }, "strip", z.ZodTypeAny, {
26
- totalAmount: number;
27
- totalBills: number;
28
- }, {
29
- totalAmount: number;
30
- totalBills: number;
31
- }>;
32
- billingNodes: z.ZodArray<z.ZodObject<{
33
- nodeUuid: z.ZodString;
34
- name: z.ZodString;
35
- countryCode: z.ZodString;
36
- }, "strip", z.ZodTypeAny, {
37
- name: string;
38
- countryCode: string;
39
- nodeUuid: string;
40
- }, {
41
- name: string;
42
- countryCode: string;
43
- nodeUuid: string;
44
- }>, "many">;
45
- }, "strip", z.ZodTypeAny, {
46
- uuid: string;
47
- createdAt: Date;
48
- updatedAt: Date;
49
- name: string;
50
- faviconLink: string | null;
51
- loginUrl: string | null;
52
- billingHistory: {
53
- totalAmount: number;
54
- totalBills: number;
55
- };
56
- billingNodes: {
57
- name: string;
58
- countryCode: string;
59
- nodeUuid: string;
60
- }[];
61
- }, {
62
- uuid: string;
63
- createdAt: string;
64
- updatedAt: string;
65
- name: string;
66
- faviconLink: string | null;
67
- loginUrl: string | null;
68
- billingHistory: {
69
- totalAmount: number;
70
- totalBills: number;
71
- };
72
- billingNodes: {
73
- name: string;
74
- countryCode: string;
75
- nodeUuid: string;
76
- }[];
77
- }>;
78
- }, "strip", z.ZodTypeAny, {
79
- response: {
80
- uuid: string;
81
- createdAt: Date;
82
- updatedAt: Date;
83
- name: string;
84
- faviconLink: string | null;
85
- loginUrl: string | null;
86
- billingHistory: {
87
- totalAmount: number;
88
- totalBills: number;
89
- };
90
- billingNodes: {
91
- name: string;
92
- countryCode: string;
93
- nodeUuid: string;
94
- }[];
95
- };
96
- }, {
97
- response: {
98
- uuid: string;
99
- createdAt: string;
100
- updatedAt: string;
101
- name: string;
102
- faviconLink: string | null;
103
- loginUrl: string | null;
104
- billingHistory: {
105
- totalAmount: number;
106
- totalBills: number;
107
- };
108
- billingNodes: {
109
- name: string;
110
- countryCode: string;
111
- nodeUuid: string;
112
- }[];
113
- };
114
- }>;
115
- type Response = z.infer<typeof ResponseSchema>;
116
- }
117
- //# sourceMappingURL=get-infra-provider-by-uuid.command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-infra-provider-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/get-infra-provider-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,QAAuD,CAAC;IACjE,MAAM,OAAO,QAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,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,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetInfraProviderByUuidCommand = 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 GetInfraProviderByUuidCommand;
9
- (function (GetInfraProviderByUuidCommand) {
10
- GetInfraProviderByUuidCommand.url = api_1.REST_API.INFRA_BILLING.GET_PROVIDER_BY_UUID(':uuid');
11
- GetInfraProviderByUuidCommand.TSQ_url = GetInfraProviderByUuidCommand.url;
12
- GetInfraProviderByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.GET_PROVIDER_BY_UUID(':uuid'), 'get', 'Get infra provider by uuid');
13
- GetInfraProviderByUuidCommand.RequestSchema = zod_1.z.object({
14
- uuid: zod_1.z.string().uuid(),
15
- });
16
- GetInfraProviderByUuidCommand.ResponseSchema = zod_1.z.object({
17
- response: models_1.InfraProviderSchema,
18
- });
19
- })(GetInfraProviderByUuidCommand || (exports.GetInfraProviderByUuidCommand = GetInfraProviderByUuidCommand = {}));