@remnawave/backend-contract 2.0.0-alpha.12 → 2.0.0-alpha.14
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/commands/infra-billing/create-bill-record.command.d.ts +15 -15
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/create-bill-record.command.js +0 -1
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +364 -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 +33 -0
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +12 -12
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +353 -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 +23 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +12 -12
- package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts +350 -0
- package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-blling-nodes.command.js +21 -0
- package/build/backend/commands/infra-billing/index.d.ts +4 -0
- package/build/backend/commands/infra-billing/index.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/index.js +4 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +361 -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 +31 -0
- package/build/backend/commands/nodes/actions/disable.command.d.ts +36 -36
- package/build/backend/commands/nodes/actions/enable.command.d.ts +36 -36
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +36 -36
- package/build/backend/commands/nodes/create.command.d.ts +38 -38
- package/build/backend/commands/nodes/get-all.command.d.ts +36 -36
- package/build/backend/commands/nodes/get-one.command.d.ts +36 -36
- package/build/backend/commands/nodes/update.command.d.ts +38 -38
- package/build/backend/constants/errors/errors.d.ts +15 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +15 -0
- package/build/backend/models/index.d.ts +2 -0
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +2 -0
- package/build/backend/models/infra-billing-available-node.schema.d.ts +90 -0
- package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-available-node.schema.js +9 -0
- package/build/backend/models/infra-billing-history-record.schema.d.ts +4 -4
- package/build/backend/models/infra-billing-node.schema.d.ts +145 -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/nodes.schema.d.ts +18 -18
- package/build/frontend/commands/infra-billing/create-bill-record.command.js +0 -1
- package/build/frontend/commands/infra-billing/create-billing-node.command.js +33 -0
- package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +23 -0
- package/build/frontend/commands/infra-billing/get-blling-nodes.command.js +21 -0
- package/build/frontend/commands/infra-billing/index.js +4 -0
- package/build/frontend/commands/infra-billing/update-billing-node.command.js +31 -0
- package/build/frontend/constants/errors/errors.js +15 -0
- package/build/frontend/models/index.js +2 -0
- package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
- package/build/frontend/models/infra-billing-node.schema.js +34 -0
- package/package.json +1 -1
@@ -6,15 +6,15 @@ export declare namespace CreateInfraBillingHistoryRecordCommand {
|
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
providerUuid: z.ZodString;
|
8
8
|
amount: z.ZodNumber;
|
9
|
-
billedAt: z.
|
9
|
+
billedAt: z.ZodEffects<z.ZodString, Date, string>;
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
11
11
|
providerUuid: string;
|
12
12
|
amount: number;
|
13
|
-
billedAt
|
13
|
+
billedAt: Date;
|
14
14
|
}, {
|
15
15
|
providerUuid: string;
|
16
16
|
amount: number;
|
17
|
-
billedAt
|
17
|
+
billedAt: string;
|
18
18
|
}>;
|
19
19
|
type Request = z.infer<typeof RequestSchema>;
|
20
20
|
const ResponseSchema: z.ZodObject<{
|
@@ -43,23 +43,23 @@ export declare namespace CreateInfraBillingHistoryRecordCommand {
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
44
44
|
uuid: string;
|
45
45
|
providerUuid: string;
|
46
|
-
amount: number;
|
47
|
-
billedAt: Date;
|
48
46
|
provider: {
|
49
47
|
uuid: string;
|
50
48
|
name: string;
|
51
49
|
faviconLink: string | null;
|
52
50
|
};
|
51
|
+
amount: number;
|
52
|
+
billedAt: Date;
|
53
53
|
}, {
|
54
54
|
uuid: string;
|
55
55
|
providerUuid: string;
|
56
|
-
amount: number;
|
57
|
-
billedAt: string;
|
58
56
|
provider: {
|
59
57
|
uuid: string;
|
60
58
|
name: string;
|
61
59
|
faviconLink: string | null;
|
62
60
|
};
|
61
|
+
amount: number;
|
62
|
+
billedAt: string;
|
63
63
|
}>, "many">;
|
64
64
|
total: z.ZodNumber;
|
65
65
|
}, "strip", z.ZodTypeAny, {
|
@@ -67,26 +67,26 @@ export declare namespace CreateInfraBillingHistoryRecordCommand {
|
|
67
67
|
records: {
|
68
68
|
uuid: string;
|
69
69
|
providerUuid: string;
|
70
|
-
amount: number;
|
71
|
-
billedAt: Date;
|
72
70
|
provider: {
|
73
71
|
uuid: string;
|
74
72
|
name: string;
|
75
73
|
faviconLink: string | null;
|
76
74
|
};
|
75
|
+
amount: number;
|
76
|
+
billedAt: Date;
|
77
77
|
}[];
|
78
78
|
}, {
|
79
79
|
total: number;
|
80
80
|
records: {
|
81
81
|
uuid: string;
|
82
82
|
providerUuid: string;
|
83
|
-
amount: number;
|
84
|
-
billedAt: string;
|
85
83
|
provider: {
|
86
84
|
uuid: string;
|
87
85
|
name: string;
|
88
86
|
faviconLink: string | null;
|
89
87
|
};
|
88
|
+
amount: number;
|
89
|
+
billedAt: string;
|
90
90
|
}[];
|
91
91
|
}>;
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
@@ -95,13 +95,13 @@ export declare namespace CreateInfraBillingHistoryRecordCommand {
|
|
95
95
|
records: {
|
96
96
|
uuid: string;
|
97
97
|
providerUuid: string;
|
98
|
-
amount: number;
|
99
|
-
billedAt: Date;
|
100
98
|
provider: {
|
101
99
|
uuid: string;
|
102
100
|
name: string;
|
103
101
|
faviconLink: string | null;
|
104
102
|
};
|
103
|
+
amount: number;
|
104
|
+
billedAt: Date;
|
105
105
|
}[];
|
106
106
|
};
|
107
107
|
}, {
|
@@ -110,13 +110,13 @@ export declare namespace CreateInfraBillingHistoryRecordCommand {
|
|
110
110
|
records: {
|
111
111
|
uuid: string;
|
112
112
|
providerUuid: string;
|
113
|
-
amount: number;
|
114
|
-
billedAt: string;
|
115
113
|
provider: {
|
116
114
|
uuid: string;
|
117
115
|
name: string;
|
118
116
|
faviconLink: string | null;
|
119
117
|
};
|
118
|
+
amount: number;
|
119
|
+
billedAt: string;
|
120
120
|
}[];
|
121
121
|
};
|
122
122
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create-bill-record.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/create-bill-record.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,sCAAsC,CAAC;IAC7C,MAAM,GAAG,8BAAgD,CAAC;IAC1D,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"create-bill-record.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/create-bill-record.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,sCAAsC,CAAC;IAC7C,MAAM,GAAG,8BAAgD,CAAC;IAC1D,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;MAUxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -19,7 +19,6 @@ var CreateInfraBillingHistoryRecordCommand;
|
|
19
19
|
})
|
20
20
|
.datetime({ message: 'Invalid date format', offset: true, local: true })
|
21
21
|
.transform((str) => new Date(str))
|
22
|
-
.optional()
|
23
22
|
.describe('Billing date. Format: 2025-01-17T15:38:45.065Z'),
|
24
23
|
});
|
25
24
|
CreateInfraBillingHistoryRecordCommand.ResponseSchema = zod_1.z.object({
|
@@ -0,0 +1,364 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace CreateInfraBillingNodeCommand {
|
3
|
+
const url: "/api/infra-billing/nodes";
|
4
|
+
const TSQ_url: "/api/infra-billing/nodes";
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
6
|
+
const RequestSchema: z.ZodObject<{
|
7
|
+
providerUuid: z.ZodString;
|
8
|
+
nodeUuid: z.ZodString;
|
9
|
+
nextBillingAt: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
11
|
+
nodeUuid: string;
|
12
|
+
providerUuid: string;
|
13
|
+
nextBillingAt?: Date | undefined;
|
14
|
+
}, {
|
15
|
+
nodeUuid: string;
|
16
|
+
providerUuid: string;
|
17
|
+
nextBillingAt?: string | undefined;
|
18
|
+
}>;
|
19
|
+
type Request = z.infer<typeof RequestSchema>;
|
20
|
+
const ResponseSchema: z.ZodObject<{
|
21
|
+
response: z.ZodObject<{
|
22
|
+
totalBillingNodes: z.ZodNumber;
|
23
|
+
billingNodes: z.ZodArray<z.ZodObject<{
|
24
|
+
uuid: z.ZodString;
|
25
|
+
nodeUuid: z.ZodString;
|
26
|
+
providerUuid: z.ZodString;
|
27
|
+
provider: z.ZodObject<Omit<{
|
28
|
+
uuid: z.ZodString;
|
29
|
+
name: z.ZodString;
|
30
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
31
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
32
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
33
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
34
|
+
}, "createdAt" | "updatedAt" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
|
35
|
+
uuid: string;
|
36
|
+
name: string;
|
37
|
+
}, {
|
38
|
+
uuid: string;
|
39
|
+
name: string;
|
40
|
+
}>;
|
41
|
+
node: z.ZodObject<Pick<{
|
42
|
+
uuid: z.ZodString;
|
43
|
+
name: z.ZodString;
|
44
|
+
address: z.ZodString;
|
45
|
+
port: z.ZodNullable<z.ZodNumber>;
|
46
|
+
isConnected: z.ZodBoolean;
|
47
|
+
isDisabled: z.ZodBoolean;
|
48
|
+
isConnecting: z.ZodBoolean;
|
49
|
+
isNodeOnline: z.ZodBoolean;
|
50
|
+
isXrayRunning: z.ZodBoolean;
|
51
|
+
lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
52
|
+
lastStatusMessage: z.ZodNullable<z.ZodString>;
|
53
|
+
xrayVersion: z.ZodNullable<z.ZodString>;
|
54
|
+
xrayUptime: z.ZodString;
|
55
|
+
isTrafficTrackingActive: z.ZodBoolean;
|
56
|
+
trafficResetDay: z.ZodNullable<z.ZodNumber>;
|
57
|
+
trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
|
58
|
+
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
59
|
+
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
60
|
+
usersOnline: z.ZodNullable<z.ZodNumber>;
|
61
|
+
viewPosition: z.ZodNumber;
|
62
|
+
countryCode: z.ZodString;
|
63
|
+
consumptionMultiplier: z.ZodNumber;
|
64
|
+
cpuCount: z.ZodNullable<z.ZodNumber>;
|
65
|
+
cpuModel: z.ZodNullable<z.ZodString>;
|
66
|
+
totalRam: z.ZodNullable<z.ZodString>;
|
67
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
68
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
69
|
+
activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
|
70
|
+
activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
71
|
+
uuid: z.ZodString;
|
72
|
+
profileUuid: z.ZodString;
|
73
|
+
tag: z.ZodString;
|
74
|
+
type: z.ZodString;
|
75
|
+
network: z.ZodNullable<z.ZodString>;
|
76
|
+
security: z.ZodNullable<z.ZodString>;
|
77
|
+
port: z.ZodNullable<z.ZodNumber>;
|
78
|
+
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
80
|
+
type: string;
|
81
|
+
uuid: string;
|
82
|
+
profileUuid: string;
|
83
|
+
tag: string;
|
84
|
+
network: string | null;
|
85
|
+
security: string | null;
|
86
|
+
port: number | null;
|
87
|
+
rawInbound?: unknown;
|
88
|
+
}, {
|
89
|
+
type: string;
|
90
|
+
uuid: string;
|
91
|
+
profileUuid: string;
|
92
|
+
tag: string;
|
93
|
+
network: string | null;
|
94
|
+
security: string | null;
|
95
|
+
port: number | null;
|
96
|
+
rawInbound?: unknown;
|
97
|
+
}>, "many">>;
|
98
|
+
providerUuid: z.ZodNullable<z.ZodString>;
|
99
|
+
provider: z.ZodNullable<z.ZodObject<{
|
100
|
+
uuid: z.ZodString;
|
101
|
+
name: z.ZodString;
|
102
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
103
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
104
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
105
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
107
|
+
uuid: string;
|
108
|
+
createdAt: Date;
|
109
|
+
updatedAt: Date;
|
110
|
+
name: string;
|
111
|
+
faviconLink: string | null;
|
112
|
+
loginUrl: string | null;
|
113
|
+
}, {
|
114
|
+
uuid: string;
|
115
|
+
createdAt: string;
|
116
|
+
updatedAt: string;
|
117
|
+
name: string;
|
118
|
+
faviconLink: string | null;
|
119
|
+
loginUrl: string | null;
|
120
|
+
}>>;
|
121
|
+
}, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
|
122
|
+
uuid: string;
|
123
|
+
name: string;
|
124
|
+
countryCode: string;
|
125
|
+
}, {
|
126
|
+
uuid: string;
|
127
|
+
name: string;
|
128
|
+
countryCode: string;
|
129
|
+
}>;
|
130
|
+
nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
|
131
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
132
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
133
|
+
}, "strip", z.ZodTypeAny, {
|
134
|
+
uuid: string;
|
135
|
+
createdAt: Date;
|
136
|
+
updatedAt: Date;
|
137
|
+
nodeUuid: string;
|
138
|
+
providerUuid: string;
|
139
|
+
provider: {
|
140
|
+
uuid: string;
|
141
|
+
name: string;
|
142
|
+
};
|
143
|
+
node: {
|
144
|
+
uuid: string;
|
145
|
+
name: string;
|
146
|
+
countryCode: string;
|
147
|
+
};
|
148
|
+
nextBillingAt: Date;
|
149
|
+
}, {
|
150
|
+
uuid: string;
|
151
|
+
createdAt: string;
|
152
|
+
updatedAt: string;
|
153
|
+
nodeUuid: string;
|
154
|
+
providerUuid: string;
|
155
|
+
provider: {
|
156
|
+
uuid: string;
|
157
|
+
name: string;
|
158
|
+
};
|
159
|
+
node: {
|
160
|
+
uuid: string;
|
161
|
+
name: string;
|
162
|
+
countryCode: string;
|
163
|
+
};
|
164
|
+
nextBillingAt: string;
|
165
|
+
}>, "many">;
|
166
|
+
availableBillingNodes: z.ZodArray<z.ZodObject<Pick<{
|
167
|
+
uuid: z.ZodString;
|
168
|
+
name: z.ZodString;
|
169
|
+
address: z.ZodString;
|
170
|
+
port: z.ZodNullable<z.ZodNumber>;
|
171
|
+
isConnected: z.ZodBoolean;
|
172
|
+
isDisabled: z.ZodBoolean;
|
173
|
+
isConnecting: z.ZodBoolean;
|
174
|
+
isNodeOnline: z.ZodBoolean;
|
175
|
+
isXrayRunning: z.ZodBoolean;
|
176
|
+
lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
177
|
+
lastStatusMessage: z.ZodNullable<z.ZodString>;
|
178
|
+
xrayVersion: z.ZodNullable<z.ZodString>;
|
179
|
+
xrayUptime: z.ZodString;
|
180
|
+
isTrafficTrackingActive: z.ZodBoolean;
|
181
|
+
trafficResetDay: z.ZodNullable<z.ZodNumber>;
|
182
|
+
trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
|
183
|
+
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
184
|
+
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
185
|
+
usersOnline: z.ZodNullable<z.ZodNumber>;
|
186
|
+
viewPosition: z.ZodNumber;
|
187
|
+
countryCode: z.ZodString;
|
188
|
+
consumptionMultiplier: z.ZodNumber;
|
189
|
+
cpuCount: z.ZodNullable<z.ZodNumber>;
|
190
|
+
cpuModel: z.ZodNullable<z.ZodString>;
|
191
|
+
totalRam: z.ZodNullable<z.ZodString>;
|
192
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
193
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
194
|
+
activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
|
195
|
+
activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
196
|
+
uuid: z.ZodString;
|
197
|
+
profileUuid: z.ZodString;
|
198
|
+
tag: z.ZodString;
|
199
|
+
type: z.ZodString;
|
200
|
+
network: z.ZodNullable<z.ZodString>;
|
201
|
+
security: z.ZodNullable<z.ZodString>;
|
202
|
+
port: z.ZodNullable<z.ZodNumber>;
|
203
|
+
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
205
|
+
type: string;
|
206
|
+
uuid: string;
|
207
|
+
profileUuid: string;
|
208
|
+
tag: string;
|
209
|
+
network: string | null;
|
210
|
+
security: string | null;
|
211
|
+
port: number | null;
|
212
|
+
rawInbound?: unknown;
|
213
|
+
}, {
|
214
|
+
type: string;
|
215
|
+
uuid: string;
|
216
|
+
profileUuid: string;
|
217
|
+
tag: string;
|
218
|
+
network: string | null;
|
219
|
+
security: string | null;
|
220
|
+
port: number | null;
|
221
|
+
rawInbound?: unknown;
|
222
|
+
}>, "many">>;
|
223
|
+
providerUuid: z.ZodNullable<z.ZodString>;
|
224
|
+
provider: z.ZodNullable<z.ZodObject<{
|
225
|
+
uuid: z.ZodString;
|
226
|
+
name: z.ZodString;
|
227
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
228
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
229
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
230
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
231
|
+
}, "strip", z.ZodTypeAny, {
|
232
|
+
uuid: string;
|
233
|
+
createdAt: Date;
|
234
|
+
updatedAt: Date;
|
235
|
+
name: string;
|
236
|
+
faviconLink: string | null;
|
237
|
+
loginUrl: string | null;
|
238
|
+
}, {
|
239
|
+
uuid: string;
|
240
|
+
createdAt: string;
|
241
|
+
updatedAt: string;
|
242
|
+
name: string;
|
243
|
+
faviconLink: string | null;
|
244
|
+
loginUrl: string | null;
|
245
|
+
}>>;
|
246
|
+
}, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
|
247
|
+
uuid: string;
|
248
|
+
name: string;
|
249
|
+
countryCode: string;
|
250
|
+
}, {
|
251
|
+
uuid: string;
|
252
|
+
name: string;
|
253
|
+
countryCode: string;
|
254
|
+
}>, "many">;
|
255
|
+
totalAvailableBillingNodes: z.ZodNumber;
|
256
|
+
}, "strip", z.ZodTypeAny, {
|
257
|
+
billingNodes: {
|
258
|
+
uuid: string;
|
259
|
+
createdAt: Date;
|
260
|
+
updatedAt: Date;
|
261
|
+
nodeUuid: string;
|
262
|
+
providerUuid: string;
|
263
|
+
provider: {
|
264
|
+
uuid: string;
|
265
|
+
name: string;
|
266
|
+
};
|
267
|
+
node: {
|
268
|
+
uuid: string;
|
269
|
+
name: string;
|
270
|
+
countryCode: string;
|
271
|
+
};
|
272
|
+
nextBillingAt: Date;
|
273
|
+
}[];
|
274
|
+
totalBillingNodes: number;
|
275
|
+
availableBillingNodes: {
|
276
|
+
uuid: string;
|
277
|
+
name: string;
|
278
|
+
countryCode: string;
|
279
|
+
}[];
|
280
|
+
totalAvailableBillingNodes: number;
|
281
|
+
}, {
|
282
|
+
billingNodes: {
|
283
|
+
uuid: string;
|
284
|
+
createdAt: string;
|
285
|
+
updatedAt: string;
|
286
|
+
nodeUuid: string;
|
287
|
+
providerUuid: string;
|
288
|
+
provider: {
|
289
|
+
uuid: string;
|
290
|
+
name: string;
|
291
|
+
};
|
292
|
+
node: {
|
293
|
+
uuid: string;
|
294
|
+
name: string;
|
295
|
+
countryCode: string;
|
296
|
+
};
|
297
|
+
nextBillingAt: string;
|
298
|
+
}[];
|
299
|
+
totalBillingNodes: number;
|
300
|
+
availableBillingNodes: {
|
301
|
+
uuid: string;
|
302
|
+
name: string;
|
303
|
+
countryCode: string;
|
304
|
+
}[];
|
305
|
+
totalAvailableBillingNodes: number;
|
306
|
+
}>;
|
307
|
+
}, "strip", z.ZodTypeAny, {
|
308
|
+
response: {
|
309
|
+
billingNodes: {
|
310
|
+
uuid: string;
|
311
|
+
createdAt: Date;
|
312
|
+
updatedAt: Date;
|
313
|
+
nodeUuid: string;
|
314
|
+
providerUuid: string;
|
315
|
+
provider: {
|
316
|
+
uuid: string;
|
317
|
+
name: string;
|
318
|
+
};
|
319
|
+
node: {
|
320
|
+
uuid: string;
|
321
|
+
name: string;
|
322
|
+
countryCode: string;
|
323
|
+
};
|
324
|
+
nextBillingAt: Date;
|
325
|
+
}[];
|
326
|
+
totalBillingNodes: number;
|
327
|
+
availableBillingNodes: {
|
328
|
+
uuid: string;
|
329
|
+
name: string;
|
330
|
+
countryCode: string;
|
331
|
+
}[];
|
332
|
+
totalAvailableBillingNodes: number;
|
333
|
+
};
|
334
|
+
}, {
|
335
|
+
response: {
|
336
|
+
billingNodes: {
|
337
|
+
uuid: string;
|
338
|
+
createdAt: string;
|
339
|
+
updatedAt: string;
|
340
|
+
nodeUuid: string;
|
341
|
+
providerUuid: string;
|
342
|
+
provider: {
|
343
|
+
uuid: string;
|
344
|
+
name: string;
|
345
|
+
};
|
346
|
+
node: {
|
347
|
+
uuid: string;
|
348
|
+
name: string;
|
349
|
+
countryCode: string;
|
350
|
+
};
|
351
|
+
nextBillingAt: string;
|
352
|
+
}[];
|
353
|
+
totalBillingNodes: number;
|
354
|
+
availableBillingNodes: {
|
355
|
+
uuid: string;
|
356
|
+
name: string;
|
357
|
+
countryCode: string;
|
358
|
+
}[];
|
359
|
+
totalAvailableBillingNodes: number;
|
360
|
+
};
|
361
|
+
}>;
|
362
|
+
type Response = z.infer<typeof ResponseSchema>;
|
363
|
+
}
|
364
|
+
//# sourceMappingURL=create-billing-node.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"create-billing-node.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/create-billing-node.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,4BAA6C,CAAC;IACvD,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;MAWxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -0,0 +1,33 @@
|
|
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
|
+
}),
|
32
|
+
});
|
33
|
+
})(CreateInfraBillingNodeCommand || (exports.CreateInfraBillingNodeCommand = CreateInfraBillingNodeCommand = {}));
|
@@ -37,23 +37,23 @@ export declare namespace DeleteInfraBillingHistoryRecordCommand {
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
38
38
|
uuid: string;
|
39
39
|
providerUuid: string;
|
40
|
-
amount: number;
|
41
|
-
billedAt: Date;
|
42
40
|
provider: {
|
43
41
|
uuid: string;
|
44
42
|
name: string;
|
45
43
|
faviconLink: string | null;
|
46
44
|
};
|
45
|
+
amount: number;
|
46
|
+
billedAt: Date;
|
47
47
|
}, {
|
48
48
|
uuid: string;
|
49
49
|
providerUuid: string;
|
50
|
-
amount: number;
|
51
|
-
billedAt: string;
|
52
50
|
provider: {
|
53
51
|
uuid: string;
|
54
52
|
name: string;
|
55
53
|
faviconLink: string | null;
|
56
54
|
};
|
55
|
+
amount: number;
|
56
|
+
billedAt: string;
|
57
57
|
}>, "many">;
|
58
58
|
total: z.ZodNumber;
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
@@ -61,26 +61,26 @@ export declare namespace DeleteInfraBillingHistoryRecordCommand {
|
|
61
61
|
records: {
|
62
62
|
uuid: string;
|
63
63
|
providerUuid: string;
|
64
|
-
amount: number;
|
65
|
-
billedAt: Date;
|
66
64
|
provider: {
|
67
65
|
uuid: string;
|
68
66
|
name: string;
|
69
67
|
faviconLink: string | null;
|
70
68
|
};
|
69
|
+
amount: number;
|
70
|
+
billedAt: Date;
|
71
71
|
}[];
|
72
72
|
}, {
|
73
73
|
total: number;
|
74
74
|
records: {
|
75
75
|
uuid: string;
|
76
76
|
providerUuid: string;
|
77
|
-
amount: number;
|
78
|
-
billedAt: string;
|
79
77
|
provider: {
|
80
78
|
uuid: string;
|
81
79
|
name: string;
|
82
80
|
faviconLink: string | null;
|
83
81
|
};
|
82
|
+
amount: number;
|
83
|
+
billedAt: string;
|
84
84
|
}[];
|
85
85
|
}>;
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
@@ -89,13 +89,13 @@ export declare namespace DeleteInfraBillingHistoryRecordCommand {
|
|
89
89
|
records: {
|
90
90
|
uuid: string;
|
91
91
|
providerUuid: string;
|
92
|
-
amount: number;
|
93
|
-
billedAt: Date;
|
94
92
|
provider: {
|
95
93
|
uuid: string;
|
96
94
|
name: string;
|
97
95
|
faviconLink: string | null;
|
98
96
|
};
|
97
|
+
amount: number;
|
98
|
+
billedAt: Date;
|
99
99
|
}[];
|
100
100
|
};
|
101
101
|
}, {
|
@@ -104,13 +104,13 @@ export declare namespace DeleteInfraBillingHistoryRecordCommand {
|
|
104
104
|
records: {
|
105
105
|
uuid: string;
|
106
106
|
providerUuid: string;
|
107
|
-
amount: number;
|
108
|
-
billedAt: string;
|
109
107
|
provider: {
|
110
108
|
uuid: string;
|
111
109
|
name: string;
|
112
110
|
faviconLink: string | null;
|
113
111
|
};
|
112
|
+
amount: number;
|
113
|
+
billedAt: string;
|
114
114
|
}[];
|
115
115
|
};
|
116
116
|
}>;
|