@remnawave/backend-contract 2.0.0-alpha.27 → 2.0.0-alpha.3
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 +0 -1
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +0 -1
- package/build/backend/api/controllers/internal-squads.d.ts +0 -4
- package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
- package/build/backend/api/controllers/internal-squads.js +0 -5
- package/build/backend/api/controllers/users.d.ts +0 -1
- package/build/backend/api/controllers/users.d.ts.map +1 -1
- package/build/backend/api/controllers/users.js +0 -1
- package/build/backend/api/routes.d.ts +0 -19
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +0 -19
- 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 +10 -26
- 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 +10 -26
- 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 +10 -26
- 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 +10 -26
- 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 +10 -26
- 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 +19 -47
- 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 +10 -26
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-one.command.d.ts +10 -26
- package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +2 -10
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +21 -57
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +11 -10
- package/build/backend/commands/index.d.ts +0 -1
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +0 -1
- 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 +1 -2
- package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/index.js +1 -2
- package/build/backend/commands/nodes/actions/disable.command.d.ts +64 -157
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +64 -157
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +88 -230
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +70 -178
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +4 -7
- package/build/backend/commands/nodes/get-all.command.d.ts +64 -157
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +64 -157
- 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 +94 -251
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +4 -9
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/users/index.d.ts +0 -1
- package/build/backend/commands/users/index.d.ts.map +1 -1
- package/build/backend/commands/users/index.js +0 -1
- package/build/backend/constants/errors/errors.d.ts +0 -95
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +0 -95
- package/build/backend/constants/events/events.d.ts +0 -11
- package/build/backend/constants/events/events.d.ts.map +1 -1
- package/build/backend/constants/events/events.js +0 -10
- 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 +0 -1
- package/build/backend/models/{extended-users.schema.d.ts → extented-users.schema.d.ts} +1 -1
- package/build/backend/models/{extended-users.schema.d.ts.map → extented-users.schema.d.ts.map} +1 -1
- package/build/backend/models/hosts.schema.d.ts +6 -18
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +2 -4
- package/build/backend/models/index.d.ts +1 -5
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +1 -5
- package/build/backend/models/nodes.schema.d.ts +44 -115
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +2 -7
- package/build/frontend/api/controllers/index.js +0 -1
- package/build/frontend/api/controllers/internal-squads.js +0 -5
- package/build/frontend/api/controllers/users.js +0 -1
- package/build/frontend/api/routes.js +0 -19
- 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 +11 -10
- package/build/frontend/commands/index.js +0 -1
- package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
- package/build/frontend/commands/internal-squads/index.js +1 -2
- package/build/frontend/commands/nodes/create.command.js +4 -7
- package/build/frontend/commands/nodes/update.command.js +4 -9
- package/build/frontend/commands/users/index.js +0 -1
- package/build/frontend/constants/errors/errors.js +0 -95
- package/build/frontend/constants/events/events.js +0 -10
- package/build/frontend/constants/templates/template-keys.js +0 -1
- package/build/frontend/models/hosts.schema.js +2 -4
- package/build/frontend/models/index.js +1 -5
- package/build/frontend/models/nodes.schema.js +2 -7
- package/package.json +1 -1
- package/build/backend/api/controllers/infra-billing.d.ts +0 -16
- package/build/backend/api/controllers/infra-billing.d.ts.map +0 -1
- package/build/backend/api/controllers/infra-billing.js +0 -18
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +0 -125
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/create-bill-record.command.js +0 -30
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +0 -465
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/create-billing-node.command.js +0 -38
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +0 -123
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/create-infra-provider.command.js +0 -24
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +0 -119
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +0 -459
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +0 -33
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +0 -122
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/get-bill-records.command.js +0 -31
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +0 -451
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/get-billing-nodes.command.js +0 -26
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +0 -117
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +0 -156
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/get-infra-providers.command.js +0 -19
- package/build/backend/commands/infra-billing/index.d.ts +0 -13
- package/build/backend/commands/infra-billing/index.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/index.js +0 -28
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +0 -462
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/update-billing-node.command.js +0 -35
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +0 -126
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/update-infra-provider.command.js +0 -26
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +0 -33
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +0 -1
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +0 -20
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +0 -33
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +0 -1
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +0 -20
- package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +0 -3
- package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +0 -1
- package/build/backend/commands/internal-squads/bulk-actions/index.js +0 -18
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +0 -1
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +0 -114
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +0 -1
- package/build/backend/commands/users/get-user-accessible-nodes.command.js +0 -31
- package/build/backend/models/infra-billing-available-node.schema.d.ts +0 -116
- package/build/backend/models/infra-billing-available-node.schema.d.ts.map +0 -1
- package/build/backend/models/infra-billing-available-node.schema.js +0 -9
- package/build/backend/models/infra-billing-history-record.schema.d.ts +0 -44
- package/build/backend/models/infra-billing-history-record.schema.d.ts.map +0 -1
- package/build/backend/models/infra-billing-history-record.schema.js +0 -19
- package/build/backend/models/infra-billing-node.schema.d.ts +0 -179
- package/build/backend/models/infra-billing-node.schema.d.ts.map +0 -1
- package/build/backend/models/infra-billing-node.schema.js +0 -34
- package/build/backend/models/infra-provider.schema.d.ts +0 -87
- package/build/backend/models/infra-provider.schema.d.ts.map +0 -1
- package/build/backend/models/infra-provider.schema.js +0 -41
- package/build/frontend/api/controllers/infra-billing.js +0 -18
- package/build/frontend/commands/infra-billing/create-bill-record.command.js +0 -30
- package/build/frontend/commands/infra-billing/create-billing-node.command.js +0 -38
- package/build/frontend/commands/infra-billing/create-infra-provider.command.js +0 -24
- package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
- package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
- package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
- package/build/frontend/commands/infra-billing/get-bill-records.command.js +0 -31
- package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +0 -26
- package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
- package/build/frontend/commands/infra-billing/get-infra-providers.command.js +0 -19
- package/build/frontend/commands/infra-billing/index.js +0 -28
- package/build/frontend/commands/infra-billing/update-billing-node.command.js +0 -35
- package/build/frontend/commands/infra-billing/update-infra-provider.command.js +0 -26
- package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +0 -20
- package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +0 -20
- package/build/frontend/commands/internal-squads/bulk-actions/index.js +0 -18
- package/build/frontend/commands/users/get-user-accessible-nodes.command.js +0 -31
- package/build/frontend/models/infra-billing-available-node.schema.js +0 -9
- package/build/frontend/models/infra-billing-history-record.schema.js +0 -19
- package/build/frontend/models/infra-billing-node.schema.js +0 -34
- package/build/frontend/models/infra-provider.schema.js +0 -41
- /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid.js → get-internal-squad-by-uuid..js} +0 -0
- /package/build/backend/models/{extended-users.schema.js → extented-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/{extended-users.schema.js → extented-users.schema.js} +0 -0
@@ -1,179 +0,0 @@
|
|
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
|
-
configProfile: z.ZodObject<{
|
53
|
-
activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
|
54
|
-
activeInbounds: z.ZodArray<z.ZodObject<{
|
55
|
-
uuid: z.ZodString;
|
56
|
-
profileUuid: z.ZodString;
|
57
|
-
tag: z.ZodString;
|
58
|
-
type: z.ZodString;
|
59
|
-
network: z.ZodNullable<z.ZodString>;
|
60
|
-
security: z.ZodNullable<z.ZodString>;
|
61
|
-
port: z.ZodNullable<z.ZodNumber>;
|
62
|
-
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
63
|
-
}, "strip", z.ZodTypeAny, {
|
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
|
-
}, {
|
73
|
-
type: string;
|
74
|
-
uuid: string;
|
75
|
-
profileUuid: string;
|
76
|
-
tag: string;
|
77
|
-
network: string | null;
|
78
|
-
security: string | null;
|
79
|
-
port: number | null;
|
80
|
-
rawInbound?: unknown;
|
81
|
-
}>, "many">;
|
82
|
-
}, "strip", z.ZodTypeAny, {
|
83
|
-
activeConfigProfileUuid: string | null;
|
84
|
-
activeInbounds: {
|
85
|
-
type: string;
|
86
|
-
uuid: string;
|
87
|
-
profileUuid: string;
|
88
|
-
tag: string;
|
89
|
-
network: string | null;
|
90
|
-
security: string | null;
|
91
|
-
port: number | null;
|
92
|
-
rawInbound?: unknown;
|
93
|
-
}[];
|
94
|
-
}, {
|
95
|
-
activeConfigProfileUuid: string | null;
|
96
|
-
activeInbounds: {
|
97
|
-
type: string;
|
98
|
-
uuid: string;
|
99
|
-
profileUuid: string;
|
100
|
-
tag: string;
|
101
|
-
network: string | null;
|
102
|
-
security: string | null;
|
103
|
-
port: number | null;
|
104
|
-
rawInbound?: unknown;
|
105
|
-
}[];
|
106
|
-
}>;
|
107
|
-
providerUuid: z.ZodNullable<z.ZodString>;
|
108
|
-
provider: z.ZodNullable<z.ZodObject<{
|
109
|
-
uuid: z.ZodString;
|
110
|
-
name: z.ZodString;
|
111
|
-
faviconLink: z.ZodNullable<z.ZodString>;
|
112
|
-
loginUrl: z.ZodNullable<z.ZodString>;
|
113
|
-
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
114
|
-
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
115
|
-
}, "strip", z.ZodTypeAny, {
|
116
|
-
uuid: string;
|
117
|
-
createdAt: Date;
|
118
|
-
updatedAt: Date;
|
119
|
-
name: string;
|
120
|
-
faviconLink: string | null;
|
121
|
-
loginUrl: string | null;
|
122
|
-
}, {
|
123
|
-
uuid: string;
|
124
|
-
createdAt: string;
|
125
|
-
updatedAt: string;
|
126
|
-
name: string;
|
127
|
-
faviconLink: string | null;
|
128
|
-
loginUrl: string | null;
|
129
|
-
}>>;
|
130
|
-
}, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
|
131
|
-
uuid: string;
|
132
|
-
name: string;
|
133
|
-
countryCode: string;
|
134
|
-
}, {
|
135
|
-
uuid: string;
|
136
|
-
name: string;
|
137
|
-
countryCode: string;
|
138
|
-
}>;
|
139
|
-
nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
|
140
|
-
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
141
|
-
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
142
|
-
}, "strip", z.ZodTypeAny, {
|
143
|
-
uuid: string;
|
144
|
-
createdAt: Date;
|
145
|
-
updatedAt: Date;
|
146
|
-
nodeUuid: string;
|
147
|
-
providerUuid: string;
|
148
|
-
provider: {
|
149
|
-
uuid: string;
|
150
|
-
name: string;
|
151
|
-
faviconLink: string | null;
|
152
|
-
loginUrl: string | null;
|
153
|
-
};
|
154
|
-
node: {
|
155
|
-
uuid: string;
|
156
|
-
name: string;
|
157
|
-
countryCode: string;
|
158
|
-
};
|
159
|
-
nextBillingAt: Date;
|
160
|
-
}, {
|
161
|
-
uuid: string;
|
162
|
-
createdAt: string;
|
163
|
-
updatedAt: string;
|
164
|
-
nodeUuid: string;
|
165
|
-
providerUuid: string;
|
166
|
-
provider: {
|
167
|
-
uuid: string;
|
168
|
-
name: string;
|
169
|
-
faviconLink: string | null;
|
170
|
-
loginUrl: string | null;
|
171
|
-
};
|
172
|
-
node: {
|
173
|
-
uuid: string;
|
174
|
-
name: string;
|
175
|
-
countryCode: string;
|
176
|
-
};
|
177
|
-
nextBillingAt: string;
|
178
|
-
}>;
|
179
|
-
//# sourceMappingURL=infra-billing-node.schema.d.ts.map
|
@@ -1 +0,0 @@
|
|
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"}
|
@@ -1,34 +0,0 @@
|
|
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
|
-
});
|
@@ -1,87 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
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,41 +0,0 @@
|
|
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
|
-
});
|
@@ -1,18 +0,0 @@
|
|
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
|
-
};
|
@@ -1,30 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CreateInfraBillingHistoryRecordCommand = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const models_1 = require("../../models");
|
6
|
-
const api_1 = require("../../api");
|
7
|
-
const constants_1 = require("../../constants");
|
8
|
-
var CreateInfraBillingHistoryRecordCommand;
|
9
|
-
(function (CreateInfraBillingHistoryRecordCommand) {
|
10
|
-
CreateInfraBillingHistoryRecordCommand.url = api_1.REST_API.INFRA_BILLING.CREATE_BILLING_HISTORY;
|
11
|
-
CreateInfraBillingHistoryRecordCommand.TSQ_url = CreateInfraBillingHistoryRecordCommand.url;
|
12
|
-
CreateInfraBillingHistoryRecordCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.CREATE_BILLING_HISTORY, 'post', 'Create infra billing history');
|
13
|
-
CreateInfraBillingHistoryRecordCommand.RequestSchema = zod_1.z.object({
|
14
|
-
providerUuid: zod_1.z.string().uuid(),
|
15
|
-
amount: zod_1.z.number().min(0, 'Amount must be greater than 0'),
|
16
|
-
billedAt: zod_1.z
|
17
|
-
.string({
|
18
|
-
invalid_type_error: 'Invalid date format',
|
19
|
-
})
|
20
|
-
.datetime({ message: 'Invalid date format', offset: true, local: true })
|
21
|
-
.transform((str) => new Date(str))
|
22
|
-
.describe('Billing date. Format: 2025-01-17T15:38:45.065Z'),
|
23
|
-
});
|
24
|
-
CreateInfraBillingHistoryRecordCommand.ResponseSchema = zod_1.z.object({
|
25
|
-
response: zod_1.z.object({
|
26
|
-
records: zod_1.z.array(models_1.InfraBillingHistoryRecordSchema),
|
27
|
-
total: zod_1.z.number(),
|
28
|
-
}),
|
29
|
-
});
|
30
|
-
})(CreateInfraBillingHistoryRecordCommand || (exports.CreateInfraBillingHistoryRecordCommand = CreateInfraBillingHistoryRecordCommand = {}));
|
@@ -1,38 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CreateInfraBillingNodeCommand = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const models_1 = require("../../models");
|
6
|
-
const api_1 = require("../../api");
|
7
|
-
const constants_1 = require("../../constants");
|
8
|
-
var CreateInfraBillingNodeCommand;
|
9
|
-
(function (CreateInfraBillingNodeCommand) {
|
10
|
-
CreateInfraBillingNodeCommand.url = api_1.REST_API.INFRA_BILLING.CREATE_BILLING_NODE;
|
11
|
-
CreateInfraBillingNodeCommand.TSQ_url = CreateInfraBillingNodeCommand.url;
|
12
|
-
CreateInfraBillingNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.CREATE_BILLING_NODE, 'post', 'Create infra billing node');
|
13
|
-
CreateInfraBillingNodeCommand.RequestSchema = zod_1.z.object({
|
14
|
-
providerUuid: zod_1.z.string().uuid(),
|
15
|
-
nodeUuid: zod_1.z.string().uuid(),
|
16
|
-
nextBillingAt: zod_1.z
|
17
|
-
.string({
|
18
|
-
invalid_type_error: 'Invalid date format',
|
19
|
-
})
|
20
|
-
.datetime({ message: 'Invalid date format', offset: true, local: true })
|
21
|
-
.transform((str) => new Date(str))
|
22
|
-
.optional()
|
23
|
-
.describe('Next billing date. Format: 2025-01-17T15:38:45.065Z'),
|
24
|
-
});
|
25
|
-
CreateInfraBillingNodeCommand.ResponseSchema = zod_1.z.object({
|
26
|
-
response: zod_1.z.object({
|
27
|
-
totalBillingNodes: zod_1.z.number(),
|
28
|
-
billingNodes: zod_1.z.array(models_1.InfraBillingNodeSchema),
|
29
|
-
availableBillingNodes: zod_1.z.array(models_1.InfraBillingAvailableNodeSchema),
|
30
|
-
totalAvailableBillingNodes: zod_1.z.number(),
|
31
|
-
stats: zod_1.z.object({
|
32
|
-
upcomingNodesCount: zod_1.z.number(),
|
33
|
-
currentMonthPayments: zod_1.z.number(),
|
34
|
-
totalSpent: zod_1.z.number(),
|
35
|
-
}),
|
36
|
-
}),
|
37
|
-
});
|
38
|
-
})(CreateInfraBillingNodeCommand || (exports.CreateInfraBillingNodeCommand = CreateInfraBillingNodeCommand = {}));
|
@@ -1,24 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CreateInfraProviderCommand = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const api_1 = require("../../api");
|
6
|
-
const constants_1 = require("../../constants");
|
7
|
-
const models_1 = require("../../models");
|
8
|
-
var CreateInfraProviderCommand;
|
9
|
-
(function (CreateInfraProviderCommand) {
|
10
|
-
CreateInfraProviderCommand.url = api_1.REST_API.INFRA_BILLING.CREATE_PROVIDER;
|
11
|
-
CreateInfraProviderCommand.TSQ_url = CreateInfraProviderCommand.url;
|
12
|
-
CreateInfraProviderCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.CREATE_PROVIDER, 'post', 'Create infra provider');
|
13
|
-
CreateInfraProviderCommand.RequestSchema = zod_1.z.object({
|
14
|
-
name: zod_1.z
|
15
|
-
.string()
|
16
|
-
.min(2, 'Name must be at least 2 characters')
|
17
|
-
.max(30, 'Name must be less than 30 characters'),
|
18
|
-
faviconLink: zod_1.z.string().url().optional(),
|
19
|
-
loginUrl: zod_1.z.string().url().optional(),
|
20
|
-
});
|
21
|
-
CreateInfraProviderCommand.ResponseSchema = zod_1.z.object({
|
22
|
-
response: models_1.InfraProviderSchema,
|
23
|
-
});
|
24
|
-
})(CreateInfraProviderCommand || (exports.CreateInfraProviderCommand = CreateInfraProviderCommand = {}));
|
@@ -1,22 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DeleteInfraBillingHistoryRecordCommand = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const models_1 = require("../../models");
|
6
|
-
const api_1 = require("../../api");
|
7
|
-
const constants_1 = require("../../constants");
|
8
|
-
var DeleteInfraBillingHistoryRecordCommand;
|
9
|
-
(function (DeleteInfraBillingHistoryRecordCommand) {
|
10
|
-
DeleteInfraBillingHistoryRecordCommand.url = api_1.REST_API.INFRA_BILLING.DELETE_BILLING_HISTORY(':uuid');
|
11
|
-
DeleteInfraBillingHistoryRecordCommand.TSQ_url = DeleteInfraBillingHistoryRecordCommand.url;
|
12
|
-
DeleteInfraBillingHistoryRecordCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.DELETE_BILLING_HISTORY(':uuid'), 'delete', 'Delete infra billing history');
|
13
|
-
DeleteInfraBillingHistoryRecordCommand.RequestSchema = zod_1.z.object({
|
14
|
-
uuid: zod_1.z.string().uuid(),
|
15
|
-
});
|
16
|
-
DeleteInfraBillingHistoryRecordCommand.ResponseSchema = zod_1.z.object({
|
17
|
-
response: zod_1.z.object({
|
18
|
-
records: zod_1.z.array(models_1.InfraBillingHistoryRecordSchema),
|
19
|
-
total: zod_1.z.number(),
|
20
|
-
}),
|
21
|
-
});
|
22
|
-
})(DeleteInfraBillingHistoryRecordCommand || (exports.DeleteInfraBillingHistoryRecordCommand = DeleteInfraBillingHistoryRecordCommand = {}));
|
@@ -1,29 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DeleteInfraBillingNodeByUuidCommand = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const models_1 = require("../../models");
|
6
|
-
const api_1 = require("../../api");
|
7
|
-
const constants_1 = require("../../constants");
|
8
|
-
var DeleteInfraBillingNodeByUuidCommand;
|
9
|
-
(function (DeleteInfraBillingNodeByUuidCommand) {
|
10
|
-
DeleteInfraBillingNodeByUuidCommand.url = api_1.REST_API.INFRA_BILLING.DELETE_BILLING_NODE(':uuid');
|
11
|
-
DeleteInfraBillingNodeByUuidCommand.TSQ_url = DeleteInfraBillingNodeByUuidCommand.url;
|
12
|
-
DeleteInfraBillingNodeByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.DELETE_BILLING_NODE(':uuid'), 'delete', 'Delete infra billing node');
|
13
|
-
DeleteInfraBillingNodeByUuidCommand.RequestSchema = zod_1.z.object({
|
14
|
-
uuid: zod_1.z.string().uuid(),
|
15
|
-
});
|
16
|
-
DeleteInfraBillingNodeByUuidCommand.ResponseSchema = zod_1.z.object({
|
17
|
-
response: zod_1.z.object({
|
18
|
-
totalBillingNodes: zod_1.z.number(),
|
19
|
-
billingNodes: zod_1.z.array(models_1.InfraBillingNodeSchema),
|
20
|
-
availableBillingNodes: zod_1.z.array(models_1.InfraBillingAvailableNodeSchema),
|
21
|
-
totalAvailableBillingNodes: zod_1.z.number(),
|
22
|
-
stats: zod_1.z.object({
|
23
|
-
upcomingNodesCount: zod_1.z.number(),
|
24
|
-
currentMonthPayments: zod_1.z.number(),
|
25
|
-
totalSpent: zod_1.z.number(),
|
26
|
-
}),
|
27
|
-
}),
|
28
|
-
});
|
29
|
-
})(DeleteInfraBillingNodeByUuidCommand || (exports.DeleteInfraBillingNodeByUuidCommand = DeleteInfraBillingNodeByUuidCommand = {}));
|
@@ -1,20 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DeleteInfraProviderByUuidCommand = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const api_1 = require("../../api");
|
6
|
-
const constants_1 = require("../../constants");
|
7
|
-
var DeleteInfraProviderByUuidCommand;
|
8
|
-
(function (DeleteInfraProviderByUuidCommand) {
|
9
|
-
DeleteInfraProviderByUuidCommand.url = api_1.REST_API.INFRA_BILLING.DELETE_PROVIDER(':uuid');
|
10
|
-
DeleteInfraProviderByUuidCommand.TSQ_url = DeleteInfraProviderByUuidCommand.url;
|
11
|
-
DeleteInfraProviderByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.DELETE_PROVIDER(':uuid'), 'delete', 'Delete infra provider by uuid');
|
12
|
-
DeleteInfraProviderByUuidCommand.RequestSchema = zod_1.z.object({
|
13
|
-
uuid: zod_1.z.string().uuid(),
|
14
|
-
});
|
15
|
-
DeleteInfraProviderByUuidCommand.ResponseSchema = zod_1.z.object({
|
16
|
-
response: zod_1.z.object({
|
17
|
-
isDeleted: zod_1.z.boolean(),
|
18
|
-
}),
|
19
|
-
});
|
20
|
-
})(DeleteInfraProviderByUuidCommand || (exports.DeleteInfraProviderByUuidCommand = DeleteInfraProviderByUuidCommand = {}));
|
@@ -1,31 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GetInfraBillingHistoryRecordsCommand = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const models_1 = require("../../models");
|
6
|
-
const api_1 = require("../../api");
|
7
|
-
const constants_1 = require("../../constants");
|
8
|
-
var GetInfraBillingHistoryRecordsCommand;
|
9
|
-
(function (GetInfraBillingHistoryRecordsCommand) {
|
10
|
-
GetInfraBillingHistoryRecordsCommand.url = api_1.REST_API.INFRA_BILLING.GET_BILLING_HISTORY;
|
11
|
-
GetInfraBillingHistoryRecordsCommand.TSQ_url = GetInfraBillingHistoryRecordsCommand.url;
|
12
|
-
GetInfraBillingHistoryRecordsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.GET_BILLING_HISTORY, 'get', 'Get infra billing history');
|
13
|
-
GetInfraBillingHistoryRecordsCommand.RequestQuerySchema = zod_1.z.object({
|
14
|
-
start: zod_1.z.coerce
|
15
|
-
.number()
|
16
|
-
.default(0)
|
17
|
-
.describe('Start index (offset) of the billing history records to return, default is 0'),
|
18
|
-
size: zod_1.z.coerce
|
19
|
-
.number()
|
20
|
-
.min(1, 'Size (limit) must be greater than 0')
|
21
|
-
.max(500, 'Size (limit) must be less than 500')
|
22
|
-
.describe('Number of billing records to return, no more than 500')
|
23
|
-
.default(50),
|
24
|
-
});
|
25
|
-
GetInfraBillingHistoryRecordsCommand.ResponseSchema = zod_1.z.object({
|
26
|
-
response: zod_1.z.object({
|
27
|
-
records: zod_1.z.array(models_1.InfraBillingHistoryRecordSchema),
|
28
|
-
total: zod_1.z.number(),
|
29
|
-
}),
|
30
|
-
});
|
31
|
-
})(GetInfraBillingHistoryRecordsCommand || (exports.GetInfraBillingHistoryRecordsCommand = GetInfraBillingHistoryRecordsCommand = {}));
|
@@ -1,26 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GetInfraBillingNodesCommand = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const models_1 = require("../../models");
|
6
|
-
const api_1 = require("../../api");
|
7
|
-
const constants_1 = require("../../constants");
|
8
|
-
var GetInfraBillingNodesCommand;
|
9
|
-
(function (GetInfraBillingNodesCommand) {
|
10
|
-
GetInfraBillingNodesCommand.url = api_1.REST_API.INFRA_BILLING.GET_BILLING_NODES;
|
11
|
-
GetInfraBillingNodesCommand.TSQ_url = GetInfraBillingNodesCommand.url;
|
12
|
-
GetInfraBillingNodesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.GET_BILLING_NODES, 'get', 'Get infra billing nodes');
|
13
|
-
GetInfraBillingNodesCommand.ResponseSchema = zod_1.z.object({
|
14
|
-
response: zod_1.z.object({
|
15
|
-
totalBillingNodes: zod_1.z.number(),
|
16
|
-
billingNodes: zod_1.z.array(models_1.InfraBillingNodeSchema),
|
17
|
-
availableBillingNodes: zod_1.z.array(models_1.InfraBillingAvailableNodeSchema),
|
18
|
-
totalAvailableBillingNodes: zod_1.z.number(),
|
19
|
-
stats: zod_1.z.object({
|
20
|
-
upcomingNodesCount: zod_1.z.number(),
|
21
|
-
currentMonthPayments: zod_1.z.number(),
|
22
|
-
totalSpent: zod_1.z.number(),
|
23
|
-
}),
|
24
|
-
}),
|
25
|
-
});
|
26
|
-
})(GetInfraBillingNodesCommand || (exports.GetInfraBillingNodesCommand = GetInfraBillingNodesCommand = {}));
|
@@ -1,19 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GetInfraProviderByUuidCommand = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const api_1 = require("../../api");
|
6
|
-
const constants_1 = require("../../constants");
|
7
|
-
const models_1 = require("../../models");
|
8
|
-
var GetInfraProviderByUuidCommand;
|
9
|
-
(function (GetInfraProviderByUuidCommand) {
|
10
|
-
GetInfraProviderByUuidCommand.url = api_1.REST_API.INFRA_BILLING.GET_PROVIDER_BY_UUID(':uuid');
|
11
|
-
GetInfraProviderByUuidCommand.TSQ_url = GetInfraProviderByUuidCommand.url;
|
12
|
-
GetInfraProviderByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.GET_PROVIDER_BY_UUID(':uuid'), 'get', 'Get infra provider by uuid');
|
13
|
-
GetInfraProviderByUuidCommand.RequestSchema = zod_1.z.object({
|
14
|
-
uuid: zod_1.z.string().uuid(),
|
15
|
-
});
|
16
|
-
GetInfraProviderByUuidCommand.ResponseSchema = zod_1.z.object({
|
17
|
-
response: models_1.InfraProviderSchema,
|
18
|
-
});
|
19
|
-
})(GetInfraProviderByUuidCommand || (exports.GetInfraProviderByUuidCommand = GetInfraProviderByUuidCommand = {}));
|
@@ -1,19 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GetInfraProvidersCommand = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const api_1 = require("../../api");
|
6
|
-
const constants_1 = require("../../constants");
|
7
|
-
const models_1 = require("../../models");
|
8
|
-
var GetInfraProvidersCommand;
|
9
|
-
(function (GetInfraProvidersCommand) {
|
10
|
-
GetInfraProvidersCommand.url = api_1.REST_API.INFRA_BILLING.GET_PROVIDERS;
|
11
|
-
GetInfraProvidersCommand.TSQ_url = GetInfraProvidersCommand.url;
|
12
|
-
GetInfraProvidersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.GET_PROVIDERS, 'get', 'Get all infra providers');
|
13
|
-
GetInfraProvidersCommand.ResponseSchema = zod_1.z.object({
|
14
|
-
response: zod_1.z.object({
|
15
|
-
total: zod_1.z.number(),
|
16
|
-
providers: zod_1.z.array(models_1.InfraProviderSchema),
|
17
|
-
}),
|
18
|
-
});
|
19
|
-
})(GetInfraProvidersCommand || (exports.GetInfraProvidersCommand = GetInfraProvidersCommand = {}));
|