@remnawave/backend-contract 2.0.0-alpha.11 → 2.0.0-alpha.14
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.
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +125 -0
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-bill-record.command.js +30 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +364 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.js +33 -0
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +119 -0
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +353 -0
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +23 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +122 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.js +31 -0
- package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts +350 -0
- package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-blling-nodes.command.js +21 -0
- package/build/backend/commands/infra-billing/index.d.ts +7 -0
- package/build/backend/commands/infra-billing/index.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/index.js +7 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +361 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.js +31 -0
- package/build/backend/constants/errors/errors.d.ts +30 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +30 -0
- package/build/backend/models/index.d.ts +3 -0
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +3 -0
- package/build/backend/models/infra-billing-available-node.schema.d.ts +90 -0
- package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-available-node.schema.js +9 -0
- package/build/backend/models/infra-billing-history-record.schema.d.ts +44 -0
- package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-history-record.schema.js +19 -0
- package/build/backend/models/infra-billing-node.schema.d.ts +145 -0
- package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-node.schema.js +34 -0
- package/build/frontend/commands/infra-billing/create-bill-record.command.js +30 -0
- package/build/frontend/commands/infra-billing/create-billing-node.command.js +33 -0
- package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
- package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +23 -0
- package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
- package/build/frontend/commands/infra-billing/get-blling-nodes.command.js +21 -0
- package/build/frontend/commands/infra-billing/index.js +7 -0
- package/build/frontend/commands/infra-billing/update-billing-node.command.js +31 -0
- package/build/frontend/constants/errors/errors.js +30 -0
- package/build/frontend/models/index.js +3 -0
- package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
- package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
- package/build/frontend/models/infra-billing-node.schema.js +34 -0
- package/package.json +1 -1
@@ -0,0 +1,361 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace UpdateInfraBillingNodeCommand {
|
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
|
+
nextBillingAt: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
10
|
+
uuid: string;
|
11
|
+
nextBillingAt?: Date | undefined;
|
12
|
+
}, {
|
13
|
+
uuid: string;
|
14
|
+
nextBillingAt?: string | undefined;
|
15
|
+
}>;
|
16
|
+
type Request = z.infer<typeof RequestSchema>;
|
17
|
+
const ResponseSchema: z.ZodObject<{
|
18
|
+
response: z.ZodObject<{
|
19
|
+
totalBillingNodes: z.ZodNumber;
|
20
|
+
billingNodes: z.ZodArray<z.ZodObject<{
|
21
|
+
uuid: z.ZodString;
|
22
|
+
nodeUuid: z.ZodString;
|
23
|
+
providerUuid: z.ZodString;
|
24
|
+
provider: z.ZodObject<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" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
|
32
|
+
uuid: string;
|
33
|
+
name: string;
|
34
|
+
}, {
|
35
|
+
uuid: string;
|
36
|
+
name: string;
|
37
|
+
}>;
|
38
|
+
node: z.ZodObject<Pick<{
|
39
|
+
uuid: z.ZodString;
|
40
|
+
name: z.ZodString;
|
41
|
+
address: z.ZodString;
|
42
|
+
port: z.ZodNullable<z.ZodNumber>;
|
43
|
+
isConnected: z.ZodBoolean;
|
44
|
+
isDisabled: z.ZodBoolean;
|
45
|
+
isConnecting: z.ZodBoolean;
|
46
|
+
isNodeOnline: z.ZodBoolean;
|
47
|
+
isXrayRunning: z.ZodBoolean;
|
48
|
+
lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
49
|
+
lastStatusMessage: z.ZodNullable<z.ZodString>;
|
50
|
+
xrayVersion: z.ZodNullable<z.ZodString>;
|
51
|
+
xrayUptime: z.ZodString;
|
52
|
+
isTrafficTrackingActive: z.ZodBoolean;
|
53
|
+
trafficResetDay: z.ZodNullable<z.ZodNumber>;
|
54
|
+
trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
|
55
|
+
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
56
|
+
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
57
|
+
usersOnline: z.ZodNullable<z.ZodNumber>;
|
58
|
+
viewPosition: z.ZodNumber;
|
59
|
+
countryCode: z.ZodString;
|
60
|
+
consumptionMultiplier: z.ZodNumber;
|
61
|
+
cpuCount: z.ZodNullable<z.ZodNumber>;
|
62
|
+
cpuModel: z.ZodNullable<z.ZodString>;
|
63
|
+
totalRam: z.ZodNullable<z.ZodString>;
|
64
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
65
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
66
|
+
activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
|
67
|
+
activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
68
|
+
uuid: z.ZodString;
|
69
|
+
profileUuid: z.ZodString;
|
70
|
+
tag: z.ZodString;
|
71
|
+
type: z.ZodString;
|
72
|
+
network: z.ZodNullable<z.ZodString>;
|
73
|
+
security: z.ZodNullable<z.ZodString>;
|
74
|
+
port: z.ZodNullable<z.ZodNumber>;
|
75
|
+
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
77
|
+
type: string;
|
78
|
+
uuid: string;
|
79
|
+
profileUuid: string;
|
80
|
+
tag: string;
|
81
|
+
network: string | null;
|
82
|
+
security: string | null;
|
83
|
+
port: number | null;
|
84
|
+
rawInbound?: unknown;
|
85
|
+
}, {
|
86
|
+
type: string;
|
87
|
+
uuid: string;
|
88
|
+
profileUuid: string;
|
89
|
+
tag: string;
|
90
|
+
network: string | null;
|
91
|
+
security: string | null;
|
92
|
+
port: number | null;
|
93
|
+
rawInbound?: unknown;
|
94
|
+
}>, "many">>;
|
95
|
+
providerUuid: z.ZodNullable<z.ZodString>;
|
96
|
+
provider: z.ZodNullable<z.ZodObject<{
|
97
|
+
uuid: z.ZodString;
|
98
|
+
name: z.ZodString;
|
99
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
100
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
101
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
102
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
104
|
+
uuid: string;
|
105
|
+
createdAt: Date;
|
106
|
+
updatedAt: Date;
|
107
|
+
name: string;
|
108
|
+
faviconLink: string | null;
|
109
|
+
loginUrl: string | null;
|
110
|
+
}, {
|
111
|
+
uuid: string;
|
112
|
+
createdAt: string;
|
113
|
+
updatedAt: string;
|
114
|
+
name: string;
|
115
|
+
faviconLink: string | null;
|
116
|
+
loginUrl: string | null;
|
117
|
+
}>>;
|
118
|
+
}, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
|
119
|
+
uuid: string;
|
120
|
+
name: string;
|
121
|
+
countryCode: string;
|
122
|
+
}, {
|
123
|
+
uuid: string;
|
124
|
+
name: string;
|
125
|
+
countryCode: string;
|
126
|
+
}>;
|
127
|
+
nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
|
128
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
129
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
130
|
+
}, "strip", z.ZodTypeAny, {
|
131
|
+
uuid: string;
|
132
|
+
createdAt: Date;
|
133
|
+
updatedAt: Date;
|
134
|
+
nodeUuid: string;
|
135
|
+
providerUuid: string;
|
136
|
+
provider: {
|
137
|
+
uuid: string;
|
138
|
+
name: string;
|
139
|
+
};
|
140
|
+
node: {
|
141
|
+
uuid: string;
|
142
|
+
name: string;
|
143
|
+
countryCode: string;
|
144
|
+
};
|
145
|
+
nextBillingAt: Date;
|
146
|
+
}, {
|
147
|
+
uuid: string;
|
148
|
+
createdAt: string;
|
149
|
+
updatedAt: string;
|
150
|
+
nodeUuid: string;
|
151
|
+
providerUuid: string;
|
152
|
+
provider: {
|
153
|
+
uuid: string;
|
154
|
+
name: string;
|
155
|
+
};
|
156
|
+
node: {
|
157
|
+
uuid: string;
|
158
|
+
name: string;
|
159
|
+
countryCode: string;
|
160
|
+
};
|
161
|
+
nextBillingAt: string;
|
162
|
+
}>, "many">;
|
163
|
+
availableBillingNodes: z.ZodArray<z.ZodObject<Pick<{
|
164
|
+
uuid: z.ZodString;
|
165
|
+
name: z.ZodString;
|
166
|
+
address: z.ZodString;
|
167
|
+
port: z.ZodNullable<z.ZodNumber>;
|
168
|
+
isConnected: z.ZodBoolean;
|
169
|
+
isDisabled: z.ZodBoolean;
|
170
|
+
isConnecting: z.ZodBoolean;
|
171
|
+
isNodeOnline: z.ZodBoolean;
|
172
|
+
isXrayRunning: z.ZodBoolean;
|
173
|
+
lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
174
|
+
lastStatusMessage: z.ZodNullable<z.ZodString>;
|
175
|
+
xrayVersion: z.ZodNullable<z.ZodString>;
|
176
|
+
xrayUptime: z.ZodString;
|
177
|
+
isTrafficTrackingActive: z.ZodBoolean;
|
178
|
+
trafficResetDay: z.ZodNullable<z.ZodNumber>;
|
179
|
+
trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
|
180
|
+
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
181
|
+
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
182
|
+
usersOnline: z.ZodNullable<z.ZodNumber>;
|
183
|
+
viewPosition: z.ZodNumber;
|
184
|
+
countryCode: z.ZodString;
|
185
|
+
consumptionMultiplier: z.ZodNumber;
|
186
|
+
cpuCount: z.ZodNullable<z.ZodNumber>;
|
187
|
+
cpuModel: z.ZodNullable<z.ZodString>;
|
188
|
+
totalRam: z.ZodNullable<z.ZodString>;
|
189
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
190
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
191
|
+
activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
|
192
|
+
activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
193
|
+
uuid: z.ZodString;
|
194
|
+
profileUuid: z.ZodString;
|
195
|
+
tag: z.ZodString;
|
196
|
+
type: z.ZodString;
|
197
|
+
network: z.ZodNullable<z.ZodString>;
|
198
|
+
security: z.ZodNullable<z.ZodString>;
|
199
|
+
port: z.ZodNullable<z.ZodNumber>;
|
200
|
+
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
201
|
+
}, "strip", z.ZodTypeAny, {
|
202
|
+
type: string;
|
203
|
+
uuid: string;
|
204
|
+
profileUuid: string;
|
205
|
+
tag: string;
|
206
|
+
network: string | null;
|
207
|
+
security: string | null;
|
208
|
+
port: number | null;
|
209
|
+
rawInbound?: unknown;
|
210
|
+
}, {
|
211
|
+
type: string;
|
212
|
+
uuid: string;
|
213
|
+
profileUuid: string;
|
214
|
+
tag: string;
|
215
|
+
network: string | null;
|
216
|
+
security: string | null;
|
217
|
+
port: number | null;
|
218
|
+
rawInbound?: unknown;
|
219
|
+
}>, "many">>;
|
220
|
+
providerUuid: z.ZodNullable<z.ZodString>;
|
221
|
+
provider: z.ZodNullable<z.ZodObject<{
|
222
|
+
uuid: z.ZodString;
|
223
|
+
name: z.ZodString;
|
224
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
225
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
226
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
227
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
228
|
+
}, "strip", z.ZodTypeAny, {
|
229
|
+
uuid: string;
|
230
|
+
createdAt: Date;
|
231
|
+
updatedAt: Date;
|
232
|
+
name: string;
|
233
|
+
faviconLink: string | null;
|
234
|
+
loginUrl: string | null;
|
235
|
+
}, {
|
236
|
+
uuid: string;
|
237
|
+
createdAt: string;
|
238
|
+
updatedAt: string;
|
239
|
+
name: string;
|
240
|
+
faviconLink: string | null;
|
241
|
+
loginUrl: string | null;
|
242
|
+
}>>;
|
243
|
+
}, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
|
244
|
+
uuid: string;
|
245
|
+
name: string;
|
246
|
+
countryCode: string;
|
247
|
+
}, {
|
248
|
+
uuid: string;
|
249
|
+
name: string;
|
250
|
+
countryCode: string;
|
251
|
+
}>, "many">;
|
252
|
+
totalAvailableBillingNodes: z.ZodNumber;
|
253
|
+
}, "strip", z.ZodTypeAny, {
|
254
|
+
billingNodes: {
|
255
|
+
uuid: string;
|
256
|
+
createdAt: Date;
|
257
|
+
updatedAt: Date;
|
258
|
+
nodeUuid: string;
|
259
|
+
providerUuid: string;
|
260
|
+
provider: {
|
261
|
+
uuid: string;
|
262
|
+
name: string;
|
263
|
+
};
|
264
|
+
node: {
|
265
|
+
uuid: string;
|
266
|
+
name: string;
|
267
|
+
countryCode: string;
|
268
|
+
};
|
269
|
+
nextBillingAt: Date;
|
270
|
+
}[];
|
271
|
+
totalBillingNodes: number;
|
272
|
+
availableBillingNodes: {
|
273
|
+
uuid: string;
|
274
|
+
name: string;
|
275
|
+
countryCode: string;
|
276
|
+
}[];
|
277
|
+
totalAvailableBillingNodes: number;
|
278
|
+
}, {
|
279
|
+
billingNodes: {
|
280
|
+
uuid: string;
|
281
|
+
createdAt: string;
|
282
|
+
updatedAt: string;
|
283
|
+
nodeUuid: string;
|
284
|
+
providerUuid: string;
|
285
|
+
provider: {
|
286
|
+
uuid: string;
|
287
|
+
name: string;
|
288
|
+
};
|
289
|
+
node: {
|
290
|
+
uuid: string;
|
291
|
+
name: string;
|
292
|
+
countryCode: string;
|
293
|
+
};
|
294
|
+
nextBillingAt: string;
|
295
|
+
}[];
|
296
|
+
totalBillingNodes: number;
|
297
|
+
availableBillingNodes: {
|
298
|
+
uuid: string;
|
299
|
+
name: string;
|
300
|
+
countryCode: string;
|
301
|
+
}[];
|
302
|
+
totalAvailableBillingNodes: number;
|
303
|
+
}>;
|
304
|
+
}, "strip", z.ZodTypeAny, {
|
305
|
+
response: {
|
306
|
+
billingNodes: {
|
307
|
+
uuid: string;
|
308
|
+
createdAt: Date;
|
309
|
+
updatedAt: Date;
|
310
|
+
nodeUuid: string;
|
311
|
+
providerUuid: string;
|
312
|
+
provider: {
|
313
|
+
uuid: string;
|
314
|
+
name: string;
|
315
|
+
};
|
316
|
+
node: {
|
317
|
+
uuid: string;
|
318
|
+
name: string;
|
319
|
+
countryCode: string;
|
320
|
+
};
|
321
|
+
nextBillingAt: Date;
|
322
|
+
}[];
|
323
|
+
totalBillingNodes: number;
|
324
|
+
availableBillingNodes: {
|
325
|
+
uuid: string;
|
326
|
+
name: string;
|
327
|
+
countryCode: string;
|
328
|
+
}[];
|
329
|
+
totalAvailableBillingNodes: number;
|
330
|
+
};
|
331
|
+
}, {
|
332
|
+
response: {
|
333
|
+
billingNodes: {
|
334
|
+
uuid: string;
|
335
|
+
createdAt: string;
|
336
|
+
updatedAt: string;
|
337
|
+
nodeUuid: string;
|
338
|
+
providerUuid: string;
|
339
|
+
provider: {
|
340
|
+
uuid: string;
|
341
|
+
name: string;
|
342
|
+
};
|
343
|
+
node: {
|
344
|
+
uuid: string;
|
345
|
+
name: string;
|
346
|
+
countryCode: string;
|
347
|
+
};
|
348
|
+
nextBillingAt: string;
|
349
|
+
}[];
|
350
|
+
totalBillingNodes: number;
|
351
|
+
availableBillingNodes: {
|
352
|
+
uuid: string;
|
353
|
+
name: string;
|
354
|
+
countryCode: string;
|
355
|
+
}[];
|
356
|
+
totalAvailableBillingNodes: number;
|
357
|
+
};
|
358
|
+
}>;
|
359
|
+
type Response = z.infer<typeof ResponseSchema>;
|
360
|
+
}
|
361
|
+
//# sourceMappingURL=update-billing-node.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"update-billing-node.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/update-billing-node.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,QAAsD,CAAC;IAChE,MAAM,OAAO,QAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;MASxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.UpdateInfraBillingNodeCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const models_1 = require("../../models");
|
6
|
+
const api_1 = require("../../api");
|
7
|
+
const constants_1 = require("../../constants");
|
8
|
+
var UpdateInfraBillingNodeCommand;
|
9
|
+
(function (UpdateInfraBillingNodeCommand) {
|
10
|
+
UpdateInfraBillingNodeCommand.url = api_1.REST_API.INFRA_BILLING.UPDATE_BILLING_NODE(':uuid');
|
11
|
+
UpdateInfraBillingNodeCommand.TSQ_url = UpdateInfraBillingNodeCommand.url;
|
12
|
+
UpdateInfraBillingNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.UPDATE_BILLING_NODE(':uuid'), 'patch', 'Update infra billing node');
|
13
|
+
UpdateInfraBillingNodeCommand.RequestSchema = zod_1.z.object({
|
14
|
+
uuid: zod_1.z.string().uuid(),
|
15
|
+
nextBillingAt: zod_1.z
|
16
|
+
.string({
|
17
|
+
invalid_type_error: 'Invalid date format',
|
18
|
+
})
|
19
|
+
.datetime({ message: 'Invalid date format', offset: true, local: true })
|
20
|
+
.transform((str) => new Date(str))
|
21
|
+
.optional(),
|
22
|
+
});
|
23
|
+
UpdateInfraBillingNodeCommand.ResponseSchema = zod_1.z.object({
|
24
|
+
response: zod_1.z.object({
|
25
|
+
totalBillingNodes: zod_1.z.number(),
|
26
|
+
billingNodes: zod_1.z.array(models_1.InfraBillingNodeSchema),
|
27
|
+
availableBillingNodes: zod_1.z.array(models_1.InfraBillingAvailableNodeSchema),
|
28
|
+
totalAvailableBillingNodes: zod_1.z.number(),
|
29
|
+
}),
|
30
|
+
});
|
31
|
+
})(UpdateInfraBillingNodeCommand || (exports.UpdateInfraBillingNodeCommand = UpdateInfraBillingNodeCommand = {}));
|
@@ -684,5 +684,35 @@ export declare const ERRORS: {
|
|
684
684
|
readonly message: "Update infra provider error";
|
685
685
|
readonly httpCode: 500;
|
686
686
|
};
|
687
|
+
readonly CREATE_INFRA_BILLING_HISTORY_RECORD_ERROR: {
|
688
|
+
readonly code: "A132";
|
689
|
+
readonly message: "Create infra billing history record error";
|
690
|
+
readonly httpCode: 500;
|
691
|
+
};
|
692
|
+
readonly GET_INFRA_BILLING_HISTORY_RECORDS_ERROR: {
|
693
|
+
readonly code: "A133";
|
694
|
+
readonly message: "Get infra billing history records error";
|
695
|
+
readonly httpCode: 500;
|
696
|
+
};
|
697
|
+
readonly DELETE_INFRA_BILLING_HISTORY_RECORD_BY_UUID_ERROR: {
|
698
|
+
readonly code: "A134";
|
699
|
+
readonly message: "Delete infra billing history record by UUID error";
|
700
|
+
readonly httpCode: 500;
|
701
|
+
};
|
702
|
+
readonly GET_BILLING_NODES_ERROR: {
|
703
|
+
readonly code: "A135";
|
704
|
+
readonly message: "Get billing nodes error";
|
705
|
+
readonly httpCode: 500;
|
706
|
+
};
|
707
|
+
readonly UPDATE_INFRA_BILLING_NODE_ERROR: {
|
708
|
+
readonly code: "A136";
|
709
|
+
readonly message: "Update infra billing node error";
|
710
|
+
readonly httpCode: 500;
|
711
|
+
};
|
712
|
+
readonly CREATE_INFRA_BILLING_NODE_ERROR: {
|
713
|
+
readonly code: "A137";
|
714
|
+
readonly message: "Create infra billing node error";
|
715
|
+
readonly httpCode: 500;
|
716
|
+
};
|
687
717
|
};
|
688
718
|
//# sourceMappingURL=errors.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgY3B,CAAC"}
|
@@ -655,4 +655,34 @@ exports.ERRORS = {
|
|
655
655
|
message: 'Update infra provider error',
|
656
656
|
httpCode: 500,
|
657
657
|
},
|
658
|
+
CREATE_INFRA_BILLING_HISTORY_RECORD_ERROR: {
|
659
|
+
code: 'A132',
|
660
|
+
message: 'Create infra billing history record error',
|
661
|
+
httpCode: 500,
|
662
|
+
},
|
663
|
+
GET_INFRA_BILLING_HISTORY_RECORDS_ERROR: {
|
664
|
+
code: 'A133',
|
665
|
+
message: 'Get infra billing history records error',
|
666
|
+
httpCode: 500,
|
667
|
+
},
|
668
|
+
DELETE_INFRA_BILLING_HISTORY_RECORD_BY_UUID_ERROR: {
|
669
|
+
code: 'A134',
|
670
|
+
message: 'Delete infra billing history record by UUID error',
|
671
|
+
httpCode: 500,
|
672
|
+
},
|
673
|
+
GET_BILLING_NODES_ERROR: {
|
674
|
+
code: 'A135',
|
675
|
+
message: 'Get billing nodes error',
|
676
|
+
httpCode: 500,
|
677
|
+
},
|
678
|
+
UPDATE_INFRA_BILLING_NODE_ERROR: {
|
679
|
+
code: 'A136',
|
680
|
+
message: 'Update infra billing node error',
|
681
|
+
httpCode: 500,
|
682
|
+
},
|
683
|
+
CREATE_INFRA_BILLING_NODE_ERROR: {
|
684
|
+
code: 'A137',
|
685
|
+
message: 'Create infra billing node error',
|
686
|
+
httpCode: 500,
|
687
|
+
},
|
658
688
|
};
|
@@ -8,6 +8,9 @@ export * from './extented-users.schema';
|
|
8
8
|
export * from './happ.schema';
|
9
9
|
export * from './hosts.schema';
|
10
10
|
export * from './hwid-user-device.schema';
|
11
|
+
export * from './infra-billing-available-node.schema';
|
12
|
+
export * from './infra-billing-history-record.schema';
|
13
|
+
export * from './infra-billing-node.schema';
|
11
14
|
export * from './infra-provider.schema';
|
12
15
|
export * from './internal-squad.schema';
|
13
16
|
export * from './last-connected-node.schema';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC"}
|
@@ -24,6 +24,9 @@ __exportStar(require("./extented-users.schema"), exports);
|
|
24
24
|
__exportStar(require("./happ.schema"), exports);
|
25
25
|
__exportStar(require("./hosts.schema"), exports);
|
26
26
|
__exportStar(require("./hwid-user-device.schema"), exports);
|
27
|
+
__exportStar(require("./infra-billing-available-node.schema"), exports);
|
28
|
+
__exportStar(require("./infra-billing-history-record.schema"), exports);
|
29
|
+
__exportStar(require("./infra-billing-node.schema"), exports);
|
27
30
|
__exportStar(require("./infra-provider.schema"), exports);
|
28
31
|
__exportStar(require("./internal-squad.schema"), exports);
|
29
32
|
__exportStar(require("./last-connected-node.schema"), exports);
|
@@ -0,0 +1,90 @@
|
|
1
|
+
export declare const InfraBillingAvailableNodeSchema: import("zod").ZodObject<Pick<{
|
2
|
+
uuid: import("zod").ZodString;
|
3
|
+
name: import("zod").ZodString;
|
4
|
+
address: import("zod").ZodString;
|
5
|
+
port: import("zod").ZodNullable<import("zod").ZodNumber>;
|
6
|
+
isConnected: import("zod").ZodBoolean;
|
7
|
+
isDisabled: import("zod").ZodBoolean;
|
8
|
+
isConnecting: import("zod").ZodBoolean;
|
9
|
+
isNodeOnline: import("zod").ZodBoolean;
|
10
|
+
isXrayRunning: import("zod").ZodBoolean;
|
11
|
+
lastStatusChange: import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, Date, string>>;
|
12
|
+
lastStatusMessage: import("zod").ZodNullable<import("zod").ZodString>;
|
13
|
+
xrayVersion: import("zod").ZodNullable<import("zod").ZodString>;
|
14
|
+
xrayUptime: import("zod").ZodString;
|
15
|
+
isTrafficTrackingActive: import("zod").ZodBoolean;
|
16
|
+
trafficResetDay: import("zod").ZodNullable<import("zod").ZodNumber>;
|
17
|
+
trafficLimitBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
|
18
|
+
trafficUsedBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
|
19
|
+
notifyPercent: import("zod").ZodNullable<import("zod").ZodNumber>;
|
20
|
+
usersOnline: import("zod").ZodNullable<import("zod").ZodNumber>;
|
21
|
+
viewPosition: import("zod").ZodNumber;
|
22
|
+
countryCode: import("zod").ZodString;
|
23
|
+
consumptionMultiplier: import("zod").ZodNumber;
|
24
|
+
cpuCount: import("zod").ZodNullable<import("zod").ZodNumber>;
|
25
|
+
cpuModel: import("zod").ZodNullable<import("zod").ZodString>;
|
26
|
+
totalRam: import("zod").ZodNullable<import("zod").ZodString>;
|
27
|
+
createdAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
28
|
+
updatedAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
29
|
+
activeConfigProfileUuid: import("zod").ZodNullable<import("zod").ZodString>;
|
30
|
+
activeInbounds: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
|
31
|
+
uuid: import("zod").ZodString;
|
32
|
+
profileUuid: import("zod").ZodString;
|
33
|
+
tag: import("zod").ZodString;
|
34
|
+
type: import("zod").ZodString;
|
35
|
+
network: import("zod").ZodNullable<import("zod").ZodString>;
|
36
|
+
security: import("zod").ZodNullable<import("zod").ZodString>;
|
37
|
+
port: import("zod").ZodNullable<import("zod").ZodNumber>;
|
38
|
+
rawInbound: import("zod").ZodNullable<import("zod").ZodUnknown>;
|
39
|
+
}, "strip", import("zod").ZodTypeAny, {
|
40
|
+
type: string;
|
41
|
+
uuid: string;
|
42
|
+
profileUuid: string;
|
43
|
+
tag: string;
|
44
|
+
network: string | null;
|
45
|
+
security: string | null;
|
46
|
+
port: number | null;
|
47
|
+
rawInbound?: unknown;
|
48
|
+
}, {
|
49
|
+
type: string;
|
50
|
+
uuid: string;
|
51
|
+
profileUuid: string;
|
52
|
+
tag: string;
|
53
|
+
network: string | null;
|
54
|
+
security: string | null;
|
55
|
+
port: number | null;
|
56
|
+
rawInbound?: unknown;
|
57
|
+
}>, "many">>;
|
58
|
+
providerUuid: import("zod").ZodNullable<import("zod").ZodString>;
|
59
|
+
provider: import("zod").ZodNullable<import("zod").ZodObject<{
|
60
|
+
uuid: import("zod").ZodString;
|
61
|
+
name: import("zod").ZodString;
|
62
|
+
faviconLink: import("zod").ZodNullable<import("zod").ZodString>;
|
63
|
+
loginUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
64
|
+
createdAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
65
|
+
updatedAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
66
|
+
}, "strip", import("zod").ZodTypeAny, {
|
67
|
+
uuid: string;
|
68
|
+
createdAt: Date;
|
69
|
+
updatedAt: Date;
|
70
|
+
name: string;
|
71
|
+
faviconLink: string | null;
|
72
|
+
loginUrl: string | null;
|
73
|
+
}, {
|
74
|
+
uuid: string;
|
75
|
+
createdAt: string;
|
76
|
+
updatedAt: string;
|
77
|
+
name: string;
|
78
|
+
faviconLink: string | null;
|
79
|
+
loginUrl: string | null;
|
80
|
+
}>>;
|
81
|
+
}, "uuid" | "name" | "countryCode">, "strip", import("zod").ZodTypeAny, {
|
82
|
+
uuid: string;
|
83
|
+
name: string;
|
84
|
+
countryCode: string;
|
85
|
+
}, {
|
86
|
+
uuid: string;
|
87
|
+
name: string;
|
88
|
+
countryCode: string;
|
89
|
+
}>;
|
90
|
+
//# sourceMappingURL=infra-billing-available-node.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"infra-billing-available-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-available-node.schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI1C,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.InfraBillingAvailableNodeSchema = void 0;
|
4
|
+
const nodes_schema_1 = require("./nodes.schema");
|
5
|
+
exports.InfraBillingAvailableNodeSchema = nodes_schema_1.NodesSchema.pick({
|
6
|
+
uuid: true,
|
7
|
+
name: true,
|
8
|
+
countryCode: true,
|
9
|
+
});
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const InfraBillingHistoryRecordSchema: z.ZodObject<{
|
3
|
+
uuid: z.ZodString;
|
4
|
+
providerUuid: z.ZodString;
|
5
|
+
amount: z.ZodNumber;
|
6
|
+
billedAt: z.ZodEffects<z.ZodString, Date, string>;
|
7
|
+
provider: z.ZodObject<Omit<{
|
8
|
+
uuid: z.ZodString;
|
9
|
+
name: z.ZodString;
|
10
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
11
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
12
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
13
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
14
|
+
}, "createdAt" | "updatedAt" | "loginUrl">, "strip", z.ZodTypeAny, {
|
15
|
+
uuid: string;
|
16
|
+
name: string;
|
17
|
+
faviconLink: string | null;
|
18
|
+
}, {
|
19
|
+
uuid: string;
|
20
|
+
name: string;
|
21
|
+
faviconLink: string | null;
|
22
|
+
}>;
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
24
|
+
uuid: string;
|
25
|
+
providerUuid: string;
|
26
|
+
provider: {
|
27
|
+
uuid: string;
|
28
|
+
name: string;
|
29
|
+
faviconLink: string | null;
|
30
|
+
};
|
31
|
+
amount: number;
|
32
|
+
billedAt: Date;
|
33
|
+
}, {
|
34
|
+
uuid: string;
|
35
|
+
providerUuid: string;
|
36
|
+
provider: {
|
37
|
+
uuid: string;
|
38
|
+
name: string;
|
39
|
+
faviconLink: string | null;
|
40
|
+
};
|
41
|
+
amount: number;
|
42
|
+
billedAt: string;
|
43
|
+
}>;
|
44
|
+
//# sourceMappingURL=infra-billing-history-record.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"infra-billing-history-record.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-history-record.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa1C,CAAC"}
|