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

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 (170) 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/users.d.ts +1 -0
  8. package/build/backend/api/controllers/users.d.ts.map +1 -1
  9. package/build/backend/api/controllers/users.js +1 -0
  10. package/build/backend/api/routes.d.ts +15 -0
  11. package/build/backend/api/routes.d.ts.map +1 -1
  12. package/build/backend/api/routes.js +15 -0
  13. package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
  14. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +26 -10
  15. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  16. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +26 -10
  17. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  18. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +26 -10
  19. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  20. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +26 -10
  21. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
  22. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +26 -10
  23. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
  24. package/build/backend/commands/hosts/create.command.d.ts +44 -19
  25. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  26. package/build/backend/commands/hosts/create.command.js +7 -11
  27. package/build/backend/commands/hosts/get-all.command.d.ts +26 -10
  28. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  29. package/build/backend/commands/hosts/get-one.command.d.ts +26 -10
  30. package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
  31. package/build/backend/commands/hosts/reorder.command.d.ts +10 -2
  32. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  33. package/build/backend/commands/hosts/update.command.d.ts +54 -21
  34. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  35. package/build/backend/commands/hosts/update.command.js +4 -11
  36. package/build/backend/commands/index.d.ts +1 -0
  37. package/build/backend/commands/index.d.ts.map +1 -1
  38. package/build/backend/commands/index.js +1 -0
  39. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +125 -0
  40. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -0
  41. package/build/backend/commands/infra-billing/create-bill-record.command.js +30 -0
  42. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +413 -0
  43. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
  44. package/build/backend/commands/infra-billing/create-billing-node.command.js +38 -0
  45. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +123 -0
  46. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -0
  47. package/build/backend/commands/infra-billing/create-infra-provider.command.js +24 -0
  48. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +119 -0
  49. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +1 -0
  50. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  51. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +407 -0
  52. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
  53. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  54. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +33 -0
  55. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +1 -0
  56. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  57. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +122 -0
  58. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -0
  59. package/build/backend/commands/infra-billing/get-bill-records.command.js +31 -0
  60. package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts +399 -0
  61. package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts.map +1 -0
  62. package/build/backend/commands/infra-billing/get-blling-nodes.command.js +26 -0
  63. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +117 -0
  64. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -0
  65. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  66. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +156 -0
  67. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -0
  68. package/build/backend/commands/infra-billing/get-infra-providers.command.js +19 -0
  69. package/build/backend/commands/infra-billing/index.d.ts +13 -0
  70. package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
  71. package/build/backend/commands/infra-billing/index.js +28 -0
  72. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +410 -0
  73. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
  74. package/build/backend/commands/infra-billing/update-billing-node.command.js +35 -0
  75. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +126 -0
  76. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -0
  77. package/build/backend/commands/infra-billing/update-infra-provider.command.js +26 -0
  78. package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
  79. package/build/backend/commands/nodes/actions/disable.command.d.ts +59 -0
  80. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  81. package/build/backend/commands/nodes/actions/enable.command.d.ts +59 -0
  82. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  83. package/build/backend/commands/nodes/actions/reorder.command.d.ts +82 -0
  84. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  85. package/build/backend/commands/nodes/create.command.d.ts +62 -0
  86. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  87. package/build/backend/commands/nodes/create.command.js +1 -0
  88. package/build/backend/commands/nodes/get-all.command.d.ts +59 -0
  89. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  90. package/build/backend/commands/nodes/get-one.command.d.ts +59 -0
  91. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  92. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  93. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  94. package/build/backend/commands/nodes/update.command.d.ts +85 -0
  95. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  96. package/build/backend/commands/nodes/update.command.js +1 -0
  97. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +114 -0
  98. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -0
  99. package/build/backend/commands/users/get-user-accessible-nodes.command.js +31 -0
  100. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  101. package/build/backend/commands/users/index.d.ts +1 -0
  102. package/build/backend/commands/users/index.d.ts.map +1 -1
  103. package/build/backend/commands/users/index.js +1 -0
  104. package/build/backend/constants/errors/errors.d.ts +75 -0
  105. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  106. package/build/backend/constants/errors/errors.js +75 -0
  107. package/build/backend/constants/events/events.d.ts +11 -0
  108. package/build/backend/constants/events/events.d.ts.map +1 -1
  109. package/build/backend/constants/events/events.js +10 -0
  110. package/build/backend/constants/templates/template-keys.d.ts +1 -1
  111. package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
  112. package/build/backend/constants/templates/template-keys.js +1 -0
  113. package/build/backend/models/hosts.schema.d.ts +18 -6
  114. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  115. package/build/backend/models/hosts.schema.js +4 -2
  116. package/build/backend/models/index.d.ts +4 -0
  117. package/build/backend/models/index.d.ts.map +1 -1
  118. package/build/backend/models/index.js +4 -0
  119. package/build/backend/models/infra-billing-available-node.schema.d.ts +90 -0
  120. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
  121. package/build/backend/models/infra-billing-available-node.schema.js +9 -0
  122. package/build/backend/models/infra-billing-history-record.schema.d.ts +44 -0
  123. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -0
  124. package/build/backend/models/infra-billing-history-record.schema.js +19 -0
  125. package/build/backend/models/infra-billing-node.schema.d.ts +153 -0
  126. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
  127. package/build/backend/models/infra-billing-node.schema.js +34 -0
  128. package/build/backend/models/infra-provider.schema.d.ts +87 -0
  129. package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
  130. package/build/backend/models/infra-provider.schema.js +41 -0
  131. package/build/backend/models/nodes.schema.d.ts +41 -0
  132. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  133. package/build/backend/models/nodes.schema.js +3 -0
  134. package/build/frontend/api/controllers/index.js +1 -0
  135. package/build/frontend/api/controllers/infra-billing.js +18 -0
  136. package/build/frontend/api/controllers/users.js +1 -0
  137. package/build/frontend/api/routes.js +15 -0
  138. package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
  139. package/build/frontend/commands/hosts/create.command.js +7 -11
  140. package/build/frontend/commands/hosts/update.command.js +4 -11
  141. package/build/frontend/commands/index.js +1 -0
  142. package/build/frontend/commands/infra-billing/create-bill-record.command.js +30 -0
  143. package/build/frontend/commands/infra-billing/create-billing-node.command.js +38 -0
  144. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +24 -0
  145. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  146. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  147. package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  148. package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
  149. package/build/frontend/commands/infra-billing/get-blling-nodes.command.js +26 -0
  150. package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  151. package/build/frontend/commands/infra-billing/get-infra-providers.command.js +19 -0
  152. package/build/frontend/commands/infra-billing/index.js +28 -0
  153. package/build/frontend/commands/infra-billing/update-billing-node.command.js +35 -0
  154. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +26 -0
  155. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
  156. package/build/frontend/commands/nodes/create.command.js +1 -0
  157. package/build/frontend/commands/nodes/update.command.js +1 -0
  158. package/build/frontend/commands/users/get-user-accessible-nodes.command.js +31 -0
  159. package/build/frontend/commands/users/index.js +1 -0
  160. package/build/frontend/constants/errors/errors.js +75 -0
  161. package/build/frontend/constants/events/events.js +10 -0
  162. package/build/frontend/constants/templates/template-keys.js +1 -0
  163. package/build/frontend/models/hosts.schema.js +4 -2
  164. package/build/frontend/models/index.js +4 -0
  165. package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
  166. package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
  167. package/build/frontend/models/infra-billing-node.schema.js +34 -0
  168. package/build/frontend/models/infra-provider.schema.js +41 -0
  169. package/build/frontend/models/nodes.schema.js +3 -0
  170. package/package.json +1 -1
@@ -0,0 +1,399 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,26 @@
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 = {}));
@@ -0,0 +1,117 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,19 @@
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 = {}));