@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
@@ -1,3 +1,3 @@
|
|
1
|
-
export declare const TEMPLATE_KEYS: readonly ["DAYS_LEFT", "TRAFFIC_USED", "TRAFFIC_LEFT", "STATUS", "TOTAL_TRAFFIC", "USERNAME", "EMAIL", "TELEGRAM_ID", "SUBSCRIPTION_URL"];
|
1
|
+
export declare const TEMPLATE_KEYS: readonly ["DAYS_LEFT", "TRAFFIC_USED", "TRAFFIC_LEFT", "STATUS", "TOTAL_TRAFFIC", "USERNAME", "EMAIL", "TELEGRAM_ID", "SUBSCRIPTION_URL", "TAG"];
|
2
2
|
export type TemplateKeys = (typeof TEMPLATE_KEYS)[number];
|
3
3
|
//# sourceMappingURL=template-keys.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"template-keys.d.ts","sourceRoot":"","sources":["../../../../constants/templates/template-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,
|
1
|
+
{"version":3,"file":"template-keys.d.ts","sourceRoot":"","sources":["../../../../constants/templates/template-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,kJAWhB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
@@ -8,6 +8,10 @@ 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';
|
14
|
+
export * from './infra-provider.schema';
|
11
15
|
export * from './internal-squad.schema';
|
12
16
|
export * from './last-connected-node.schema';
|
13
17
|
export * from './nodes.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,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,10 @@ __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);
|
30
|
+
__exportStar(require("./infra-provider.schema"), exports);
|
27
31
|
__exportStar(require("./internal-squad.schema"), exports);
|
28
32
|
__exportStar(require("./last-connected-node.schema"), exports);
|
29
33
|
__exportStar(require("./nodes.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"}
|
@@ -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
|
+
});
|
@@ -0,0 +1,153 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const InfraBillingNodeSchema: z.ZodObject<{
|
3
|
+
uuid: z.ZodString;
|
4
|
+
nodeUuid: z.ZodString;
|
5
|
+
providerUuid: z.ZodString;
|
6
|
+
provider: z.ZodObject<Pick<{
|
7
|
+
uuid: z.ZodString;
|
8
|
+
name: z.ZodString;
|
9
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
10
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
11
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
12
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
13
|
+
}, "uuid" | "name" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
|
14
|
+
uuid: string;
|
15
|
+
name: string;
|
16
|
+
faviconLink: string | null;
|
17
|
+
loginUrl: string | null;
|
18
|
+
}, {
|
19
|
+
uuid: string;
|
20
|
+
name: string;
|
21
|
+
faviconLink: string | null;
|
22
|
+
loginUrl: string | null;
|
23
|
+
}>;
|
24
|
+
node: z.ZodObject<Pick<{
|
25
|
+
uuid: z.ZodString;
|
26
|
+
name: z.ZodString;
|
27
|
+
address: z.ZodString;
|
28
|
+
port: z.ZodNullable<z.ZodNumber>;
|
29
|
+
isConnected: z.ZodBoolean;
|
30
|
+
isDisabled: z.ZodBoolean;
|
31
|
+
isConnecting: z.ZodBoolean;
|
32
|
+
isNodeOnline: z.ZodBoolean;
|
33
|
+
isXrayRunning: z.ZodBoolean;
|
34
|
+
lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
35
|
+
lastStatusMessage: z.ZodNullable<z.ZodString>;
|
36
|
+
xrayVersion: z.ZodNullable<z.ZodString>;
|
37
|
+
xrayUptime: z.ZodString;
|
38
|
+
isTrafficTrackingActive: z.ZodBoolean;
|
39
|
+
trafficResetDay: z.ZodNullable<z.ZodNumber>;
|
40
|
+
trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
|
41
|
+
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
42
|
+
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
43
|
+
usersOnline: z.ZodNullable<z.ZodNumber>;
|
44
|
+
viewPosition: z.ZodNumber;
|
45
|
+
countryCode: z.ZodString;
|
46
|
+
consumptionMultiplier: z.ZodNumber;
|
47
|
+
cpuCount: z.ZodNullable<z.ZodNumber>;
|
48
|
+
cpuModel: z.ZodNullable<z.ZodString>;
|
49
|
+
totalRam: z.ZodNullable<z.ZodString>;
|
50
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
51
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
52
|
+
activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
|
53
|
+
activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
54
|
+
uuid: z.ZodString;
|
55
|
+
profileUuid: z.ZodString;
|
56
|
+
tag: z.ZodString;
|
57
|
+
type: z.ZodString;
|
58
|
+
network: z.ZodNullable<z.ZodString>;
|
59
|
+
security: z.ZodNullable<z.ZodString>;
|
60
|
+
port: z.ZodNullable<z.ZodNumber>;
|
61
|
+
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
63
|
+
type: string;
|
64
|
+
uuid: string;
|
65
|
+
profileUuid: string;
|
66
|
+
tag: string;
|
67
|
+
network: string | null;
|
68
|
+
security: string | null;
|
69
|
+
port: number | null;
|
70
|
+
rawInbound?: unknown;
|
71
|
+
}, {
|
72
|
+
type: string;
|
73
|
+
uuid: string;
|
74
|
+
profileUuid: string;
|
75
|
+
tag: string;
|
76
|
+
network: string | null;
|
77
|
+
security: string | null;
|
78
|
+
port: number | null;
|
79
|
+
rawInbound?: unknown;
|
80
|
+
}>, "many">>;
|
81
|
+
providerUuid: z.ZodNullable<z.ZodString>;
|
82
|
+
provider: z.ZodNullable<z.ZodObject<{
|
83
|
+
uuid: z.ZodString;
|
84
|
+
name: z.ZodString;
|
85
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
86
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
87
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
88
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
90
|
+
uuid: string;
|
91
|
+
createdAt: Date;
|
92
|
+
updatedAt: Date;
|
93
|
+
name: string;
|
94
|
+
faviconLink: string | null;
|
95
|
+
loginUrl: string | null;
|
96
|
+
}, {
|
97
|
+
uuid: string;
|
98
|
+
createdAt: string;
|
99
|
+
updatedAt: string;
|
100
|
+
name: string;
|
101
|
+
faviconLink: string | null;
|
102
|
+
loginUrl: string | null;
|
103
|
+
}>>;
|
104
|
+
}, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
|
105
|
+
uuid: string;
|
106
|
+
name: string;
|
107
|
+
countryCode: string;
|
108
|
+
}, {
|
109
|
+
uuid: string;
|
110
|
+
name: string;
|
111
|
+
countryCode: string;
|
112
|
+
}>;
|
113
|
+
nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
|
114
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
115
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
117
|
+
uuid: string;
|
118
|
+
createdAt: Date;
|
119
|
+
updatedAt: Date;
|
120
|
+
nodeUuid: string;
|
121
|
+
providerUuid: string;
|
122
|
+
provider: {
|
123
|
+
uuid: string;
|
124
|
+
name: string;
|
125
|
+
faviconLink: string | null;
|
126
|
+
loginUrl: string | null;
|
127
|
+
};
|
128
|
+
node: {
|
129
|
+
uuid: string;
|
130
|
+
name: string;
|
131
|
+
countryCode: string;
|
132
|
+
};
|
133
|
+
nextBillingAt: Date;
|
134
|
+
}, {
|
135
|
+
uuid: string;
|
136
|
+
createdAt: string;
|
137
|
+
updatedAt: string;
|
138
|
+
nodeUuid: string;
|
139
|
+
providerUuid: string;
|
140
|
+
provider: {
|
141
|
+
uuid: string;
|
142
|
+
name: string;
|
143
|
+
faviconLink: string | null;
|
144
|
+
loginUrl: string | null;
|
145
|
+
};
|
146
|
+
node: {
|
147
|
+
uuid: string;
|
148
|
+
name: string;
|
149
|
+
countryCode: string;
|
150
|
+
};
|
151
|
+
nextBillingAt: string;
|
152
|
+
}>;
|
153
|
+
//# sourceMappingURL=infra-billing-node.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"infra-billing-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-node.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BjC,CAAC"}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.InfraBillingNodeSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const infra_provider_schema_1 = require("./infra-provider.schema");
|
6
|
+
const nodes_schema_1 = require("./nodes.schema");
|
7
|
+
exports.InfraBillingNodeSchema = zod_1.z.object({
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
9
|
+
nodeUuid: zod_1.z.string().uuid(),
|
10
|
+
providerUuid: zod_1.z.string().uuid(),
|
11
|
+
provider: infra_provider_schema_1.PartialInfraProviderSchema.pick({
|
12
|
+
uuid: true,
|
13
|
+
name: true,
|
14
|
+
loginUrl: true,
|
15
|
+
faviconLink: true,
|
16
|
+
}),
|
17
|
+
node: nodes_schema_1.NodesSchema.pick({
|
18
|
+
uuid: true,
|
19
|
+
name: true,
|
20
|
+
countryCode: true,
|
21
|
+
}),
|
22
|
+
nextBillingAt: zod_1.z
|
23
|
+
.string()
|
24
|
+
.datetime()
|
25
|
+
.transform((str) => new Date(str)),
|
26
|
+
createdAt: zod_1.z
|
27
|
+
.string()
|
28
|
+
.datetime()
|
29
|
+
.transform((str) => new Date(str)),
|
30
|
+
updatedAt: zod_1.z
|
31
|
+
.string()
|
32
|
+
.datetime()
|
33
|
+
.transform((str) => new Date(str)),
|
34
|
+
});
|
@@ -0,0 +1,87 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const InfraProviderSchema: z.ZodObject<{
|
3
|
+
uuid: z.ZodString;
|
4
|
+
name: z.ZodString;
|
5
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
6
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
7
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
8
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
9
|
+
billingHistory: z.ZodObject<{
|
10
|
+
totalAmount: z.ZodNumber;
|
11
|
+
totalBills: z.ZodNumber;
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
13
|
+
totalAmount: number;
|
14
|
+
totalBills: number;
|
15
|
+
}, {
|
16
|
+
totalAmount: number;
|
17
|
+
totalBills: number;
|
18
|
+
}>;
|
19
|
+
billingNodes: z.ZodArray<z.ZodObject<{
|
20
|
+
nodeUuid: z.ZodString;
|
21
|
+
name: z.ZodString;
|
22
|
+
countryCode: z.ZodString;
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
24
|
+
name: string;
|
25
|
+
countryCode: string;
|
26
|
+
nodeUuid: string;
|
27
|
+
}, {
|
28
|
+
name: string;
|
29
|
+
countryCode: string;
|
30
|
+
nodeUuid: string;
|
31
|
+
}>, "many">;
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
33
|
+
uuid: string;
|
34
|
+
createdAt: Date;
|
35
|
+
updatedAt: Date;
|
36
|
+
name: string;
|
37
|
+
faviconLink: string | null;
|
38
|
+
loginUrl: string | null;
|
39
|
+
billingHistory: {
|
40
|
+
totalAmount: number;
|
41
|
+
totalBills: number;
|
42
|
+
};
|
43
|
+
billingNodes: {
|
44
|
+
name: string;
|
45
|
+
countryCode: string;
|
46
|
+
nodeUuid: string;
|
47
|
+
}[];
|
48
|
+
}, {
|
49
|
+
uuid: string;
|
50
|
+
createdAt: string;
|
51
|
+
updatedAt: string;
|
52
|
+
name: string;
|
53
|
+
faviconLink: string | null;
|
54
|
+
loginUrl: string | null;
|
55
|
+
billingHistory: {
|
56
|
+
totalAmount: number;
|
57
|
+
totalBills: number;
|
58
|
+
};
|
59
|
+
billingNodes: {
|
60
|
+
name: string;
|
61
|
+
countryCode: string;
|
62
|
+
nodeUuid: string;
|
63
|
+
}[];
|
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
|
+
}>;
|
87
|
+
//# sourceMappingURL=infra-provider.schema.d.ts.map
|
@@ -0,0 +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;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;EAcrC,CAAC"}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PartialInfraProviderSchema = exports.InfraProviderSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.InfraProviderSchema = zod_1.z.object({
|
6
|
+
uuid: zod_1.z.string().uuid(),
|
7
|
+
name: zod_1.z.string(),
|
8
|
+
faviconLink: zod_1.z.nullable(zod_1.z.string()),
|
9
|
+
loginUrl: zod_1.z.nullable(zod_1.z.string()),
|
10
|
+
createdAt: zod_1.z
|
11
|
+
.string()
|
12
|
+
.datetime()
|
13
|
+
.transform((str) => new Date(str)),
|
14
|
+
updatedAt: zod_1.z
|
15
|
+
.string()
|
16
|
+
.datetime()
|
17
|
+
.transform((str) => new Date(str)),
|
18
|
+
billingHistory: zod_1.z.object({
|
19
|
+
totalAmount: zod_1.z.number(),
|
20
|
+
totalBills: zod_1.z.number(),
|
21
|
+
}),
|
22
|
+
billingNodes: zod_1.z.array(zod_1.z.object({
|
23
|
+
nodeUuid: zod_1.z.string(),
|
24
|
+
name: zod_1.z.string(),
|
25
|
+
countryCode: zod_1.z.string(),
|
26
|
+
})),
|
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
|
+
});
|
@@ -56,6 +56,29 @@ export declare const NodesSchema: z.ZodObject<{
|
|
56
56
|
port: number | null;
|
57
57
|
rawInbound?: unknown;
|
58
58
|
}>, "many">>;
|
59
|
+
providerUuid: z.ZodNullable<z.ZodString>;
|
60
|
+
provider: z.ZodNullable<z.ZodObject<{
|
61
|
+
uuid: z.ZodString;
|
62
|
+
name: z.ZodString;
|
63
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
64
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
65
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
66
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
68
|
+
uuid: string;
|
69
|
+
createdAt: Date;
|
70
|
+
updatedAt: Date;
|
71
|
+
name: string;
|
72
|
+
faviconLink: string | null;
|
73
|
+
loginUrl: string | null;
|
74
|
+
}, {
|
75
|
+
uuid: string;
|
76
|
+
createdAt: string;
|
77
|
+
updatedAt: string;
|
78
|
+
name: string;
|
79
|
+
faviconLink: string | null;
|
80
|
+
loginUrl: string | null;
|
81
|
+
}>>;
|
59
82
|
}, "strip", z.ZodTypeAny, {
|
60
83
|
uuid: string;
|
61
84
|
createdAt: Date;
|
@@ -95,6 +118,15 @@ export declare const NodesSchema: z.ZodObject<{
|
|
95
118
|
port: number | null;
|
96
119
|
rawInbound?: unknown;
|
97
120
|
}[] | null;
|
121
|
+
providerUuid: string | null;
|
122
|
+
provider: {
|
123
|
+
uuid: string;
|
124
|
+
createdAt: Date;
|
125
|
+
updatedAt: Date;
|
126
|
+
name: string;
|
127
|
+
faviconLink: string | null;
|
128
|
+
loginUrl: string | null;
|
129
|
+
} | null;
|
98
130
|
}, {
|
99
131
|
uuid: string;
|
100
132
|
createdAt: string;
|
@@ -134,5 +166,14 @@ export declare const NodesSchema: z.ZodObject<{
|
|
134
166
|
port: number | null;
|
135
167
|
rawInbound?: unknown;
|
136
168
|
}[] | null;
|
169
|
+
providerUuid: string | null;
|
170
|
+
provider: {
|
171
|
+
uuid: string;
|
172
|
+
createdAt: string;
|
173
|
+
updatedAt: string;
|
174
|
+
name: string;
|
175
|
+
faviconLink: string | null;
|
176
|
+
loginUrl: string | null;
|
177
|
+
} | null;
|
137
178
|
}>;
|
138
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;
|
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"}
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NodesSchema = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
const config_profile_inbounds_schema_1 = require("./config-profile-inbounds.schema");
|
6
|
+
const infra_provider_schema_1 = require("./infra-provider.schema");
|
6
7
|
exports.NodesSchema = zod_1.z.object({
|
7
8
|
uuid: zod_1.z.string().uuid(),
|
8
9
|
name: zod_1.z.string(),
|
@@ -42,4 +43,6 @@ exports.NodesSchema = zod_1.z.object({
|
|
42
43
|
.transform((str) => new Date(str)),
|
43
44
|
activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
44
45
|
activeInbounds: zod_1.z.nullable(zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema)),
|
46
|
+
providerUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
47
|
+
provider: zod_1.z.nullable(infra_provider_schema_1.PartialInfraProviderSchema),
|
45
48
|
});
|
@@ -19,6 +19,7 @@ __exportStar(require("./auth"), exports);
|
|
19
19
|
__exportStar(require("./config-profiles"), exports);
|
20
20
|
__exportStar(require("./hosts"), exports);
|
21
21
|
__exportStar(require("./hwid"), exports);
|
22
|
+
__exportStar(require("./infra-billing"), exports);
|
22
23
|
__exportStar(require("./internal-squads"), exports);
|
23
24
|
__exportStar(require("./keygen"), exports);
|
24
25
|
__exportStar(require("./nodes"), exports);
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.INFRA_BILLING_ROUTES = exports.INFRA_BILLING_CONTROLLER = void 0;
|
4
|
+
exports.INFRA_BILLING_CONTROLLER = 'infra-billing';
|
5
|
+
exports.INFRA_BILLING_ROUTES = {
|
6
|
+
GET_PROVIDERS: 'providers', // Get list of all providers // get
|
7
|
+
CREATE_PROVIDER: 'providers', // Create new provider // post
|
8
|
+
UPDATE_PROVIDER: 'providers', // Update provider by uuid // patch
|
9
|
+
DELETE_PROVIDER: (uuid) => `providers/${uuid}`, // Delete provider by uuid // delete
|
10
|
+
GET_PROVIDER_BY_UUID: (uuid) => `providers/${uuid}`, // Get provider by uuid // get
|
11
|
+
GET_BILLING_NODES: 'nodes', // Get list of all nodes billing // get
|
12
|
+
CREATE_BILLING_NODE: 'nodes', // Create new node billing // post
|
13
|
+
UPDATE_BILLING_NODE: 'nodes', // Update node billing by uuid // patch
|
14
|
+
DELETE_BILLING_NODE: (uuid) => `nodes/${uuid}`, // Delete node billing by uuid // delete
|
15
|
+
GET_BILLING_HISTORY: 'history', // Get list of all nodes billing history // get
|
16
|
+
CREATE_BILLING_HISTORY: 'history', // Create new node billing history // post
|
17
|
+
DELETE_BILLING_HISTORY: (uuid) => `history/${uuid}`, // Delete node billing history by uuid // delete
|
18
|
+
};
|
@@ -9,6 +9,7 @@ exports.USERS_ROUTES = {
|
|
9
9
|
GET: '',
|
10
10
|
DELETE: (uuid) => `${uuid}`,
|
11
11
|
GET_BY_UUID: (uuid) => `${uuid}`,
|
12
|
+
ACCESSIBLE_NODES: (uuid) => `${uuid}/accessible-nodes`,
|
12
13
|
ACTIONS: {
|
13
14
|
ENABLE: (uuid) => `${uuid}/${exports.USERS_ACTIONS_ROUTE}/enable`,
|
14
15
|
DISABLE: (uuid) => `${uuid}/${exports.USERS_ACTIONS_ROUTE}/disable`,
|