@remnawave/backend-contract 2.0.0-alpha.19 → 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 (146) 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 -75
  41. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  42. package/build/backend/constants/errors/errors.js +0 -75
  43. package/build/backend/constants/events/events.d.ts +0 -11
  44. package/build/backend/constants/events/events.d.ts.map +1 -1
  45. package/build/backend/constants/events/events.js +0 -10
  46. package/build/backend/constants/templates/template-keys.d.ts +1 -1
  47. package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
  48. package/build/backend/constants/templates/template-keys.js +0 -1
  49. package/build/backend/models/index.d.ts +0 -4
  50. package/build/backend/models/index.d.ts.map +1 -1
  51. package/build/backend/models/index.js +0 -4
  52. package/build/backend/models/nodes.schema.d.ts +0 -41
  53. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  54. package/build/backend/models/nodes.schema.js +0 -3
  55. package/build/frontend/api/controllers/index.js +0 -1
  56. package/build/frontend/api/controllers/users.js +0 -1
  57. package/build/frontend/api/routes.js +0 -15
  58. package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
  59. package/build/frontend/commands/hosts/create.command.js +2 -4
  60. package/build/frontend/commands/index.js +0 -1
  61. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
  62. package/build/frontend/commands/nodes/create.command.js +0 -1
  63. package/build/frontend/commands/nodes/update.command.js +0 -1
  64. package/build/frontend/commands/users/index.js +0 -1
  65. package/build/frontend/constants/errors/errors.js +0 -75
  66. package/build/frontend/constants/events/events.js +0 -10
  67. package/build/frontend/constants/templates/template-keys.js +0 -1
  68. package/build/frontend/models/index.js +0 -4
  69. package/build/frontend/models/nodes.schema.js +0 -3
  70. package/package.json +1 -1
  71. package/build/backend/api/controllers/infra-billing.d.ts +0 -16
  72. package/build/backend/api/controllers/infra-billing.d.ts.map +0 -1
  73. package/build/backend/api/controllers/infra-billing.js +0 -18
  74. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +0 -125
  75. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +0 -1
  76. package/build/backend/commands/infra-billing/create-bill-record.command.js +0 -30
  77. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +0 -413
  78. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +0 -1
  79. package/build/backend/commands/infra-billing/create-billing-node.command.js +0 -38
  80. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +0 -123
  81. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +0 -1
  82. package/build/backend/commands/infra-billing/create-infra-provider.command.js +0 -24
  83. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +0 -119
  84. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +0 -1
  85. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
  86. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +0 -407
  87. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +0 -1
  88. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
  89. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +0 -33
  90. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +0 -1
  91. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
  92. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +0 -122
  93. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +0 -1
  94. package/build/backend/commands/infra-billing/get-bill-records.command.js +0 -31
  95. package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts +0 -399
  96. package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts.map +0 -1
  97. package/build/backend/commands/infra-billing/get-blling-nodes.command.js +0 -26
  98. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +0 -117
  99. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +0 -1
  100. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
  101. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +0 -156
  102. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +0 -1
  103. package/build/backend/commands/infra-billing/get-infra-providers.command.js +0 -19
  104. package/build/backend/commands/infra-billing/index.d.ts +0 -13
  105. package/build/backend/commands/infra-billing/index.d.ts.map +0 -1
  106. package/build/backend/commands/infra-billing/index.js +0 -28
  107. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +0 -410
  108. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +0 -1
  109. package/build/backend/commands/infra-billing/update-billing-node.command.js +0 -35
  110. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +0 -126
  111. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +0 -1
  112. package/build/backend/commands/infra-billing/update-infra-provider.command.js +0 -26
  113. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +0 -114
  114. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +0 -1
  115. package/build/backend/commands/users/get-user-accessible-nodes.command.js +0 -31
  116. package/build/backend/models/infra-billing-available-node.schema.d.ts +0 -90
  117. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +0 -1
  118. package/build/backend/models/infra-billing-available-node.schema.js +0 -9
  119. package/build/backend/models/infra-billing-history-record.schema.d.ts +0 -44
  120. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +0 -1
  121. package/build/backend/models/infra-billing-history-record.schema.js +0 -19
  122. package/build/backend/models/infra-billing-node.schema.d.ts +0 -153
  123. package/build/backend/models/infra-billing-node.schema.d.ts.map +0 -1
  124. package/build/backend/models/infra-billing-node.schema.js +0 -34
  125. package/build/backend/models/infra-provider.schema.d.ts +0 -87
  126. package/build/backend/models/infra-provider.schema.d.ts.map +0 -1
  127. package/build/backend/models/infra-provider.schema.js +0 -41
  128. package/build/frontend/api/controllers/infra-billing.js +0 -18
  129. package/build/frontend/commands/infra-billing/create-bill-record.command.js +0 -30
  130. package/build/frontend/commands/infra-billing/create-billing-node.command.js +0 -38
  131. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +0 -24
  132. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
  133. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
  134. package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
  135. package/build/frontend/commands/infra-billing/get-bill-records.command.js +0 -31
  136. package/build/frontend/commands/infra-billing/get-blling-nodes.command.js +0 -26
  137. package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
  138. package/build/frontend/commands/infra-billing/get-infra-providers.command.js +0 -19
  139. package/build/frontend/commands/infra-billing/index.js +0 -28
  140. package/build/frontend/commands/infra-billing/update-billing-node.command.js +0 -35
  141. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +0 -26
  142. package/build/frontend/commands/users/get-user-accessible-nodes.command.js +0 -31
  143. package/build/frontend/models/infra-billing-available-node.schema.js +0 -9
  144. package/build/frontend/models/infra-billing-history-record.schema.js +0 -19
  145. package/build/frontend/models/infra-billing-node.schema.js +0 -34
  146. package/build/frontend/models/infra-provider.schema.js +0 -41
