@remnawave/backend-contract 2.0.0-alpha.2 → 2.0.0-alpha.20
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/api/controllers/index.d.ts +1 -0
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +1 -0
- package/build/backend/api/controllers/infra-billing.d.ts +16 -0
- package/build/backend/api/controllers/infra-billing.d.ts.map +1 -0
- package/build/backend/api/controllers/infra-billing.js +18 -0
- package/build/backend/api/controllers/users.d.ts +1 -0
- package/build/backend/api/controllers/users.d.ts.map +1 -1
- package/build/backend/api/controllers/users.js +1 -0
- package/build/backend/api/routes.d.ts +15 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +15 -0
- package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
- package/build/backend/commands/hosts/create.command.d.ts +6 -6
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +4 -2
- package/build/backend/commands/index.d.ts +1 -0
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +1 -0
- 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 +413 -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 +38 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +123 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.js +24 -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 +407 -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 +29 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +33 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -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 +399 -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 +26 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +117 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +156 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.js +19 -0
- package/build/backend/commands/infra-billing/index.d.ts +13 -0
- package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/index.js +28 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +410 -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 +35 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +126 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.js +26 -0
- package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
- package/build/backend/commands/nodes/actions/disable.command.d.ts +59 -0
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +59 -0
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +82 -0
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +62 -0
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +1 -0
- package/build/backend/commands/nodes/get-all.command.d.ts +59 -0
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +59 -0
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/nodes/update.command.d.ts +85 -0
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +1 -0
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +114 -0
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -0
- package/build/backend/commands/users/get-user-accessible-nodes.command.js +31 -0
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/users/index.d.ts +1 -0
- package/build/backend/commands/users/index.d.ts.map +1 -1
- package/build/backend/commands/users/index.js +1 -0
- package/build/backend/constants/errors/errors.d.ts +75 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +75 -0
- package/build/backend/constants/events/events.d.ts +11 -0
- package/build/backend/constants/events/events.d.ts.map +1 -1
- package/build/backend/constants/events/events.js +10 -0
- package/build/backend/constants/templates/template-keys.d.ts +1 -1
- package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
- package/build/backend/constants/templates/template-keys.js +1 -0
- package/build/backend/models/index.d.ts +4 -0
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +4 -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 +153 -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/backend/models/infra-provider.schema.d.ts +87 -0
- package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
- package/build/backend/models/infra-provider.schema.js +41 -0
- package/build/backend/models/nodes.schema.d.ts +41 -0
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +3 -0
- package/build/frontend/api/controllers/index.js +1 -0
- package/build/frontend/api/controllers/infra-billing.js +18 -0
- package/build/frontend/api/controllers/users.js +1 -0
- package/build/frontend/api/routes.js +15 -0
- package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
- package/build/frontend/commands/hosts/create.command.js +4 -2
- package/build/frontend/commands/index.js +1 -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 +38 -0
- package/build/frontend/commands/infra-billing/create-infra-provider.command.js +24 -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 +29 -0
- package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -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 +26 -0
- package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
- package/build/frontend/commands/infra-billing/get-infra-providers.command.js +19 -0
- package/build/frontend/commands/infra-billing/index.js +28 -0
- package/build/frontend/commands/infra-billing/update-billing-node.command.js +35 -0
- package/build/frontend/commands/infra-billing/update-infra-provider.command.js +26 -0
- package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
- package/build/frontend/commands/nodes/create.command.js +1 -0
- package/build/frontend/commands/nodes/update.command.js +1 -0
- package/build/frontend/commands/users/get-user-accessible-nodes.command.js +31 -0
- package/build/frontend/commands/users/index.js +1 -0
- package/build/frontend/constants/errors/errors.js +75 -0
- package/build/frontend/constants/events/events.js +10 -0
- package/build/frontend/constants/templates/template-keys.js +1 -0
- package/build/frontend/models/index.js +4 -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/build/frontend/models/infra-provider.schema.js +41 -0
- package/build/frontend/models/nodes.schema.js +3 -0
- package/package.json +1 -1
@@ -0,0 +1,122 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace GetInfraBillingHistoryRecordsCommand {
|
3
|
+
const url: "/api/infra-billing/history";
|
4
|
+
const TSQ_url: "/api/infra-billing/history";
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
6
|
+
const RequestQuerySchema: z.ZodObject<{
|
7
|
+
start: z.ZodDefault<z.ZodNumber>;
|
8
|
+
size: z.ZodDefault<z.ZodNumber>;
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
10
|
+
start: number;
|
11
|
+
size: number;
|
12
|
+
}, {
|
13
|
+
start?: number | undefined;
|
14
|
+
size?: number | undefined;
|
15
|
+
}>;
|
16
|
+
type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
17
|
+
const ResponseSchema: z.ZodObject<{
|
18
|
+
response: z.ZodObject<{
|
19
|
+
records: z.ZodArray<z.ZodObject<{
|
20
|
+
uuid: z.ZodString;
|
21
|
+
providerUuid: z.ZodString;
|
22
|
+
amount: z.ZodNumber;
|
23
|
+
billedAt: z.ZodEffects<z.ZodString, Date, string>;
|
24
|
+
provider: z.ZodObject<Omit<{
|
25
|
+
uuid: z.ZodString;
|
26
|
+
name: z.ZodString;
|
27
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
28
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
29
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
30
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
31
|
+
}, "createdAt" | "updatedAt" | "loginUrl">, "strip", z.ZodTypeAny, {
|
32
|
+
uuid: string;
|
33
|
+
name: string;
|
34
|
+
faviconLink: string | null;
|
35
|
+
}, {
|
36
|
+
uuid: string;
|
37
|
+
name: string;
|
38
|
+
faviconLink: string | null;
|
39
|
+
}>;
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
41
|
+
uuid: string;
|
42
|
+
providerUuid: string;
|
43
|
+
provider: {
|
44
|
+
uuid: string;
|
45
|
+
name: string;
|
46
|
+
faviconLink: string | null;
|
47
|
+
};
|
48
|
+
amount: number;
|
49
|
+
billedAt: Date;
|
50
|
+
}, {
|
51
|
+
uuid: string;
|
52
|
+
providerUuid: string;
|
53
|
+
provider: {
|
54
|
+
uuid: string;
|
55
|
+
name: string;
|
56
|
+
faviconLink: string | null;
|
57
|
+
};
|
58
|
+
amount: number;
|
59
|
+
billedAt: string;
|
60
|
+
}>, "many">;
|
61
|
+
total: z.ZodNumber;
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
63
|
+
total: number;
|
64
|
+
records: {
|
65
|
+
uuid: string;
|
66
|
+
providerUuid: string;
|
67
|
+
provider: {
|
68
|
+
uuid: string;
|
69
|
+
name: string;
|
70
|
+
faviconLink: string | null;
|
71
|
+
};
|
72
|
+
amount: number;
|
73
|
+
billedAt: Date;
|
74
|
+
}[];
|
75
|
+
}, {
|
76
|
+
total: number;
|
77
|
+
records: {
|
78
|
+
uuid: string;
|
79
|
+
providerUuid: string;
|
80
|
+
provider: {
|
81
|
+
uuid: string;
|
82
|
+
name: string;
|
83
|
+
faviconLink: string | null;
|
84
|
+
};
|
85
|
+
amount: number;
|
86
|
+
billedAt: string;
|
87
|
+
}[];
|
88
|
+
}>;
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
90
|
+
response: {
|
91
|
+
total: number;
|
92
|
+
records: {
|
93
|
+
uuid: string;
|
94
|
+
providerUuid: string;
|
95
|
+
provider: {
|
96
|
+
uuid: string;
|
97
|
+
name: string;
|
98
|
+
faviconLink: string | null;
|
99
|
+
};
|
100
|
+
amount: number;
|
101
|
+
billedAt: Date;
|
102
|
+
}[];
|
103
|
+
};
|
104
|
+
}, {
|
105
|
+
response: {
|
106
|
+
total: number;
|
107
|
+
records: {
|
108
|
+
uuid: string;
|
109
|
+
providerUuid: string;
|
110
|
+
provider: {
|
111
|
+
uuid: string;
|
112
|
+
name: string;
|
113
|
+
faviconLink: string | null;
|
114
|
+
};
|
115
|
+
amount: number;
|
116
|
+
billedAt: string;
|
117
|
+
}[];
|
118
|
+
};
|
119
|
+
}>;
|
120
|
+
type Response = z.infer<typeof ResponseSchema>;
|
121
|
+
}
|
122
|
+
//# sourceMappingURL=get-bill-records.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"get-bill-records.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/get-bill-records.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,8BAA6C,CAAC;IACvD,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;;;;MAa7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GetInfraBillingHistoryRecordsCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const models_1 = require("../../models");
|
6
|
+
const api_1 = require("../../api");
|
7
|
+
const constants_1 = require("../../constants");
|
8
|
+
var GetInfraBillingHistoryRecordsCommand;
|
9
|
+
(function (GetInfraBillingHistoryRecordsCommand) {
|
10
|
+
GetInfraBillingHistoryRecordsCommand.url = api_1.REST_API.INFRA_BILLING.GET_BILLING_HISTORY;
|
11
|
+
GetInfraBillingHistoryRecordsCommand.TSQ_url = GetInfraBillingHistoryRecordsCommand.url;
|
12
|
+
GetInfraBillingHistoryRecordsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.GET_BILLING_HISTORY, 'get', 'Get infra billing history');
|
13
|
+
GetInfraBillingHistoryRecordsCommand.RequestQuerySchema = zod_1.z.object({
|
14
|
+
start: zod_1.z.coerce
|
15
|
+
.number()
|
16
|
+
.default(0)
|
17
|
+
.describe('Start index (offset) of the billing history records to return, default is 0'),
|
18
|
+
size: zod_1.z.coerce
|
19
|
+
.number()
|
20
|
+
.min(1, 'Size (limit) must be greater than 0')
|
21
|
+
.max(500, 'Size (limit) must be less than 500')
|
22
|
+
.describe('Number of users to return, no more than 500')
|
23
|
+
.default(50),
|
24
|
+
});
|
25
|
+
GetInfraBillingHistoryRecordsCommand.ResponseSchema = zod_1.z.object({
|
26
|
+
response: zod_1.z.object({
|
27
|
+
records: zod_1.z.array(models_1.InfraBillingHistoryRecordSchema),
|
28
|
+
total: zod_1.z.number(),
|
29
|
+
}),
|
30
|
+
});
|
31
|
+
})(GetInfraBillingHistoryRecordsCommand || (exports.GetInfraBillingHistoryRecordsCommand = GetInfraBillingHistoryRecordsCommand = {}));
|
@@ -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 = {}));
|