@remnawave/backend-contract 2.0.0-alpha.10 → 2.0.0-alpha.12
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 +31 -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/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/index.d.ts +3 -0
- package/build/backend/commands/infra-billing/index.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/index.js +3 -0
- package/build/backend/commands/nodes/actions/disable.command.d.ts +36 -113
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +36 -113
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +36 -154
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +38 -115
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-all.command.d.ts +36 -113
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +36 -113
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.d.ts +38 -156
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.d.ts +15 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +15 -0
- package/build/backend/models/index.d.ts +1 -0
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +1 -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-provider.schema.d.ts +22 -0
- package/build/backend/models/infra-provider.schema.d.ts.map +1 -1
- package/build/backend/models/infra-provider.schema.js +15 -1
- package/build/backend/models/nodes.schema.d.ts +18 -77
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +1 -1
- package/build/frontend/commands/infra-billing/create-bill-record.command.js +31 -0
- package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
- package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
- package/build/frontend/commands/infra-billing/index.js +3 -0
- package/build/frontend/constants/errors/errors.js +15 -0
- package/build/frontend/models/index.js +1 -0
- package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
- package/build/frontend/models/infra-provider.schema.js +15 -1
- package/build/frontend/models/nodes.schema.js +1 -1
- package/package.json +1 -1
@@ -68,29 +68,6 @@ export declare namespace UpdateNodeCommand {
|
|
68
68
|
loginUrl: z.ZodNullable<z.ZodString>;
|
69
69
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
70
70
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
71
|
-
billingHistory: z.ZodObject<{
|
72
|
-
totalAmount: z.ZodNumber;
|
73
|
-
totalBills: z.ZodNumber;
|
74
|
-
}, "strip", z.ZodTypeAny, {
|
75
|
-
totalAmount: number;
|
76
|
-
totalBills: number;
|
77
|
-
}, {
|
78
|
-
totalAmount: number;
|
79
|
-
totalBills: number;
|
80
|
-
}>;
|
81
|
-
billingNodes: z.ZodArray<z.ZodObject<{
|
82
|
-
nodeUuid: z.ZodString;
|
83
|
-
name: z.ZodString;
|
84
|
-
countryCode: z.ZodString;
|
85
|
-
}, "strip", z.ZodTypeAny, {
|
86
|
-
name: string;
|
87
|
-
countryCode: string;
|
88
|
-
nodeUuid: string;
|
89
|
-
}, {
|
90
|
-
name: string;
|
91
|
-
countryCode: string;
|
92
|
-
nodeUuid: string;
|
93
|
-
}>, "many">;
|
94
71
|
}, "strip", z.ZodTypeAny, {
|
95
72
|
uuid: string;
|
96
73
|
createdAt: Date;
|
@@ -98,15 +75,6 @@ export declare namespace UpdateNodeCommand {
|
|
98
75
|
name: string;
|
99
76
|
faviconLink: string | null;
|
100
77
|
loginUrl: string | null;
|
101
|
-
billingHistory: {
|
102
|
-
totalAmount: number;
|
103
|
-
totalBills: number;
|
104
|
-
};
|
105
|
-
billingNodes: {
|
106
|
-
name: string;
|
107
|
-
countryCode: string;
|
108
|
-
nodeUuid: string;
|
109
|
-
}[];
|
110
78
|
}, {
|
111
79
|
uuid: string;
|
112
80
|
createdAt: string;
|
@@ -114,15 +82,6 @@ export declare namespace UpdateNodeCommand {
|
|
114
82
|
name: string;
|
115
83
|
faviconLink: string | null;
|
116
84
|
loginUrl: string | null;
|
117
|
-
billingHistory: {
|
118
|
-
totalAmount: number;
|
119
|
-
totalBills: number;
|
120
|
-
};
|
121
|
-
billingNodes: {
|
122
|
-
name: string;
|
123
|
-
countryCode: string;
|
124
|
-
nodeUuid: string;
|
125
|
-
}[];
|
126
85
|
}>>;
|
127
86
|
}, "uuid"> & {
|
128
87
|
name: z.ZodOptional<z.ZodString>;
|
@@ -144,13 +103,13 @@ export declare namespace UpdateNodeCommand {
|
|
144
103
|
countryCode?: string | undefined;
|
145
104
|
trafficLimitBytes?: number | undefined;
|
146
105
|
address?: string | undefined;
|
106
|
+
providerUuid?: string | null | undefined;
|
147
107
|
isTrafficTrackingActive?: boolean | undefined;
|
148
108
|
trafficResetDay?: number | undefined;
|
149
109
|
notifyPercent?: number | undefined;
|
150
110
|
consumptionMultiplier?: number | undefined;
|
151
111
|
activeConfigProfileUuid?: string | undefined;
|
152
112
|
activeInbounds?: string[] | undefined;
|
153
|
-
providerUuid?: string | null | undefined;
|
154
113
|
}, {
|
155
114
|
uuid: string;
|
156
115
|
name?: string | undefined;
|
@@ -158,13 +117,13 @@ export declare namespace UpdateNodeCommand {
|
|
158
117
|
countryCode?: string | undefined;
|
159
118
|
trafficLimitBytes?: number | undefined;
|
160
119
|
address?: string | undefined;
|
120
|
+
providerUuid?: string | null | undefined;
|
161
121
|
isTrafficTrackingActive?: boolean | undefined;
|
162
122
|
trafficResetDay?: number | undefined;
|
163
123
|
notifyPercent?: number | undefined;
|
164
124
|
consumptionMultiplier?: number | undefined;
|
165
125
|
activeConfigProfileUuid?: string | undefined;
|
166
126
|
activeInbounds?: string[] | undefined;
|
167
|
-
providerUuid?: string | null | undefined;
|
168
127
|
}>;
|
169
128
|
type Request = z.infer<typeof RequestSchema>;
|
170
129
|
const ResponseSchema: z.ZodObject<{
|
@@ -233,29 +192,6 @@ export declare namespace UpdateNodeCommand {
|
|
233
192
|
loginUrl: z.ZodNullable<z.ZodString>;
|
234
193
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
235
194
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
236
|
-
billingHistory: z.ZodObject<{
|
237
|
-
totalAmount: z.ZodNumber;
|
238
|
-
totalBills: z.ZodNumber;
|
239
|
-
}, "strip", z.ZodTypeAny, {
|
240
|
-
totalAmount: number;
|
241
|
-
totalBills: number;
|
242
|
-
}, {
|
243
|
-
totalAmount: number;
|
244
|
-
totalBills: number;
|
245
|
-
}>;
|
246
|
-
billingNodes: z.ZodArray<z.ZodObject<{
|
247
|
-
nodeUuid: z.ZodString;
|
248
|
-
name: z.ZodString;
|
249
|
-
countryCode: z.ZodString;
|
250
|
-
}, "strip", z.ZodTypeAny, {
|
251
|
-
name: string;
|
252
|
-
countryCode: string;
|
253
|
-
nodeUuid: string;
|
254
|
-
}, {
|
255
|
-
name: string;
|
256
|
-
countryCode: string;
|
257
|
-
nodeUuid: string;
|
258
|
-
}>, "many">;
|
259
195
|
}, "strip", z.ZodTypeAny, {
|
260
196
|
uuid: string;
|
261
197
|
createdAt: Date;
|
@@ -263,15 +199,6 @@ export declare namespace UpdateNodeCommand {
|
|
263
199
|
name: string;
|
264
200
|
faviconLink: string | null;
|
265
201
|
loginUrl: string | null;
|
266
|
-
billingHistory: {
|
267
|
-
totalAmount: number;
|
268
|
-
totalBills: number;
|
269
|
-
};
|
270
|
-
billingNodes: {
|
271
|
-
name: string;
|
272
|
-
countryCode: string;
|
273
|
-
nodeUuid: string;
|
274
|
-
}[];
|
275
202
|
}, {
|
276
203
|
uuid: string;
|
277
204
|
createdAt: string;
|
@@ -279,15 +206,6 @@ export declare namespace UpdateNodeCommand {
|
|
279
206
|
name: string;
|
280
207
|
faviconLink: string | null;
|
281
208
|
loginUrl: string | null;
|
282
|
-
billingHistory: {
|
283
|
-
totalAmount: number;
|
284
|
-
totalBills: number;
|
285
|
-
};
|
286
|
-
billingNodes: {
|
287
|
-
name: string;
|
288
|
-
countryCode: string;
|
289
|
-
nodeUuid: string;
|
290
|
-
}[];
|
291
209
|
}>>;
|
292
210
|
}, "strip", z.ZodTypeAny, {
|
293
211
|
uuid: string;
|
@@ -300,6 +218,15 @@ export declare namespace UpdateNodeCommand {
|
|
300
218
|
viewPosition: number;
|
301
219
|
address: string;
|
302
220
|
isDisabled: boolean;
|
221
|
+
providerUuid: string | null;
|
222
|
+
provider: {
|
223
|
+
uuid: string;
|
224
|
+
createdAt: Date;
|
225
|
+
updatedAt: Date;
|
226
|
+
name: string;
|
227
|
+
faviconLink: string | null;
|
228
|
+
loginUrl: string | null;
|
229
|
+
} | null;
|
303
230
|
isConnected: boolean;
|
304
231
|
isConnecting: boolean;
|
305
232
|
isNodeOnline: boolean;
|
@@ -328,24 +255,6 @@ export declare namespace UpdateNodeCommand {
|
|
328
255
|
port: number | null;
|
329
256
|
rawInbound?: unknown;
|
330
257
|
}[] | null;
|
331
|
-
providerUuid: string | null;
|
332
|
-
provider: {
|
333
|
-
uuid: string;
|
334
|
-
createdAt: Date;
|
335
|
-
updatedAt: Date;
|
336
|
-
name: string;
|
337
|
-
faviconLink: string | null;
|
338
|
-
loginUrl: string | null;
|
339
|
-
billingHistory: {
|
340
|
-
totalAmount: number;
|
341
|
-
totalBills: number;
|
342
|
-
};
|
343
|
-
billingNodes: {
|
344
|
-
name: string;
|
345
|
-
countryCode: string;
|
346
|
-
nodeUuid: string;
|
347
|
-
}[];
|
348
|
-
} | null;
|
349
258
|
}, {
|
350
259
|
uuid: string;
|
351
260
|
createdAt: string;
|
@@ -357,6 +266,15 @@ export declare namespace UpdateNodeCommand {
|
|
357
266
|
viewPosition: number;
|
358
267
|
address: string;
|
359
268
|
isDisabled: boolean;
|
269
|
+
providerUuid: string | null;
|
270
|
+
provider: {
|
271
|
+
uuid: string;
|
272
|
+
createdAt: string;
|
273
|
+
updatedAt: string;
|
274
|
+
name: string;
|
275
|
+
faviconLink: string | null;
|
276
|
+
loginUrl: string | null;
|
277
|
+
} | null;
|
360
278
|
isConnected: boolean;
|
361
279
|
isConnecting: boolean;
|
362
280
|
isNodeOnline: boolean;
|
@@ -385,24 +303,6 @@ export declare namespace UpdateNodeCommand {
|
|
385
303
|
port: number | null;
|
386
304
|
rawInbound?: unknown;
|
387
305
|
}[] | null;
|
388
|
-
providerUuid: string | null;
|
389
|
-
provider: {
|
390
|
-
uuid: string;
|
391
|
-
createdAt: string;
|
392
|
-
updatedAt: string;
|
393
|
-
name: string;
|
394
|
-
faviconLink: string | null;
|
395
|
-
loginUrl: string | null;
|
396
|
-
billingHistory: {
|
397
|
-
totalAmount: number;
|
398
|
-
totalBills: number;
|
399
|
-
};
|
400
|
-
billingNodes: {
|
401
|
-
name: string;
|
402
|
-
countryCode: string;
|
403
|
-
nodeUuid: string;
|
404
|
-
}[];
|
405
|
-
} | null;
|
406
306
|
}>;
|
407
307
|
}, "strip", z.ZodTypeAny, {
|
408
308
|
response: {
|
@@ -416,6 +316,15 @@ export declare namespace UpdateNodeCommand {
|
|
416
316
|
viewPosition: number;
|
417
317
|
address: string;
|
418
318
|
isDisabled: boolean;
|
319
|
+
providerUuid: string | null;
|
320
|
+
provider: {
|
321
|
+
uuid: string;
|
322
|
+
createdAt: Date;
|
323
|
+
updatedAt: Date;
|
324
|
+
name: string;
|
325
|
+
faviconLink: string | null;
|
326
|
+
loginUrl: string | null;
|
327
|
+
} | null;
|
419
328
|
isConnected: boolean;
|
420
329
|
isConnecting: boolean;
|
421
330
|
isNodeOnline: boolean;
|
@@ -444,24 +353,6 @@ export declare namespace UpdateNodeCommand {
|
|
444
353
|
port: number | null;
|
445
354
|
rawInbound?: unknown;
|
446
355
|
}[] | null;
|
447
|
-
providerUuid: string | null;
|
448
|
-
provider: {
|
449
|
-
uuid: string;
|
450
|
-
createdAt: Date;
|
451
|
-
updatedAt: Date;
|
452
|
-
name: string;
|
453
|
-
faviconLink: string | null;
|
454
|
-
loginUrl: string | null;
|
455
|
-
billingHistory: {
|
456
|
-
totalAmount: number;
|
457
|
-
totalBills: number;
|
458
|
-
};
|
459
|
-
billingNodes: {
|
460
|
-
name: string;
|
461
|
-
countryCode: string;
|
462
|
-
nodeUuid: string;
|
463
|
-
}[];
|
464
|
-
} | null;
|
465
356
|
};
|
466
357
|
}, {
|
467
358
|
response: {
|
@@ -475,6 +366,15 @@ export declare namespace UpdateNodeCommand {
|
|
475
366
|
viewPosition: number;
|
476
367
|
address: string;
|
477
368
|
isDisabled: boolean;
|
369
|
+
providerUuid: string | null;
|
370
|
+
provider: {
|
371
|
+
uuid: string;
|
372
|
+
createdAt: string;
|
373
|
+
updatedAt: string;
|
374
|
+
name: string;
|
375
|
+
faviconLink: string | null;
|
376
|
+
loginUrl: string | null;
|
377
|
+
} | null;
|
478
378
|
isConnected: boolean;
|
479
379
|
isConnecting: boolean;
|
480
380
|
isNodeOnline: boolean;
|
@@ -503,24 +403,6 @@ export declare namespace UpdateNodeCommand {
|
|
503
403
|
port: number | null;
|
504
404
|
rawInbound?: unknown;
|
505
405
|
}[] | null;
|
506
|
-
providerUuid: string | null;
|
507
|
-
provider: {
|
508
|
-
uuid: string;
|
509
|
-
createdAt: string;
|
510
|
-
updatedAt: string;
|
511
|
-
name: string;
|
512
|
-
faviconLink: string | null;
|
513
|
-
loginUrl: string | null;
|
514
|
-
billingHistory: {
|
515
|
-
totalAmount: number;
|
516
|
-
totalBills: number;
|
517
|
-
};
|
518
|
-
billingNodes: {
|
519
|
-
name: string;
|
520
|
-
countryCode: string;
|
521
|
-
nodeUuid: string;
|
522
|
-
}[];
|
523
|
-
} | null;
|
524
406
|
};
|
525
407
|
}>;
|
526
408
|
type Response = z.infer<typeof ResponseSchema>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAAkE,CAAC;IAExF,MAAM,aAAa
|
1
|
+
{"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAAkE,CAAC;IAExF,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoCxB,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"}
|
@@ -684,5 +684,20 @@ 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
|
+
};
|
687
702
|
};
|
688
703
|
//# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiX3B,CAAC"}
|
@@ -655,4 +655,19 @@ 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
|
+
},
|
658
673
|
};
|
@@ -8,6 +8,7 @@ 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-history-record.schema';
|
11
12
|
export * from './infra-provider.schema';
|
12
13
|
export * from './internal-squad.schema';
|
13
14
|
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,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,7 @@ __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-history-record.schema"), exports);
|
27
28
|
__exportStar(require("./infra-provider.schema"), exports);
|
28
29
|
__exportStar(require("./internal-squad.schema"), exports);
|
29
30
|
__exportStar(require("./last-connected-node.schema"), exports);
|
@@ -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
|
+
amount: number;
|
27
|
+
billedAt: Date;
|
28
|
+
provider: {
|
29
|
+
uuid: string;
|
30
|
+
name: string;
|
31
|
+
faviconLink: string | null;
|
32
|
+
};
|
33
|
+
}, {
|
34
|
+
uuid: string;
|
35
|
+
providerUuid: string;
|
36
|
+
amount: number;
|
37
|
+
billedAt: string;
|
38
|
+
provider: {
|
39
|
+
uuid: string;
|
40
|
+
name: string;
|
41
|
+
faviconLink: string | null;
|
42
|
+
};
|
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"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.InfraBillingHistoryRecordSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const infra_provider_schema_1 = require("./infra-provider.schema");
|
6
|
+
exports.InfraBillingHistoryRecordSchema = zod_1.z.object({
|
7
|
+
uuid: zod_1.z.string().uuid(),
|
8
|
+
providerUuid: zod_1.z.string().uuid(),
|
9
|
+
amount: zod_1.z.number(),
|
10
|
+
billedAt: zod_1.z
|
11
|
+
.string()
|
12
|
+
.datetime()
|
13
|
+
.transform((str) => new Date(str)),
|
14
|
+
provider: infra_provider_schema_1.PartialInfraProviderSchema.omit({
|
15
|
+
createdAt: true,
|
16
|
+
updatedAt: true,
|
17
|
+
loginUrl: true,
|
18
|
+
}),
|
19
|
+
});
|
@@ -62,4 +62,26 @@ export declare const InfraProviderSchema: z.ZodObject<{
|
|
62
62
|
nodeUuid: string;
|
63
63
|
}[];
|
64
64
|
}>;
|
65
|
+
export declare const PartialInfraProviderSchema: z.ZodObject<{
|
66
|
+
uuid: z.ZodString;
|
67
|
+
name: z.ZodString;
|
68
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
69
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
70
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
71
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
73
|
+
uuid: string;
|
74
|
+
createdAt: Date;
|
75
|
+
updatedAt: Date;
|
76
|
+
name: string;
|
77
|
+
faviconLink: string | null;
|
78
|
+
loginUrl: string | null;
|
79
|
+
}, {
|
80
|
+
uuid: string;
|
81
|
+
createdAt: string;
|
82
|
+
updatedAt: string;
|
83
|
+
name: string;
|
84
|
+
faviconLink: string | null;
|
85
|
+
loginUrl: string | null;
|
86
|
+
}>;
|
65
87
|
//# sourceMappingURL=infra-provider.schema.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"infra-provider.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-provider.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B9B,CAAC"}
|
1
|
+
{"version":3,"file":"infra-provider.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-provider.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B9B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;EAcrC,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.InfraProviderSchema = void 0;
|
3
|
+
exports.PartialInfraProviderSchema = exports.InfraProviderSchema = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
exports.InfraProviderSchema = zod_1.z.object({
|
6
6
|
uuid: zod_1.z.string().uuid(),
|
@@ -25,3 +25,17 @@ exports.InfraProviderSchema = zod_1.z.object({
|
|
25
25
|
countryCode: zod_1.z.string(),
|
26
26
|
})),
|
27
27
|
});
|
28
|
+
exports.PartialInfraProviderSchema = zod_1.z.object({
|
29
|
+
uuid: zod_1.z.string().uuid(),
|
30
|
+
name: zod_1.z.string(),
|
31
|
+
faviconLink: zod_1.z.nullable(zod_1.z.string()),
|
32
|
+
loginUrl: zod_1.z.nullable(zod_1.z.string()),
|
33
|
+
createdAt: zod_1.z
|
34
|
+
.string()
|
35
|
+
.datetime()
|
36
|
+
.transform((str) => new Date(str)),
|
37
|
+
updatedAt: zod_1.z
|
38
|
+
.string()
|
39
|
+
.datetime()
|
40
|
+
.transform((str) => new Date(str)),
|
41
|
+
});
|
@@ -64,29 +64,6 @@ export declare const NodesSchema: z.ZodObject<{
|
|
64
64
|
loginUrl: z.ZodNullable<z.ZodString>;
|
65
65
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
66
66
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
67
|
-
billingHistory: z.ZodObject<{
|
68
|
-
totalAmount: z.ZodNumber;
|
69
|
-
totalBills: z.ZodNumber;
|
70
|
-
}, "strip", z.ZodTypeAny, {
|
71
|
-
totalAmount: number;
|
72
|
-
totalBills: number;
|
73
|
-
}, {
|
74
|
-
totalAmount: number;
|
75
|
-
totalBills: number;
|
76
|
-
}>;
|
77
|
-
billingNodes: z.ZodArray<z.ZodObject<{
|
78
|
-
nodeUuid: z.ZodString;
|
79
|
-
name: z.ZodString;
|
80
|
-
countryCode: z.ZodString;
|
81
|
-
}, "strip", z.ZodTypeAny, {
|
82
|
-
name: string;
|
83
|
-
countryCode: string;
|
84
|
-
nodeUuid: string;
|
85
|
-
}, {
|
86
|
-
name: string;
|
87
|
-
countryCode: string;
|
88
|
-
nodeUuid: string;
|
89
|
-
}>, "many">;
|
90
67
|
}, "strip", z.ZodTypeAny, {
|
91
68
|
uuid: string;
|
92
69
|
createdAt: Date;
|
@@ -94,15 +71,6 @@ export declare const NodesSchema: z.ZodObject<{
|
|
94
71
|
name: string;
|
95
72
|
faviconLink: string | null;
|
96
73
|
loginUrl: string | null;
|
97
|
-
billingHistory: {
|
98
|
-
totalAmount: number;
|
99
|
-
totalBills: number;
|
100
|
-
};
|
101
|
-
billingNodes: {
|
102
|
-
name: string;
|
103
|
-
countryCode: string;
|
104
|
-
nodeUuid: string;
|
105
|
-
}[];
|
106
74
|
}, {
|
107
75
|
uuid: string;
|
108
76
|
createdAt: string;
|
@@ -110,15 +78,6 @@ export declare const NodesSchema: z.ZodObject<{
|
|
110
78
|
name: string;
|
111
79
|
faviconLink: string | null;
|
112
80
|
loginUrl: string | null;
|
113
|
-
billingHistory: {
|
114
|
-
totalAmount: number;
|
115
|
-
totalBills: number;
|
116
|
-
};
|
117
|
-
billingNodes: {
|
118
|
-
name: string;
|
119
|
-
countryCode: string;
|
120
|
-
nodeUuid: string;
|
121
|
-
}[];
|
122
81
|
}>>;
|
123
82
|
}, "strip", z.ZodTypeAny, {
|
124
83
|
uuid: string;
|
@@ -131,6 +90,15 @@ export declare const NodesSchema: z.ZodObject<{
|
|
131
90
|
viewPosition: number;
|
132
91
|
address: string;
|
133
92
|
isDisabled: boolean;
|
93
|
+
providerUuid: string | null;
|
94
|
+
provider: {
|
95
|
+
uuid: string;
|
96
|
+
createdAt: Date;
|
97
|
+
updatedAt: Date;
|
98
|
+
name: string;
|
99
|
+
faviconLink: string | null;
|
100
|
+
loginUrl: string | null;
|
101
|
+
} | null;
|
134
102
|
isConnected: boolean;
|
135
103
|
isConnecting: boolean;
|
136
104
|
isNodeOnline: boolean;
|
@@ -159,24 +127,6 @@ export declare const NodesSchema: z.ZodObject<{
|
|
159
127
|
port: number | null;
|
160
128
|
rawInbound?: unknown;
|
161
129
|
}[] | null;
|
162
|
-
providerUuid: string | null;
|
163
|
-
provider: {
|
164
|
-
uuid: string;
|
165
|
-
createdAt: Date;
|
166
|
-
updatedAt: Date;
|
167
|
-
name: string;
|
168
|
-
faviconLink: string | null;
|
169
|
-
loginUrl: string | null;
|
170
|
-
billingHistory: {
|
171
|
-
totalAmount: number;
|
172
|
-
totalBills: number;
|
173
|
-
};
|
174
|
-
billingNodes: {
|
175
|
-
name: string;
|
176
|
-
countryCode: string;
|
177
|
-
nodeUuid: string;
|
178
|
-
}[];
|
179
|
-
} | null;
|
180
130
|
}, {
|
181
131
|
uuid: string;
|
182
132
|
createdAt: string;
|
@@ -188,6 +138,15 @@ export declare const NodesSchema: z.ZodObject<{
|
|
188
138
|
viewPosition: number;
|
189
139
|
address: string;
|
190
140
|
isDisabled: boolean;
|
141
|
+
providerUuid: string | null;
|
142
|
+
provider: {
|
143
|
+
uuid: string;
|
144
|
+
createdAt: string;
|
145
|
+
updatedAt: string;
|
146
|
+
name: string;
|
147
|
+
faviconLink: string | null;
|
148
|
+
loginUrl: string | null;
|
149
|
+
} | null;
|
191
150
|
isConnected: boolean;
|
192
151
|
isConnecting: boolean;
|
193
152
|
isNodeOnline: boolean;
|
@@ -216,23 +175,5 @@ export declare const NodesSchema: z.ZodObject<{
|
|
216
175
|
port: number | null;
|
217
176
|
rawInbound?: unknown;
|
218
177
|
}[] | null;
|
219
|
-
providerUuid: string | null;
|
220
|
-
provider: {
|
221
|
-
uuid: string;
|
222
|
-
createdAt: string;
|
223
|
-
updatedAt: string;
|
224
|
-
name: string;
|
225
|
-
faviconLink: string | null;
|
226
|
-
loginUrl: string | null;
|
227
|
-
billingHistory: {
|
228
|
-
totalAmount: number;
|
229
|
-
totalBills: number;
|
230
|
-
};
|
231
|
-
billingNodes: {
|
232
|
-
name: string;
|
233
|
-
countryCode: string;
|
234
|
-
nodeUuid: string;
|
235
|
-
}[];
|
236
|
-
} | null;
|
237
178
|
}>;
|
238
179
|
//# sourceMappingURL=nodes.schema.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,WAAW
|
1
|
+
{"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDtB,CAAC"}
|
@@ -44,5 +44,5 @@ exports.NodesSchema = zod_1.z.object({
|
|
44
44
|
activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
45
45
|
activeInbounds: zod_1.z.nullable(zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema)),
|
46
46
|
providerUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
47
|
-
provider: zod_1.z.nullable(infra_provider_schema_1.
|
47
|
+
provider: zod_1.z.nullable(infra_provider_schema_1.PartialInfraProviderSchema),
|
48
48
|
});
|