@remnawave/backend-contract 2.0.0-alpha.9 → 2.0.1
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/auth.d.ts +2 -0
- package/build/backend/api/controllers/auth.d.ts.map +1 -1
- package/build/backend/api/controllers/auth.js +2 -0
- package/build/backend/api/controllers/infra-billing.d.ts +1 -1
- package/build/backend/api/controllers/infra-billing.d.ts.map +1 -1
- package/build/backend/api/controllers/infra-billing.js +1 -5
- 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/subscription.d.ts +1 -0
- package/build/backend/api/controllers/subscription.d.ts.map +1 -1
- package/build/backend/api/controllers/subscription.js +1 -0
- package/build/backend/api/controllers/system.d.ts +1 -0
- package/build/backend/api/controllers/system.d.ts.map +1 -1
- package/build/backend/api/controllers/system.js +1 -0
- package/build/backend/api/routes.d.ts +9 -1
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +9 -1
- package/build/backend/commands/api-tokens/create.command.d.ts +0 -3
- package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
- package/build/backend/commands/api-tokens/create.command.js +0 -1
- package/build/backend/commands/api-tokens/find.command.d.ts +0 -7
- package/build/backend/commands/api-tokens/find.command.d.ts.map +1 -1
- package/build/backend/commands/auth/get-status.command.d.ts +23 -0
- package/build/backend/commands/auth/get-status.command.d.ts.map +1 -1
- package/build/backend/commands/auth/get-status.command.js +3 -0
- package/build/backend/commands/auth/oauth2/authorize.command.d.ts +36 -0
- package/build/backend/commands/auth/oauth2/authorize.command.d.ts.map +1 -0
- package/build/backend/commands/auth/oauth2/authorize.command.js +20 -0
- package/build/backend/commands/auth/oauth2/callback.command.d.ts +43 -0
- package/build/backend/commands/auth/oauth2/callback.command.d.ts.map +1 -0
- package/build/backend/commands/auth/oauth2/callback.command.js +22 -0
- package/build/backend/commands/auth/oauth2/index.d.ts +2 -0
- package/build/backend/commands/auth/oauth2/index.d.ts.map +1 -1
- package/build/backend/commands/auth/oauth2/index.js +2 -0
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +36 -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 +36 -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 +36 -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 +36 -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 +36 -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 +60 -19
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +14 -13
- package/build/backend/commands/hosts/get-all.command.d.ts +36 -10
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-one.command.d.ts +36 -10
- package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +12 -2
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +72 -21
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +11 -11
- 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 +59 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/create-infra-provider.command.js +1 -1
- 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/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 +59 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +77 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/index.d.ts +7 -0
- package/build/backend/commands/infra-billing/index.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/index.js +7 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +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 +59 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/update-infra-provider.command.js +1 -1
- 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/{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 +140 -101
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +140 -101
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +194 -128
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +158 -107
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +6 -4
- package/build/backend/commands/nodes/get-all.command.d.ts +140 -101
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +140 -101
- 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 +212 -134
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +8 -4
- package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts +361 -0
- package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +68 -0
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +4 -4
- package/build/backend/commands/subscription/index.d.ts +1 -0
- package/build/backend/commands/subscription/index.d.ts.map +1 -1
- package/build/backend/commands/subscription/index.js +1 -0
- package/build/backend/commands/subscriptions/get-all-subscriptions.command.d.ts +6 -6
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts +4 -4
- package/build/backend/commands/system/get-nodes-metrics.command.d.ts +153 -0
- package/build/backend/commands/system/get-nodes-metrics.command.d.ts.map +1 -0
- package/build/backend/commands/system/get-nodes-metrics.command.js +33 -0
- package/build/backend/commands/system/index.d.ts +1 -0
- package/build/backend/commands/system/index.d.ts.map +1 -1
- package/build/backend/commands/system/index.js +1 -0
- package/build/backend/commands/users/create-user.command.d.ts +6 -6
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.js +2 -4
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/constants/errors/errors.d.ts +85 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +85 -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.constants.d.ts +3 -0
- package/build/backend/constants/headers/headers.constants.d.ts.map +1 -0
- package/build/backend/constants/headers/headers.constants.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 +3 -0
- package/build/backend/constants/index.d.ts.map +1 -1
- package/build/backend/constants/index.js +3 -0
- package/build/backend/constants/messaging/index.d.ts +2 -0
- package/build/backend/constants/messaging/index.d.ts.map +1 -0
- package/build/backend/constants/messaging/index.js +17 -0
- package/build/backend/constants/messaging/messaging.constants.d.ts +13 -0
- package/build/backend/constants/messaging/messaging.constants.d.ts.map +1 -0
- package/build/backend/constants/messaging/messaging.constants.js +19 -0
- package/build/backend/constants/metrics/metric-names.constant.d.ts +17 -0
- package/build/backend/constants/metrics/metric-names.constant.d.ts.map +1 -1
- package/build/backend/constants/metrics/metric-names.constant.js +17 -0
- package/build/backend/constants/oauth2/index.d.ts +2 -0
- package/build/backend/constants/oauth2/index.d.ts.map +1 -0
- package/build/backend/constants/oauth2/index.js +17 -0
- package/build/backend/constants/oauth2/providers.contants.d.ts +9 -0
- package/build/backend/constants/oauth2/providers.contants.d.ts.map +1 -0
- package/build/backend/constants/oauth2/providers.contants.js +9 -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/api-tokens.schema.d.ts +0 -3
- package/build/backend/models/api-tokens.schema.d.ts.map +1 -1
- package/build/backend/models/api-tokens.schema.js +0 -1
- 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 +24 -6
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +6 -2
- package/build/backend/models/index.d.ts +4 -1
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +4 -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 +63 -0
- package/build/backend/models/infra-provider.schema.d.ts.map +1 -1
- package/build/backend/models/infra-provider.schema.js +24 -1
- package/build/backend/models/nodes.schema.d.ts +96 -63
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +6 -3
- package/build/frontend/api/controllers/auth.js +2 -0
- package/build/frontend/api/controllers/infra-billing.js +1 -5
- package/build/frontend/api/controllers/internal-squads.js +5 -0
- package/build/frontend/api/controllers/subscription.js +1 -0
- package/build/frontend/api/controllers/system.js +1 -0
- package/build/frontend/api/routes.js +9 -1
- package/build/frontend/commands/api-tokens/create.command.js +0 -1
- package/build/frontend/commands/auth/get-status.command.js +3 -0
- package/build/frontend/commands/auth/oauth2/authorize.command.js +20 -0
- package/build/frontend/commands/auth/oauth2/callback.command.js +22 -0
- package/build/frontend/commands/auth/oauth2/index.js +2 -0
- package/build/frontend/commands/hosts/create.command.js +14 -13
- package/build/frontend/commands/hosts/update.command.js +11 -11
- 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 +1 -1
- 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/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/index.js +7 -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 +1 -1
- 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/index.js +2 -1
- package/build/frontend/commands/nodes/create.command.js +6 -4
- package/build/frontend/commands/nodes/update.command.js +8 -4
- package/build/frontend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +68 -0
- package/build/frontend/commands/subscription/index.js +1 -0
- package/build/frontend/commands/system/get-nodes-metrics.command.js +33 -0
- package/build/frontend/commands/system/index.js +1 -0
- package/build/frontend/commands/users/create-user.command.js +2 -4
- package/build/frontend/constants/errors/errors.js +85 -0
- package/build/frontend/constants/events/events.js +10 -0
- package/build/frontend/constants/headers/headers.constants.js +5 -0
- package/build/frontend/constants/headers/index.js +17 -0
- package/build/frontend/constants/index.js +3 -0
- package/build/frontend/constants/messaging/index.js +17 -0
- package/build/frontend/constants/messaging/messaging.constants.js +19 -0
- package/build/frontend/constants/metrics/metric-names.constant.js +17 -0
- package/build/frontend/constants/oauth2/index.js +17 -0
- package/build/frontend/constants/oauth2/providers.contants.js +9 -0
- package/build/frontend/constants/templates/template-keys.js +1 -0
- package/build/frontend/models/api-tokens.schema.js +0 -1
- package/build/frontend/models/hosts.schema.js +6 -2
- package/build/frontend/models/index.js +4 -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 +24 -1
- package/build/frontend/models/nodes.schema.js +6 -3
- package/package.json +2 -2
- 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,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
|
+
provider: {
|
148
|
+
uuid: string;
|
149
|
+
name: string;
|
150
|
+
faviconLink: string | null;
|
151
|
+
loginUrl: string | null;
|
152
|
+
};
|
153
|
+
nodeUuid: string;
|
154
|
+
providerUuid: string;
|
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
|
+
provider: {
|
166
|
+
uuid: string;
|
167
|
+
name: string;
|
168
|
+
faviconLink: string | null;
|
169
|
+
loginUrl: string | null;
|
170
|
+
};
|
171
|
+
nodeUuid: string;
|
172
|
+
providerUuid: string;
|
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
|
+
});
|
@@ -6,6 +6,69 @@ export declare const InfraProviderSchema: z.ZodObject<{
|
|
6
6
|
loginUrl: z.ZodNullable<z.ZodString>;
|
7
7
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
8
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>;
|
9
72
|
}, "strip", z.ZodTypeAny, {
|
10
73
|
uuid: string;
|
11
74
|
createdAt: Date;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"infra-provider.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-provider.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"infra-provider.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-provider.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B9B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;EAcrC,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.InfraProviderSchema = void 0;
|
3
|
+
exports.PartialInfraProviderSchema = exports.InfraProviderSchema = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
exports.InfraProviderSchema = zod_1.z.object({
|
6
6
|
uuid: zod_1.z.string().uuid(),
|
@@ -15,4 +15,27 @@ exports.InfraProviderSchema = zod_1.z.object({
|
|
15
15
|
.string()
|
16
16
|
.datetime()
|
17
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().uuid(),
|
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)),
|
18
41
|
});
|
@@ -12,6 +12,7 @@ export declare const NodesSchema: z.ZodObject<{
|
|
12
12
|
lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
13
13
|
lastStatusMessage: z.ZodNullable<z.ZodString>;
|
14
14
|
xrayVersion: z.ZodNullable<z.ZodString>;
|
15
|
+
nodeVersion: z.ZodNullable<z.ZodString>;
|
15
16
|
xrayUptime: z.ZodString;
|
16
17
|
isTrafficTrackingActive: z.ZodBoolean;
|
17
18
|
trafficResetDay: z.ZodNullable<z.ZodNumber>;
|
@@ -27,35 +28,61 @@ export declare const NodesSchema: z.ZodObject<{
|
|
27
28
|
totalRam: z.ZodNullable<z.ZodString>;
|
28
29
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
29
30
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
31
|
+
configProfile: z.ZodObject<{
|
32
|
+
activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
|
33
|
+
activeInbounds: z.ZodArray<z.ZodObject<{
|
34
|
+
uuid: z.ZodString;
|
35
|
+
profileUuid: z.ZodString;
|
36
|
+
tag: z.ZodString;
|
37
|
+
type: z.ZodString;
|
38
|
+
network: z.ZodNullable<z.ZodString>;
|
39
|
+
security: z.ZodNullable<z.ZodString>;
|
40
|
+
port: z.ZodNullable<z.ZodNumber>;
|
41
|
+
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
43
|
+
type: string;
|
44
|
+
uuid: string;
|
45
|
+
profileUuid: string;
|
46
|
+
tag: string;
|
47
|
+
network: string | null;
|
48
|
+
security: string | null;
|
49
|
+
port: number | null;
|
50
|
+
rawInbound?: unknown;
|
51
|
+
}, {
|
52
|
+
type: string;
|
53
|
+
uuid: string;
|
54
|
+
profileUuid: string;
|
55
|
+
tag: string;
|
56
|
+
network: string | null;
|
57
|
+
security: string | null;
|
58
|
+
port: number | null;
|
59
|
+
rawInbound?: unknown;
|
60
|
+
}>, "many">;
|
40
61
|
}, "strip", z.ZodTypeAny, {
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
62
|
+
activeConfigProfileUuid: string | null;
|
63
|
+
activeInbounds: {
|
64
|
+
type: string;
|
65
|
+
uuid: string;
|
66
|
+
profileUuid: string;
|
67
|
+
tag: string;
|
68
|
+
network: string | null;
|
69
|
+
security: string | null;
|
70
|
+
port: number | null;
|
71
|
+
rawInbound?: unknown;
|
72
|
+
}[];
|
49
73
|
}, {
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
74
|
+
activeConfigProfileUuid: string | null;
|
75
|
+
activeInbounds: {
|
76
|
+
type: string;
|
77
|
+
uuid: string;
|
78
|
+
profileUuid: string;
|
79
|
+
tag: string;
|
80
|
+
network: string | null;
|
81
|
+
security: string | null;
|
82
|
+
port: number | null;
|
83
|
+
rawInbound?: unknown;
|
84
|
+
}[];
|
85
|
+
}>;
|
59
86
|
providerUuid: z.ZodNullable<z.ZodString>;
|
60
87
|
provider: z.ZodNullable<z.ZodObject<{
|
61
88
|
uuid: z.ZodString;
|
@@ -83,6 +110,14 @@ export declare const NodesSchema: z.ZodObject<{
|
|
83
110
|
uuid: string;
|
84
111
|
createdAt: Date;
|
85
112
|
updatedAt: Date;
|
113
|
+
provider: {
|
114
|
+
uuid: string;
|
115
|
+
createdAt: Date;
|
116
|
+
updatedAt: Date;
|
117
|
+
name: string;
|
118
|
+
faviconLink: string | null;
|
119
|
+
loginUrl: string | null;
|
120
|
+
} | null;
|
86
121
|
name: string;
|
87
122
|
port: number | null;
|
88
123
|
countryCode: string;
|
@@ -97,6 +132,7 @@ export declare const NodesSchema: z.ZodObject<{
|
|
97
132
|
lastStatusChange: Date | null;
|
98
133
|
lastStatusMessage: string | null;
|
99
134
|
xrayVersion: string | null;
|
135
|
+
nodeVersion: string | null;
|
100
136
|
xrayUptime: string;
|
101
137
|
isTrafficTrackingActive: boolean;
|
102
138
|
trafficResetDay: number | null;
|
@@ -107,30 +143,32 @@ export declare const NodesSchema: z.ZodObject<{
|
|
107
143
|
cpuCount: number | null;
|
108
144
|
cpuModel: string | null;
|
109
145
|
totalRam: string | null;
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
146
|
+
configProfile: {
|
147
|
+
activeConfigProfileUuid: string | null;
|
148
|
+
activeInbounds: {
|
149
|
+
type: string;
|
150
|
+
uuid: string;
|
151
|
+
profileUuid: string;
|
152
|
+
tag: string;
|
153
|
+
network: string | null;
|
154
|
+
security: string | null;
|
155
|
+
port: number | null;
|
156
|
+
rawInbound?: unknown;
|
157
|
+
}[];
|
158
|
+
};
|
121
159
|
providerUuid: string | null;
|
160
|
+
}, {
|
161
|
+
uuid: string;
|
162
|
+
createdAt: string;
|
163
|
+
updatedAt: string;
|
122
164
|
provider: {
|
123
165
|
uuid: string;
|
124
|
-
createdAt:
|
125
|
-
updatedAt:
|
166
|
+
createdAt: string;
|
167
|
+
updatedAt: string;
|
126
168
|
name: string;
|
127
169
|
faviconLink: string | null;
|
128
170
|
loginUrl: string | null;
|
129
171
|
} | null;
|
130
|
-
}, {
|
131
|
-
uuid: string;
|
132
|
-
createdAt: string;
|
133
|
-
updatedAt: string;
|
134
172
|
name: string;
|
135
173
|
port: number | null;
|
136
174
|
countryCode: string;
|
@@ -145,6 +183,7 @@ export declare const NodesSchema: z.ZodObject<{
|
|
145
183
|
lastStatusChange: string | null;
|
146
184
|
lastStatusMessage: string | null;
|
147
185
|
xrayVersion: string | null;
|
186
|
+
nodeVersion: string | null;
|
148
187
|
xrayUptime: string;
|
149
188
|
isTrafficTrackingActive: boolean;
|
150
189
|
trafficResetDay: number | null;
|
@@ -155,25 +194,19 @@ export declare const NodesSchema: z.ZodObject<{
|
|
155
194
|
cpuCount: number | null;
|
156
195
|
cpuModel: string | null;
|
157
196
|
totalRam: string | null;
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
197
|
+
configProfile: {
|
198
|
+
activeConfigProfileUuid: string | null;
|
199
|
+
activeInbounds: {
|
200
|
+
type: string;
|
201
|
+
uuid: string;
|
202
|
+
profileUuid: string;
|
203
|
+
tag: string;
|
204
|
+
network: string | null;
|
205
|
+
security: string | null;
|
206
|
+
port: number | null;
|
207
|
+
rawInbound?: unknown;
|
208
|
+
}[];
|
209
|
+
};
|
169
210
|
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;
|
178
211
|
}>;
|
179
212
|
//# sourceMappingURL=nodes.schema.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,WAAW
|
1
|
+
{"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDtB,CAAC"}
|
@@ -20,6 +20,7 @@ exports.NodesSchema = zod_1.z.object({
|
|
20
20
|
.transform((str) => new Date(str))),
|
21
21
|
lastStatusMessage: zod_1.z.nullable(zod_1.z.string()),
|
22
22
|
xrayVersion: zod_1.z.nullable(zod_1.z.string()),
|
23
|
+
nodeVersion: zod_1.z.nullable(zod_1.z.string()),
|
23
24
|
xrayUptime: zod_1.z.string(),
|
24
25
|
isTrafficTrackingActive: zod_1.z.boolean(),
|
25
26
|
trafficResetDay: zod_1.z.nullable(zod_1.z.number().int()),
|
@@ -41,8 +42,10 @@ exports.NodesSchema = zod_1.z.object({
|
|
41
42
|
.string()
|
42
43
|
.datetime()
|
43
44
|
.transform((str) => new Date(str)),
|
44
|
-
|
45
|
-
|
45
|
+
configProfile: zod_1.z.object({
|
46
|
+
activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
47
|
+
activeInbounds: zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema),
|
48
|
+
}),
|
46
49
|
providerUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
47
|
-
provider: zod_1.z.nullable(infra_provider_schema_1.
|
50
|
+
provider: zod_1.z.nullable(infra_provider_schema_1.PartialInfraProviderSchema),
|
48
51
|
});
|
@@ -10,13 +10,9 @@ exports.INFRA_BILLING_ROUTES = {
|
|
10
10
|
GET_PROVIDER_BY_UUID: (uuid) => `providers/${uuid}`, // Get provider by uuid // get
|
11
11
|
GET_BILLING_NODES: 'nodes', // Get list of all nodes billing // get
|
12
12
|
CREATE_BILLING_NODE: 'nodes', // Create new node billing // post
|
13
|
-
UPDATE_BILLING_NODE:
|
13
|
+
UPDATE_BILLING_NODE: 'nodes', // Update node billing by uuid // patch
|
14
14
|
DELETE_BILLING_NODE: (uuid) => `nodes/${uuid}`, // Delete node billing by uuid // delete
|
15
15
|
GET_BILLING_HISTORY: 'history', // Get list of all nodes billing history // get
|
16
16
|
CREATE_BILLING_HISTORY: 'history', // Create new node billing history // post
|
17
17
|
DELETE_BILLING_HISTORY: (uuid) => `history/${uuid}`, // Delete node billing history by uuid // delete
|
18
|
-
// GET_BILLING_HISTORY_BY_NODE_UUID: (nodeUuid: string) => `history/${nodeUuid}`, // Get list of all nodes billing history by node uuid // get
|
19
|
-
// GET_BILLING_HISTORY_BY_PROVIDER_UUID: (providerUuid: string) => `history/${providerUuid}`, // Get list of all nodes billing history by provider uuid // get
|
20
|
-
// GET_BILLING_HISTORY_BY_NODE_UUID_AND_PROVIDER_UUID: (nodeUuid: string, providerUuid: string) =>
|
21
|
-
// `history/${nodeUuid}/${providerUuid}`, // Get list of all nodes billing history by node uuid and provider uuid // get
|
22
18
|
};
|
@@ -2,10 +2,15 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.INTERNAL_SQUADS_ROUTES = exports.INTERNAL_SQUADS_CONTROLLER = void 0;
|
4
4
|
exports.INTERNAL_SQUADS_CONTROLLER = 'internal-squads';
|
5
|
+
const BULK_ACTIONS_ROUTE = 'bulk-actions';
|
5
6
|
exports.INTERNAL_SQUADS_ROUTES = {
|
6
7
|
GET: '', // Get list of all internal squads // get
|
7
8
|
CREATE: '', // Create new internal squad // post
|
8
9
|
UPDATE: '', // Update internal squad by uuid // patch
|
9
10
|
GET_BY_UUID: (uuid) => `${uuid}`, // Get internal squad by uuid // get
|
10
11
|
DELETE: (uuid) => `${uuid}`, // Delete internal squad by uuid // delete
|
12
|
+
BULK_ACTIONS: {
|
13
|
+
ADD_USERS: (uuid) => `${uuid}/${BULK_ACTIONS_ROUTE}/add-users`, // Add users to internal squad // post
|
14
|
+
REMOVE_USERS: (uuid) => `${uuid}/${BULK_ACTIONS_ROUTE}/remove-users`, // Remove users from internal squad // delete
|
15
|
+
},
|
11
16
|
};
|