@@ -1,407 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace DeleteInfraBillingNodeByUuidCommand {
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
- totalBillingNodes: z.ZodNumber;
17
- billingNodes: z.ZodArray<z.ZodObject<{
18
- uuid: z.ZodString;
19
- nodeUuid: z.ZodString;
20
- providerUuid: z.ZodString;
21
- provider: z.ZodObject<Pick<{
22
- uuid: z.ZodString;
23
- name: z.ZodString;
24
- faviconLink: z.ZodNullable<z.ZodString>;
25
- loginUrl: z.ZodNullable<z.ZodString>;
26
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
27
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
28
- }, "uuid" | "name" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
29
- uuid: string;
30
- name: string;
31
- faviconLink: string | null;
32
- loginUrl: string | null;
33
- }, {
34
- uuid: string;
35
- name: string;
36
- faviconLink: string | null;
37
- loginUrl: string | null;
38
- }>;
39
- node: z.ZodObject<Pick<{
40
- uuid: z.ZodString;
41
- name: z.ZodString;
42
- address: z.ZodString;
43
- port: z.ZodNullable<z.ZodNumber>;
44
- isConnected: z.ZodBoolean;
45
- isDisabled: z.ZodBoolean;
46
- isConnecting: z.ZodBoolean;
47
- isNodeOnline: z.ZodBoolean;
48
- isXrayRunning: z.ZodBoolean;
49
- lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
50
- lastStatusMessage: z.ZodNullable<z.ZodString>;
51
- xrayVersion: z.ZodNullable<z.ZodString>;
52
- xrayUptime: z.ZodString;
53
- isTrafficTrackingActive: z.ZodBoolean;
54
- trafficResetDay: z.ZodNullable<z.ZodNumber>;
55
- trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
56
- trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
57
- notifyPercent: z.ZodNullable<z.ZodNumber>;
58
- usersOnline: z.ZodNullable<z.ZodNumber>;
59
- viewPosition: z.ZodNumber;
60
- countryCode: z.ZodString;
61
- consumptionMultiplier: z.ZodNumber;
62
- cpuCount: z.ZodNullable<z.ZodNumber>;
63
- cpuModel: z.ZodNullable<z.ZodString>;
64
- totalRam: z.ZodNullable<z.ZodString>;
65
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
66
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
67
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
68
- activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
69
- uuid: z.ZodString;
70
- profileUuid: z.ZodString;
71
- tag: z.ZodString;
72
- type: z.ZodString;
73
- network: z.ZodNullable<z.ZodString>;
74
- security: z.ZodNullable<z.ZodString>;
75
- port: z.ZodNullable<z.ZodNumber>;
76
- rawInbound: z.ZodNullable<z.ZodUnknown>;
77
- }, "strip", z.ZodTypeAny, {
78
- type: string;
79
- uuid: string;
80
- profileUuid: string;
81
- tag: string;
82
- network: string | null;
83
- security: string | null;
84
- port: number | null;
85
- rawInbound?: unknown;
86
- }, {
87
- type: string;
88
- uuid: string;
89
- profileUuid: string;
90
- tag: string;
91
- network: string | null;
92
- security: string | null;
93
- port: number | null;
94
- rawInbound?: unknown;
95
- }>, "many">>;
96
- providerUuid: z.ZodNullable<z.ZodString>;
97
- provider: z.ZodNullable<z.ZodObject<{
98
- uuid: z.ZodString;
99
- name: z.ZodString;
100
- faviconLink: z.ZodNullable<z.ZodString>;
101
- loginUrl: z.ZodNullable<z.ZodString>;
102
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
103
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
104
- }, "strip", z.ZodTypeAny, {
105
- uuid: string;
106
- createdAt: Date;
107
- updatedAt: Date;
108
- name: string;
109
- faviconLink: string | null;
110
- loginUrl: string | null;
111
- }, {
112
- uuid: string;
113
- createdAt: string;
114
- updatedAt: string;
115
- name: string;
116
- faviconLink: string | null;
117
- loginUrl: string | null;
118
- }>>;
119
- }, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
120
- uuid: string;
121
- name: string;
122
- countryCode: string;
123
- }, {
124
- uuid: string;
125
- name: string;
126
- countryCode: string;
127
- }>;
128
- nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
129
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
130
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
131
- }, "strip", z.ZodTypeAny, {
132
- uuid: string;
133
- createdAt: Date;
134
- updatedAt: Date;
135
- nodeUuid: string;
136
- providerUuid: string;
137
- provider: {
138
- uuid: string;
139
- name: string;
140
- faviconLink: string | null;
141
- loginUrl: string | null;
142
- };
143
- node: {
144
- uuid: string;
145
- name: string;
146
- countryCode: string;
147
- };
148
- nextBillingAt: Date;
149
- }, {
150
- uuid: string;
151
- createdAt: string;
152
- updatedAt: string;
153
- nodeUuid: string;
154
- providerUuid: string;
155
- provider: {
156
- uuid: string;
157
- name: string;
158
- faviconLink: string | null;
159
- loginUrl: string | null;
160
- };
161
- node: {
162
- uuid: string;
163
- name: string;
164
- countryCode: string;
165
- };
166
- nextBillingAt: string;
167
- }>, "many">;
168
- availableBillingNodes: z.ZodArray<z.ZodObject<Pick<{
169
- uuid: z.ZodString;
170
- name: z.ZodString;
171
- address: z.ZodString;
172
- port: z.ZodNullable<z.ZodNumber>;
173
- isConnected: z.ZodBoolean;
174
- isDisabled: z.ZodBoolean;
175
- isConnecting: z.ZodBoolean;
176
- isNodeOnline: z.ZodBoolean;
177
- isXrayRunning: z.ZodBoolean;
178
- lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
179
- lastStatusMessage: z.ZodNullable<z.ZodString>;
180
- xrayVersion: z.ZodNullable<z.ZodString>;
181
- xrayUptime: z.ZodString;
182
- isTrafficTrackingActive: z.ZodBoolean;
183
- trafficResetDay: z.ZodNullable<z.ZodNumber>;
184
- trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
185
- trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
186
- notifyPercent: z.ZodNullable<z.ZodNumber>;
187
- usersOnline: z.ZodNullable<z.ZodNumber>;
188
- viewPosition: z.ZodNumber;
189
- countryCode: z.ZodString;
190
- consumptionMultiplier: z.ZodNumber;
191
- cpuCount: z.ZodNullable<z.ZodNumber>;
192
- cpuModel: z.ZodNullable<z.ZodString>;
193
- totalRam: z.ZodNullable<z.ZodString>;
194
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
195
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
196
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
197
- activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
198
- uuid: z.ZodString;
199
- profileUuid: z.ZodString;
200
- tag: z.ZodString;
201
- type: z.ZodString;
202
- network: z.ZodNullable<z.ZodString>;
203
- security: z.ZodNullable<z.ZodString>;
204
- port: z.ZodNullable<z.ZodNumber>;
205
- rawInbound: z.ZodNullable<z.ZodUnknown>;
206
- }, "strip", z.ZodTypeAny, {
207
- type: string;
208
- uuid: string;
209
- profileUuid: string;
210
- tag: string;
211
- network: string | null;
212
- security: string | null;
213
- port: number | null;
214
- rawInbound?: unknown;
215
- }, {
216
- type: string;
217
- uuid: string;
218
- profileUuid: string;
219
- tag: string;
220
- network: string | null;
221
- security: string | null;
222
- port: number | null;
223
- rawInbound?: unknown;
224
- }>, "many">>;
225
- providerUuid: z.ZodNullable<z.ZodString>;
226
- provider: z.ZodNullable<z.ZodObject<{
227
- uuid: z.ZodString;
228
- name: z.ZodString;
229
- faviconLink: z.ZodNullable<z.ZodString>;
230
- loginUrl: z.ZodNullable<z.ZodString>;
231
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
232
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
233
- }, "strip", z.ZodTypeAny, {
234
- uuid: string;
235
- createdAt: Date;
236
- updatedAt: Date;
237
- name: string;
238
- faviconLink: string | null;
239
- loginUrl: string | null;
240
- }, {
241
- uuid: string;
242
- createdAt: string;
243
- updatedAt: string;
244
- name: string;
245
- faviconLink: string | null;
246
- loginUrl: string | null;
247
- }>>;
248
- }, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
249
- uuid: string;
250
- name: string;
251
- countryCode: string;
252
- }, {
253
- uuid: string;
254
- name: string;
255
- countryCode: string;
256
- }>, "many">;
257
- totalAvailableBillingNodes: z.ZodNumber;
258
- stats: z.ZodObject<{
259
- upcomingNodesCount: z.ZodNumber;
260
- currentMonthPayments: z.ZodNumber;
261
- totalSpent: z.ZodNumber;
262
- }, "strip", z.ZodTypeAny, {
263
- upcomingNodesCount: number;
264
- currentMonthPayments: number;
265
- totalSpent: number;
266
- }, {
267
- upcomingNodesCount: number;
268
- currentMonthPayments: number;
269
- totalSpent: number;
270
- }>;
271
- }, "strip", z.ZodTypeAny, {
272
- stats: {
273
- upcomingNodesCount: number;
274
- currentMonthPayments: number;
275
- totalSpent: number;
276
- };
277
- billingNodes: {
278
- uuid: string;
279
- createdAt: Date;
280
- updatedAt: Date;
281
- nodeUuid: string;
282
- providerUuid: string;
283
- provider: {
284
- uuid: string;
285
- name: string;
286
- faviconLink: string | null;
287
- loginUrl: string | null;
288
- };
289
- node: {
290
- uuid: string;
291
- name: string;
292
- countryCode: string;
293
- };
294
- nextBillingAt: Date;
295
- }[];
296
- totalBillingNodes: number;
297
- availableBillingNodes: {
298
- uuid: string;
299
- name: string;
300
- countryCode: string;
301
- }[];
302
- totalAvailableBillingNodes: number;
303
- }, {
304
- stats: {
305
- upcomingNodesCount: number;
306
- currentMonthPayments: number;
307
- totalSpent: number;
308
- };
309
- billingNodes: {
310
- uuid: string;
311
- createdAt: string;
312
- updatedAt: string;
313
- nodeUuid: string;
314
- providerUuid: string;
315
- provider: {
316
- uuid: string;
317
- name: string;
318
- faviconLink: string | null;
319
- loginUrl: string | null;
320
- };
321
- node: {
322
- uuid: string;
323
- name: string;
324
- countryCode: string;
325
- };
326
- nextBillingAt: string;
327
- }[];
328
- totalBillingNodes: number;
329
- availableBillingNodes: {
330
- uuid: string;
331
- name: string;
332
- countryCode: string;
333
- }[];
334
- totalAvailableBillingNodes: number;
335
- }>;
336
- }, "strip", z.ZodTypeAny, {
337
- response: {
338
- stats: {
339
- upcomingNodesCount: number;
340
- currentMonthPayments: number;
341
- totalSpent: number;
342
- };
343
- billingNodes: {
344
- uuid: string;
345
- createdAt: Date;
346
- updatedAt: Date;
347
- nodeUuid: string;
348
- providerUuid: string;
349
- provider: {
350
- uuid: string;
351
- name: string;
352
- faviconLink: string | null;
353
- loginUrl: string | null;
354
- };
355
- node: {
356
- uuid: string;
357
- name: string;
358
- countryCode: string;
359
- };
360
- nextBillingAt: Date;
361
- }[];
362
- totalBillingNodes: number;
363
- availableBillingNodes: {
364
- uuid: string;
365
- name: string;
366
- countryCode: string;
367
- }[];
368
- totalAvailableBillingNodes: number;
369
- };
370
- }, {
371
- response: {
372
- stats: {
373
- upcomingNodesCount: number;
374
- currentMonthPayments: number;
375
- totalSpent: number;
376
- };
377
- billingNodes: {
378
- uuid: string;
379
- createdAt: string;
380
- updatedAt: string;
381
- nodeUuid: string;
382
- providerUuid: string;
383
- provider: {
384
- uuid: string;
385
- name: string;
386
- faviconLink: string | null;
387
- loginUrl: string | null;
388
- };
389
- node: {
390
- uuid: string;
391
- name: string;
392
- countryCode: string;
393
- };
394
- nextBillingAt: string;
395
- }[];
396
- totalBillingNodes: number;
397
- availableBillingNodes: {
398
- uuid: string;
399
- name: string;
400
- countryCode: string;
401
- }[];
402
- totalAvailableBillingNodes: number;
403
- };
404
- }>;
405
- type Response = z.infer<typeof ResponseSchema>;
406
- }
407
- //# sourceMappingURL=delete-billing-node-by-uuid.command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete-billing-node-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/delete-billing-node-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,mCAAmC,CAAC;IAC1C,MAAM,GAAG,QAAsD,CAAC;IAChE,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteInfraBillingNodeByUuidCommand = 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 DeleteInfraBillingNodeByUuidCommand;
9
- (function (DeleteInfraBillingNodeByUuidCommand) {
10
- DeleteInfraBillingNodeByUuidCommand.url = api_1.REST_API.INFRA_BILLING.DELETE_BILLING_NODE(':uuid');
11
- DeleteInfraBillingNodeByUuidCommand.TSQ_url = DeleteInfraBillingNodeByUuidCommand.url;
12
- DeleteInfraBillingNodeByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.DELETE_BILLING_NODE(':uuid'), 'delete', 'Delete infra billing node');
13
- DeleteInfraBillingNodeByUuidCommand.RequestSchema = zod_1.z.object({
14
- uuid: zod_1.z.string().uuid(),
15
- });
16
- DeleteInfraBillingNodeByUuidCommand.ResponseSchema = zod_1.z.object({
17
- response: zod_1.z.object({
18
- totalBillingNodes: zod_1.z.number(),
19
- billingNodes: zod_1.z.array(models_1.InfraBillingNodeSchema),
20
- availableBillingNodes: zod_1.z.array(models_1.InfraBillingAvailableNodeSchema),
21
- totalAvailableBillingNodes: zod_1.z.number(),
22
- stats: zod_1.z.object({
23
- upcomingNodesCount: zod_1.z.number(),
24
- currentMonthPayments: zod_1.z.number(),
25
- totalSpent: zod_1.z.number(),
26
- }),
27
- }),
28
- });
29
- })(DeleteInfraBillingNodeByUuidCommand || (exports.DeleteInfraBillingNodeByUuidCommand = DeleteInfraBillingNodeByUuidCommand = {}));
@@ -1,33 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace DeleteInfraProviderByUuidCommand {
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
- isDeleted: z.ZodBoolean;
17
- }, "strip", z.ZodTypeAny, {
18
- isDeleted: boolean;
19
- }, {
20
- isDeleted: boolean;
21
- }>;
22
- }, "strip", z.ZodTypeAny, {
23
- response: {
24
- isDeleted: boolean;
25
- };
26
- }, {
27
- response: {
28
- isDeleted: boolean;
29
- };
30
- }>;
31
- type Response = z.infer<typeof ResponseSchema>;
32
- }
33
- //# sourceMappingURL=delete-infra-provider-by-uuid.command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete-infra-provider-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/delete-infra-provider-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gCAAgC,CAAC;IACvC,MAAM,GAAG,QAAkD,CAAC;IAC5D,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;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteInfraProviderByUuidCommand = void 0;
4
- const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
- const constants_1 = require("../../constants");
7
- var DeleteInfraProviderByUuidCommand;
8
- (function (DeleteInfraProviderByUuidCommand) {
9
- DeleteInfraProviderByUuidCommand.url = api_1.REST_API.INFRA_BILLING.DELETE_PROVIDER(':uuid');
10
- DeleteInfraProviderByUuidCommand.TSQ_url = DeleteInfraProviderByUuidCommand.url;
11
- DeleteInfraProviderByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.DELETE_PROVIDER(':uuid'), 'delete', 'Delete infra provider by uuid');
12
- DeleteInfraProviderByUuidCommand.RequestSchema = zod_1.z.object({
13
- uuid: zod_1.z.string().uuid(),
14
- });
15
- DeleteInfraProviderByUuidCommand.ResponseSchema = zod_1.z.object({
16
- response: zod_1.z.object({
17
- isDeleted: zod_1.z.boolean(),
18
- }),
19
- });
20
- })(DeleteInfraProviderByUuidCommand || (exports.DeleteInfraProviderByUuidCommand = DeleteInfraProviderByUuidCommand = {}));
@@ -1,122 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace GetInfraBillingHistoryRecordsCommand {
3
- const url: "/api/infra-billing/history";
4
- const TSQ_url: "/api/infra-billing/history";
5
- const endpointDetails: import("../../constants").EndpointDetails;
6
- const RequestQuerySchema: z.ZodObject<{
7
- start: z.ZodDefault<z.ZodNumber>;
8
- size: z.ZodDefault<z.ZodNumber>;
9
- }, "strip", z.ZodTypeAny, {
10
- start: number;
11
- size: number;
12
- }, {
13
- start?: number | undefined;
14
- size?: number | undefined;
15
- }>;
16
- type RequestQuery = z.infer<typeof RequestQuerySchema>;
17
- const ResponseSchema: z.ZodObject<{
18
- response: z.ZodObject<{
19
- records: z.ZodArray<z.ZodObject<{
20
- uuid: z.ZodString;
21
- providerUuid: z.ZodString;
22
- amount: z.ZodNumber;
23
- billedAt: z.ZodEffects<z.ZodString, Date, string>;
24
- provider: z.ZodObject<Omit<{
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
- }, "createdAt" | "updatedAt" | "loginUrl">, "strip", z.ZodTypeAny, {
32
- uuid: string;
33
- name: string;
34
- faviconLink: string | null;
35
- }, {
36
- uuid: string;
37
- name: string;
38
- faviconLink: string | null;
39
- }>;
40
- }, "strip", z.ZodTypeAny, {
41
- uuid: string;
42
- providerUuid: string;
43
- provider: {
44
- uuid: string;
45
- name: string;
46
- faviconLink: string | null;
47
- };
48
- amount: number;
49
- billedAt: Date;
50
- }, {
51
- uuid: string;
52
- providerUuid: string;
53
- provider: {
54
- uuid: string;
55
- name: string;
56
- faviconLink: string | null;
57
- };
58
- amount: number;
59
- billedAt: string;
60
- }>, "many">;
61
- total: z.ZodNumber;
62
- }, "strip", z.ZodTypeAny, {
63
- total: number;
64
- records: {
65
- uuid: string;
66
- providerUuid: string;
67
- provider: {
68
- uuid: string;
69
- name: string;
70
- faviconLink: string | null;
71
- };
72
- amount: number;
73
- billedAt: Date;
74
- }[];
75
- }, {
76
- total: number;
77
- records: {
78
- uuid: string;
79
- providerUuid: string;
80
- provider: {
81
- uuid: string;
82
- name: string;
83
- faviconLink: string | null;
84
- };
85
- amount: number;
86
- billedAt: string;
87
- }[];
88
- }>;
89
- }, "strip", z.ZodTypeAny, {
90
- response: {
91
- total: number;
92
- records: {
93
- uuid: string;
94
- providerUuid: string;
95
- provider: {
96
- uuid: string;
97
- name: string;
98
- faviconLink: string | null;
99
- };
100
- amount: number;
101
- billedAt: Date;
102
- }[];
103
- };
104
- }, {
105
- response: {
106
- total: number;
107
- records: {
108
- uuid: string;
109
- providerUuid: string;
110
- provider: {
111
- uuid: string;
112
- name: string;
113
- faviconLink: string | null;
114
- };
115
- amount: number;
116
- billedAt: string;
117
- }[];
118
- };
119
- }>;
120
- type Response = z.infer<typeof ResponseSchema>;
121
- }
122
- //# sourceMappingURL=get-bill-records.command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-bill-records.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/get-bill-records.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,8BAA6C,CAAC;IACvD,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;;;;MAa7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetInfraBillingHistoryRecordsCommand = 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 GetInfraBillingHistoryRecordsCommand;
9
- (function (GetInfraBillingHistoryRecordsCommand) {
10
- GetInfraBillingHistoryRecordsCommand.url = api_1.REST_API.INFRA_BILLING.GET_BILLING_HISTORY;
11
- GetInfraBillingHistoryRecordsCommand.TSQ_url = GetInfraBillingHistoryRecordsCommand.url;
12
- GetInfraBillingHistoryRecordsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.GET_BILLING_HISTORY, 'get', 'Get infra billing history');
13
- GetInfraBillingHistoryRecordsCommand.RequestQuerySchema = zod_1.z.object({
14
- start: zod_1.z.coerce
15
- .number()
16
- .default(0)
17
- .describe('Start index (offset) of the billing history records to return, default is 0'),
18
- size: zod_1.z.coerce
19
- .number()
20
- .min(1, 'Size (limit) must be greater than 0')
21
- .max(500, 'Size (limit) must be less than 500')
22
- .describe('Number of users to return, no more than 500')
23
- .default(50),
24
- });
25
- GetInfraBillingHistoryRecordsCommand.ResponseSchema = zod_1.z.object({
26
- response: zod_1.z.object({
27
- records: zod_1.z.array(models_1.InfraBillingHistoryRecordSchema),
28
- total: zod_1.z.number(),
29
- }),
30
- });
31
- })(GetInfraBillingHistoryRecordsCommand || (exports.GetInfraBillingHistoryRecordsCommand = GetInfraBillingHistoryRecordsCommand = {}));