@remnawave/backend-contract 2.0.0-alpha.3 → 2.0.0-alpha.30
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/internal-squads.d.ts +4 -0
- package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
- package/build/backend/api/controllers/internal-squads.js +5 -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 +19 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +19 -0
- package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +31 -10
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +31 -10
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +31 -10
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +31 -10
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +31 -10
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.d.ts +52 -19
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +13 -13
- package/build/backend/commands/hosts/get-all.command.d.ts +31 -10
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-one.command.d.ts +31 -10
- package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +11 -2
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +63 -21
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +10 -11
- 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 +467 -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 +461 -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-billing-nodes.command.d.ts +453 -0
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-billing-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 +464 -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/bulk-actions/add-users-to-internal-squad.command.d.ts +33 -0
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +33 -0
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
- package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +3 -0
- package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/bulk-actions/index.js +18 -0
- package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
- package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..d.ts → get-internal-squad-by-uuid.d.ts} +1 -1
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/index.d.ts +2 -1
- package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/index.js +2 -1
- package/build/backend/commands/nodes/actions/disable.command.d.ts +162 -64
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +162 -64
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +236 -88
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +183 -70
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +7 -4
- package/build/backend/commands/nodes/get-all.command.d.ts +162 -64
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +162 -64
- 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 +257 -94
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +9 -4
- 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 +95 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +95 -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/headers/headers.contants.d.ts +3 -0
- package/build/backend/constants/headers/headers.contants.d.ts.map +1 -0
- package/build/backend/constants/headers/headers.contants.js +5 -0
- package/build/backend/constants/headers/index.d.ts +2 -0
- package/build/backend/constants/headers/index.d.ts.map +1 -0
- package/build/backend/constants/headers/index.js +17 -0
- package/build/backend/constants/index.d.ts +1 -0
- package/build/backend/constants/index.d.ts.map +1 -1
- package/build/backend/constants/index.js +1 -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/{extented-users.schema.d.ts → extended-users.schema.d.ts} +1 -1
- package/build/backend/models/{extented-users.schema.d.ts.map → extended-users.schema.d.ts.map} +1 -1
- package/build/backend/models/hosts.schema.d.ts +21 -6
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +5 -2
- package/build/backend/models/index.d.ts +5 -1
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +5 -1
- package/build/backend/models/infra-billing-available-node.schema.d.ts +117 -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 +180 -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 +118 -44
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +8 -2
- package/build/frontend/api/controllers/index.js +1 -0
- package/build/frontend/api/controllers/infra-billing.js +18 -0
- package/build/frontend/api/controllers/internal-squads.js +5 -0
- package/build/frontend/api/controllers/users.js +1 -0
- package/build/frontend/api/routes.js +19 -0
- package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
- package/build/frontend/commands/hosts/create.command.js +13 -13
- package/build/frontend/commands/hosts/update.command.js +10 -11
- 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-billing-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/bulk-actions/add-users-to-internal-squad.command.js +20 -0
- package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
- package/build/frontend/commands/internal-squads/bulk-actions/index.js +18 -0
- package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
- package/build/frontend/commands/internal-squads/index.js +2 -1
- package/build/frontend/commands/nodes/create.command.js +7 -4
- package/build/frontend/commands/nodes/update.command.js +9 -4
- 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 +95 -0
- package/build/frontend/constants/events/events.js +10 -0
- package/build/frontend/constants/headers/headers.contants.js +5 -0
- package/build/frontend/constants/headers/index.js +17 -0
- package/build/frontend/constants/index.js +1 -0
- package/build/frontend/constants/templates/template-keys.js +1 -0
- package/build/frontend/models/hosts.schema.js +5 -2
- package/build/frontend/models/index.js +5 -1
- 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 +8 -2
- package/package.json +1 -1
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +0 -1
- /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
- /package/build/backend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
- /package/build/frontend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
- /package/build/frontend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
@@ -0,0 +1,117 @@
|
|
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
|
+
nodeVersion: import("zod").ZodNullable<import("zod").ZodString>;
|
15
|
+
xrayUptime: import("zod").ZodString;
|
16
|
+
isTrafficTrackingActive: import("zod").ZodBoolean;
|
17
|
+
trafficResetDay: import("zod").ZodNullable<import("zod").ZodNumber>;
|
18
|
+
trafficLimitBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
|
19
|
+
trafficUsedBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
|
20
|
+
notifyPercent: import("zod").ZodNullable<import("zod").ZodNumber>;
|
21
|
+
usersOnline: import("zod").ZodNullable<import("zod").ZodNumber>;
|
22
|
+
viewPosition: import("zod").ZodNumber;
|
23
|
+
countryCode: import("zod").ZodString;
|
24
|
+
consumptionMultiplier: import("zod").ZodNumber;
|
25
|
+
cpuCount: import("zod").ZodNullable<import("zod").ZodNumber>;
|
26
|
+
cpuModel: import("zod").ZodNullable<import("zod").ZodString>;
|
27
|
+
totalRam: import("zod").ZodNullable<import("zod").ZodString>;
|
28
|
+
createdAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
29
|
+
updatedAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
30
|
+
configProfile: import("zod").ZodObject<{
|
31
|
+
activeConfigProfileUuid: import("zod").ZodNullable<import("zod").ZodString>;
|
32
|
+
activeInbounds: import("zod").ZodArray<import("zod").ZodObject<{
|
33
|
+
uuid: import("zod").ZodString;
|
34
|
+
profileUuid: import("zod").ZodString;
|
35
|
+
tag: import("zod").ZodString;
|
36
|
+
type: import("zod").ZodString;
|
37
|
+
network: import("zod").ZodNullable<import("zod").ZodString>;
|
38
|
+
security: import("zod").ZodNullable<import("zod").ZodString>;
|
39
|
+
port: import("zod").ZodNullable<import("zod").ZodNumber>;
|
40
|
+
rawInbound: import("zod").ZodNullable<import("zod").ZodUnknown>;
|
41
|
+
}, "strip", import("zod").ZodTypeAny, {
|
42
|
+
type: string;
|
43
|
+
uuid: string;
|
44
|
+
profileUuid: string;
|
45
|
+
tag: string;
|
46
|
+
network: string | null;
|
47
|
+
security: string | null;
|
48
|
+
port: number | null;
|
49
|
+
rawInbound?: unknown;
|
50
|
+
}, {
|
51
|
+
type: string;
|
52
|
+
uuid: string;
|
53
|
+
profileUuid: string;
|
54
|
+
tag: string;
|
55
|
+
network: string | null;
|
56
|
+
security: string | null;
|
57
|
+
port: number | null;
|
58
|
+
rawInbound?: unknown;
|
59
|
+
}>, "many">;
|
60
|
+
}, "strip", import("zod").ZodTypeAny, {
|
61
|
+
activeConfigProfileUuid: string | null;
|
62
|
+
activeInbounds: {
|
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
|
+
}, {
|
73
|
+
activeConfigProfileUuid: string | null;
|
74
|
+
activeInbounds: {
|
75
|
+
type: string;
|
76
|
+
uuid: string;
|
77
|
+
profileUuid: string;
|
78
|
+
tag: string;
|
79
|
+
network: string | null;
|
80
|
+
security: string | null;
|
81
|
+
port: number | null;
|
82
|
+
rawInbound?: unknown;
|
83
|
+
}[];
|
84
|
+
}>;
|
85
|
+
providerUuid: import("zod").ZodNullable<import("zod").ZodString>;
|
86
|
+
provider: import("zod").ZodNullable<import("zod").ZodObject<{
|
87
|
+
uuid: import("zod").ZodString;
|
88
|
+
name: import("zod").ZodString;
|
89
|
+
faviconLink: import("zod").ZodNullable<import("zod").ZodString>;
|
90
|
+
loginUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
91
|
+
createdAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
92
|
+
updatedAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
93
|
+
}, "strip", import("zod").ZodTypeAny, {
|
94
|
+
uuid: string;
|
95
|
+
createdAt: Date;
|
96
|
+
updatedAt: Date;
|
97
|
+
name: string;
|
98
|
+
faviconLink: string | null;
|
99
|
+
loginUrl: string | null;
|
100
|
+
}, {
|
101
|
+
uuid: string;
|
102
|
+
createdAt: string;
|
103
|
+
updatedAt: string;
|
104
|
+
name: string;
|
105
|
+
faviconLink: string | null;
|
106
|
+
loginUrl: string | null;
|
107
|
+
}>>;
|
108
|
+
}, "uuid" | "name" | "countryCode">, "strip", import("zod").ZodTypeAny, {
|
109
|
+
uuid: string;
|
110
|
+
name: string;
|
111
|
+
countryCode: string;
|
112
|
+
}, {
|
113
|
+
uuid: string;
|
114
|
+
name: string;
|
115
|
+
countryCode: string;
|
116
|
+
}>;
|
117
|
+
//# 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,180 @@
|
|
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
|
+
nodeVersion: z.ZodNullable<z.ZodString>;
|
38
|
+
xrayUptime: z.ZodString;
|
39
|
+
isTrafficTrackingActive: z.ZodBoolean;
|
40
|
+
trafficResetDay: z.ZodNullable<z.ZodNumber>;
|
41
|
+
trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
|
42
|
+
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
43
|
+
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
44
|
+
usersOnline: z.ZodNullable<z.ZodNumber>;
|
45
|
+
viewPosition: z.ZodNumber;
|
46
|
+
countryCode: z.ZodString;
|
47
|
+
consumptionMultiplier: z.ZodNumber;
|
48
|
+
cpuCount: z.ZodNullable<z.ZodNumber>;
|
49
|
+
cpuModel: z.ZodNullable<z.ZodString>;
|
50
|
+
totalRam: z.ZodNullable<z.ZodString>;
|
51
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
52
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
53
|
+
configProfile: z.ZodObject<{
|
54
|
+
activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
|
55
|
+
activeInbounds: z.ZodArray<z.ZodObject<{
|
56
|
+
uuid: z.ZodString;
|
57
|
+
profileUuid: z.ZodString;
|
58
|
+
tag: z.ZodString;
|
59
|
+
type: z.ZodString;
|
60
|
+
network: z.ZodNullable<z.ZodString>;
|
61
|
+
security: z.ZodNullable<z.ZodString>;
|
62
|
+
port: z.ZodNullable<z.ZodNumber>;
|
63
|
+
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
65
|
+
type: string;
|
66
|
+
uuid: string;
|
67
|
+
profileUuid: string;
|
68
|
+
tag: string;
|
69
|
+
network: string | null;
|
70
|
+
security: string | null;
|
71
|
+
port: number | null;
|
72
|
+
rawInbound?: unknown;
|
73
|
+
}, {
|
74
|
+
type: string;
|
75
|
+
uuid: string;
|
76
|
+
profileUuid: string;
|
77
|
+
tag: string;
|
78
|
+
network: string | null;
|
79
|
+
security: string | null;
|
80
|
+
port: number | null;
|
81
|
+
rawInbound?: unknown;
|
82
|
+
}>, "many">;
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
84
|
+
activeConfigProfileUuid: string | null;
|
85
|
+
activeInbounds: {
|
86
|
+
type: string;
|
87
|
+
uuid: string;
|
88
|
+
profileUuid: string;
|
89
|
+
tag: string;
|
90
|
+
network: string | null;
|
91
|
+
security: string | null;
|
92
|
+
port: number | null;
|
93
|
+
rawInbound?: unknown;
|
94
|
+
}[];
|
95
|
+
}, {
|
96
|
+
activeConfigProfileUuid: string | null;
|
97
|
+
activeInbounds: {
|
98
|
+
type: string;
|
99
|
+
uuid: string;
|
100
|
+
profileUuid: string;
|
101
|
+
tag: string;
|
102
|
+
network: string | null;
|
103
|
+
security: string | null;
|
104
|
+
port: number | null;
|
105
|
+
rawInbound?: unknown;
|
106
|
+
}[];
|
107
|
+
}>;
|
108
|
+
providerUuid: z.ZodNullable<z.ZodString>;
|
109
|
+
provider: z.ZodNullable<z.ZodObject<{
|
110
|
+
uuid: z.ZodString;
|
111
|
+
name: z.ZodString;
|
112
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
113
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
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
|
+
name: string;
|
121
|
+
faviconLink: string | null;
|
122
|
+
loginUrl: string | null;
|
123
|
+
}, {
|
124
|
+
uuid: string;
|
125
|
+
createdAt: string;
|
126
|
+
updatedAt: string;
|
127
|
+
name: string;
|
128
|
+
faviconLink: string | null;
|
129
|
+
loginUrl: string | null;
|
130
|
+
}>>;
|
131
|
+
}, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
|
132
|
+
uuid: string;
|
133
|
+
name: string;
|
134
|
+
countryCode: string;
|
135
|
+
}, {
|
136
|
+
uuid: string;
|
137
|
+
name: string;
|
138
|
+
countryCode: string;
|
139
|
+
}>;
|
140
|
+
nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
|
141
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
142
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
144
|
+
uuid: string;
|
145
|
+
createdAt: Date;
|
146
|
+
updatedAt: Date;
|
147
|
+
nodeUuid: string;
|
148
|
+
providerUuid: string;
|
149
|
+
provider: {
|
150
|
+
uuid: string;
|
151
|
+
name: string;
|
152
|
+
faviconLink: string | null;
|
153
|
+
loginUrl: string | null;
|
154
|
+
};
|
155
|
+
node: {
|
156
|
+
uuid: string;
|
157
|
+
name: string;
|
158
|
+
countryCode: string;
|
159
|
+
};
|
160
|
+
nextBillingAt: Date;
|
161
|
+
}, {
|
162
|
+
uuid: string;
|
163
|
+
createdAt: string;
|
164
|
+
updatedAt: string;
|
165
|
+
nodeUuid: string;
|
166
|
+
providerUuid: string;
|
167
|
+
provider: {
|
168
|
+
uuid: string;
|
169
|
+
name: string;
|
170
|
+
faviconLink: string | null;
|
171
|
+
loginUrl: string | null;
|
172
|
+
};
|
173
|
+
node: {
|
174
|
+
uuid: string;
|
175
|
+
name: string;
|
176
|
+
countryCode: string;
|
177
|
+
};
|
178
|
+
nextBillingAt: string;
|
179
|
+
}>;
|
180
|
+
//# 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
|
+
});
|