@remnawave/backend-contract 2.0.0-alpha.15 → 2.0.0-alpha.17

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.
Files changed (23) hide show
  1. package/build/backend/api/controllers/infra-billing.d.ts +1 -1
  2. package/build/backend/api/controllers/infra-billing.d.ts.map +1 -1
  3. package/build/backend/api/controllers/infra-billing.js +1 -1
  4. package/build/backend/api/routes.d.ts +1 -1
  5. package/build/backend/api/routes.d.ts.map +1 -1
  6. package/build/backend/api/routes.js +1 -1
  7. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +18 -2
  8. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -1
  9. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +18 -2
  10. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -1
  11. package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts +18 -2
  12. package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts.map +1 -1
  13. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +23 -7
  14. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -1
  15. package/build/backend/commands/infra-billing/update-billing-node.command.js +3 -4
  16. package/build/backend/models/infra-billing-node.schema.d.ts +10 -2
  17. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -1
  18. package/build/backend/models/infra-billing-node.schema.js +3 -3
  19. package/build/frontend/api/controllers/infra-billing.js +1 -1
  20. package/build/frontend/api/routes.js +1 -1
  21. package/build/frontend/commands/infra-billing/update-billing-node.command.js +3 -4
  22. package/build/frontend/models/infra-billing-node.schema.js +3 -3
  23. package/package.json +1 -1
@@ -7,7 +7,7 @@ export declare const INFRA_BILLING_ROUTES: {
7
7
  readonly GET_PROVIDER_BY_UUID: (uuid: string) => string;
8
8
  readonly GET_BILLING_NODES: "nodes";
9
9
  readonly CREATE_BILLING_NODE: "nodes";
10
- readonly UPDATE_BILLING_NODE: (uuid: string) => string;
10
+ readonly UPDATE_BILLING_NODE: "nodes";
11
11
  readonly DELETE_BILLING_NODE: (uuid: string) => string;
12
12
  readonly GET_BILLING_HISTORY: "history";
13
13
  readonly CREATE_BILLING_HISTORY: "history";
@@ -1 +1 @@
1
- {"version":3,"file":"infra-billing.d.ts","sourceRoot":"","sources":["../../../../api/controllers/infra-billing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAG,eAAwB,CAAC;AAEjE,eAAO,MAAM,oBAAoB;;;;qCAIL,MAAM;0CACD,MAAM;;;yCAIP,MAAM;yCACN,MAAM;;;4CAIH,MAAM;CAM/B,CAAC"}
1
+ {"version":3,"file":"infra-billing.d.ts","sourceRoot":"","sources":["../../../../api/controllers/infra-billing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAG,eAAwB,CAAC;AAEjE,eAAO,MAAM,oBAAoB;;;;qCAIL,MAAM;0CACD,MAAM;;;;yCAKP,MAAM;;;4CAIH,MAAM;CAM/B,CAAC"}
@@ -10,7 +10,7 @@ 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: (uuid) => `nodes/${uuid}`, // Update node billing by uuid // patch
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
@@ -150,7 +150,7 @@ export declare const REST_API: {
150
150
  readonly GET_PROVIDER_BY_UUID: (uuid: string) => string;
151
151
  readonly GET_BILLING_NODES: "/api/infra-billing/nodes";
152
152
  readonly CREATE_BILLING_NODE: "/api/infra-billing/nodes";
153
- readonly UPDATE_BILLING_NODE: (uuid: string) => string;
153
+ readonly UPDATE_BILLING_NODE: "/api/infra-billing/nodes";
154
154
  readonly DELETE_BILLING_NODE: (uuid: string) => string;
155
155
  readonly GET_BILLING_HISTORY: "/api/infra-billing/history";
156
156
  readonly CREATE_BILLING_HISTORY: "/api/infra-billing/history";
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;gCAYE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;;;;;iDAUM,MAAM;;;;;;;;gCAWvB,MAAM;qCAGD,MAAM;0CAED,MAAM;;qCAIX,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;6CAOV,MAAM;0CAIT,MAAM;2DAIW,MAAM;+CAIlB,MAAM;oCAIjB,MAAM;gCAIV,MAAM;;;;;;;;;;;;;;;gDAmBU,MAAM;;;;;;;kCAWpB,MAAM;0CAEE,MAAM;uCAET,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;qCAuBD,MAAM;;;;;;;;;mDAYQ,MAAM;;;;;;0CASf,MAAM;;;;;;;qCAUX,MAAM;gCAIX,MAAM;sDAIgB,MAAM;;;;;;;qCAUvB,MAAM;gCAIX,MAAM;;;;;;yCAUG,MAAM;8CAED,MAAM;;;6CAKP,MAAM;6CAEN,MAAM;;;gDAKH,MAAM;;CAGnC,CAAC"}
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;gCAYE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;;;;;iDAUM,MAAM;;;;;;;;gCAWvB,MAAM;qCAGD,MAAM;0CAED,MAAM;;qCAIX,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;6CAOV,MAAM;0CAIT,MAAM;2DAIW,MAAM;+CAIlB,MAAM;oCAIjB,MAAM;gCAIV,MAAM;;;;;;;;;;;;;;;gDAmBU,MAAM;;;;;;;kCAWpB,MAAM;0CAEE,MAAM;uCAET,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;qCAuBD,MAAM;;;;;;;;;mDAYQ,MAAM;;;;;;0CASf,MAAM;;;;;;;qCAUX,MAAM;gCAIX,MAAM;sDAIgB,MAAM;;;;;;;qCAUvB,MAAM;gCAIX,MAAM;;;;;;yCAUG,MAAM;8CAED,MAAM;;;;6CAMP,MAAM;;;gDAKH,MAAM;;CAGnC,CAAC"}
@@ -187,7 +187,7 @@ exports.REST_API = {
187
187
  GET_PROVIDER_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_PROVIDER_BY_UUID(uuid)}`,
188
188
  GET_BILLING_NODES: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_BILLING_NODES}`,
189
189
  CREATE_BILLING_NODE: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_BILLING_NODE}`,
190
- UPDATE_BILLING_NODE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.UPDATE_BILLING_NODE(uuid)}`,
190
+ UPDATE_BILLING_NODE: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.UPDATE_BILLING_NODE}`,
191
191
  DELETE_BILLING_NODE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_BILLING_NODE(uuid)}`,
192
192
  GET_BILLING_HISTORY: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_BILLING_HISTORY}`,
193
193
  CREATE_BILLING_HISTORY: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_BILLING_HISTORY}`,
@@ -24,19 +24,23 @@ export declare namespace CreateInfraBillingNodeCommand {
24
24
  uuid: z.ZodString;
25
25
  nodeUuid: z.ZodString;
26
26
  providerUuid: z.ZodString;
27
- provider: z.ZodObject<Omit<{
27
+ provider: z.ZodObject<Pick<{
28
28
  uuid: z.ZodString;
29
29
  name: z.ZodString;
30
30
  faviconLink: z.ZodNullable<z.ZodString>;
31
31
  loginUrl: z.ZodNullable<z.ZodString>;
32
32
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
33
33
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
34
- }, "createdAt" | "updatedAt" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
34
+ }, "uuid" | "name" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
35
35
  uuid: string;
36
36
  name: string;
37
+ faviconLink: string | null;
38
+ loginUrl: string | null;
37
39
  }, {
38
40
  uuid: string;
39
41
  name: string;
42
+ faviconLink: string | null;
43
+ loginUrl: string | null;
40
44
  }>;
41
45
  node: z.ZodObject<Pick<{
42
46
  uuid: z.ZodString;
@@ -139,6 +143,8 @@ export declare namespace CreateInfraBillingNodeCommand {
139
143
  provider: {
140
144
  uuid: string;
141
145
  name: string;
146
+ faviconLink: string | null;
147
+ loginUrl: string | null;
142
148
  };
143
149
  node: {
144
150
  uuid: string;
@@ -155,6 +161,8 @@ export declare namespace CreateInfraBillingNodeCommand {
155
161
  provider: {
156
162
  uuid: string;
157
163
  name: string;
164
+ faviconLink: string | null;
165
+ loginUrl: string | null;
158
166
  };
159
167
  node: {
160
168
  uuid: string;
@@ -263,6 +271,8 @@ export declare namespace CreateInfraBillingNodeCommand {
263
271
  provider: {
264
272
  uuid: string;
265
273
  name: string;
274
+ faviconLink: string | null;
275
+ loginUrl: string | null;
266
276
  };
267
277
  node: {
268
278
  uuid: string;
@@ -288,6 +298,8 @@ export declare namespace CreateInfraBillingNodeCommand {
288
298
  provider: {
289
299
  uuid: string;
290
300
  name: string;
301
+ faviconLink: string | null;
302
+ loginUrl: string | null;
291
303
  };
292
304
  node: {
293
305
  uuid: string;
@@ -315,6 +327,8 @@ export declare namespace CreateInfraBillingNodeCommand {
315
327
  provider: {
316
328
  uuid: string;
317
329
  name: string;
330
+ faviconLink: string | null;
331
+ loginUrl: string | null;
318
332
  };
319
333
  node: {
320
334
  uuid: string;
@@ -342,6 +356,8 @@ export declare namespace CreateInfraBillingNodeCommand {
342
356
  provider: {
343
357
  uuid: string;
344
358
  name: string;
359
+ faviconLink: string | null;
360
+ loginUrl: string | null;
345
361
  };
346
362
  node: {
347
363
  uuid: string;
@@ -1 +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"}
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"}
@@ -18,19 +18,23 @@ export declare namespace DeleteInfraBillingNodeByUuidCommand {
18
18
  uuid: z.ZodString;
19
19
  nodeUuid: z.ZodString;
20
20
  providerUuid: z.ZodString;
21
- provider: z.ZodObject<Omit<{
21
+ provider: z.ZodObject<Pick<{
22
22
  uuid: z.ZodString;
23
23
  name: z.ZodString;
24
24
  faviconLink: z.ZodNullable<z.ZodString>;
25
25
  loginUrl: z.ZodNullable<z.ZodString>;
26
26
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
27
27
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
28
- }, "createdAt" | "updatedAt" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
28
+ }, "uuid" | "name" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
29
29
  uuid: string;
30
30
  name: string;
31
+ faviconLink: string | null;
32
+ loginUrl: string | null;
31
33
  }, {
32
34
  uuid: string;
33
35
  name: string;
36
+ faviconLink: string | null;
37
+ loginUrl: string | null;
34
38
  }>;
35
39
  node: z.ZodObject<Pick<{
36
40
  uuid: z.ZodString;
@@ -133,6 +137,8 @@ export declare namespace DeleteInfraBillingNodeByUuidCommand {
133
137
  provider: {
134
138
  uuid: string;
135
139
  name: string;
140
+ faviconLink: string | null;
141
+ loginUrl: string | null;
136
142
  };
137
143
  node: {
138
144
  uuid: string;
@@ -149,6 +155,8 @@ export declare namespace DeleteInfraBillingNodeByUuidCommand {
149
155
  provider: {
150
156
  uuid: string;
151
157
  name: string;
158
+ faviconLink: string | null;
159
+ loginUrl: string | null;
152
160
  };
153
161
  node: {
154
162
  uuid: string;
@@ -257,6 +265,8 @@ export declare namespace DeleteInfraBillingNodeByUuidCommand {
257
265
  provider: {
258
266
  uuid: string;
259
267
  name: string;
268
+ faviconLink: string | null;
269
+ loginUrl: string | null;
260
270
  };
261
271
  node: {
262
272
  uuid: string;
@@ -282,6 +292,8 @@ export declare namespace DeleteInfraBillingNodeByUuidCommand {
282
292
  provider: {
283
293
  uuid: string;
284
294
  name: string;
295
+ faviconLink: string | null;
296
+ loginUrl: string | null;
285
297
  };
286
298
  node: {
287
299
  uuid: string;
@@ -309,6 +321,8 @@ export declare namespace DeleteInfraBillingNodeByUuidCommand {
309
321
  provider: {
310
322
  uuid: string;
311
323
  name: string;
324
+ faviconLink: string | null;
325
+ loginUrl: string | null;
312
326
  };
313
327
  node: {
314
328
  uuid: string;
@@ -336,6 +350,8 @@ export declare namespace DeleteInfraBillingNodeByUuidCommand {
336
350
  provider: {
337
351
  uuid: string;
338
352
  name: string;
353
+ faviconLink: string | null;
354
+ loginUrl: string | null;
339
355
  };
340
356
  node: {
341
357
  uuid: string;
@@ -1 +1 @@
1
- {"version":3,"file":"delete-billing-node-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/delete-billing-node-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,mCAAmC,CAAC;IAC1C,MAAM,GAAG,QAAsD,CAAC;IAChE,MAAM,OAAO,QAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,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"}
1
+ {"version":3,"file":"delete-billing-node-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/delete-billing-node-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,mCAAmC,CAAC;IAC1C,MAAM,GAAG,QAAsD,CAAC;IAChE,MAAM,OAAO,QAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,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"}
@@ -10,19 +10,23 @@ export declare namespace GetInfraBillingNodesCommand {
10
10
  uuid: z.ZodString;
11
11
  nodeUuid: z.ZodString;
12
12
  providerUuid: z.ZodString;
13
- provider: z.ZodObject<Omit<{
13
+ provider: z.ZodObject<Pick<{
14
14
  uuid: z.ZodString;
15
15
  name: z.ZodString;
16
16
  faviconLink: z.ZodNullable<z.ZodString>;
17
17
  loginUrl: z.ZodNullable<z.ZodString>;
18
18
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
19
19
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
20
- }, "createdAt" | "updatedAt" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
20
+ }, "uuid" | "name" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
21
21
  uuid: string;
22
22
  name: string;
23
+ faviconLink: string | null;
24
+ loginUrl: string | null;
23
25
  }, {
24
26
  uuid: string;
25
27
  name: string;
28
+ faviconLink: string | null;
29
+ loginUrl: string | null;
26
30
  }>;
27
31
  node: z.ZodObject<Pick<{
28
32
  uuid: z.ZodString;
@@ -125,6 +129,8 @@ export declare namespace GetInfraBillingNodesCommand {
125
129
  provider: {
126
130
  uuid: string;
127
131
  name: string;
132
+ faviconLink: string | null;
133
+ loginUrl: string | null;
128
134
  };
129
135
  node: {
130
136
  uuid: string;
@@ -141,6 +147,8 @@ export declare namespace GetInfraBillingNodesCommand {
141
147
  provider: {
142
148
  uuid: string;
143
149
  name: string;
150
+ faviconLink: string | null;
151
+ loginUrl: string | null;
144
152
  };
145
153
  node: {
146
154
  uuid: string;
@@ -249,6 +257,8 @@ export declare namespace GetInfraBillingNodesCommand {
249
257
  provider: {
250
258
  uuid: string;
251
259
  name: string;
260
+ faviconLink: string | null;
261
+ loginUrl: string | null;
252
262
  };
253
263
  node: {
254
264
  uuid: string;
@@ -274,6 +284,8 @@ export declare namespace GetInfraBillingNodesCommand {
274
284
  provider: {
275
285
  uuid: string;
276
286
  name: string;
287
+ faviconLink: string | null;
288
+ loginUrl: string | null;
277
289
  };
278
290
  node: {
279
291
  uuid: string;
@@ -301,6 +313,8 @@ export declare namespace GetInfraBillingNodesCommand {
301
313
  provider: {
302
314
  uuid: string;
303
315
  name: string;
316
+ faviconLink: string | null;
317
+ loginUrl: string | null;
304
318
  };
305
319
  node: {
306
320
  uuid: string;
@@ -328,6 +342,8 @@ export declare namespace GetInfraBillingNodesCommand {
328
342
  provider: {
329
343
  uuid: string;
330
344
  name: string;
345
+ faviconLink: string | null;
346
+ loginUrl: string | null;
331
347
  };
332
348
  node: {
333
349
  uuid: string;
@@ -1 +1 @@
1
- {"version":3,"file":"get-blling-nodes.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/get-blling-nodes.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,GAAG,4BAA2C,CAAC;IACrD,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-blling-nodes.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/get-blling-nodes.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,GAAG,4BAA2C,CAAC;IACrD,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1,17 +1,17 @@
1
1
  import { z } from 'zod';
2
2
  export declare namespace UpdateInfraBillingNodeCommand {
3
- const url: string;
4
- const TSQ_url: string;
3
+ const url: "/api/infra-billing/nodes";
4
+ const TSQ_url: "/api/infra-billing/nodes";
5
5
  const endpointDetails: import("../../constants").EndpointDetails;
6
6
  const RequestSchema: z.ZodObject<{
7
7
  uuid: z.ZodString;
8
- nextBillingAt: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
8
+ nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  uuid: string;
11
- nextBillingAt?: Date | undefined;
11
+ nextBillingAt: Date;
12
12
  }, {
13
13
  uuid: string;
14
- nextBillingAt?: string | undefined;
14
+ nextBillingAt: string;
15
15
  }>;
16
16
  type Request = z.infer<typeof RequestSchema>;
17
17
  const ResponseSchema: z.ZodObject<{
@@ -21,19 +21,23 @@ export declare namespace UpdateInfraBillingNodeCommand {
21
21
  uuid: z.ZodString;
22
22
  nodeUuid: z.ZodString;
23
23
  providerUuid: z.ZodString;
24
- provider: z.ZodObject<Omit<{
24
+ provider: z.ZodObject<Pick<{
25
25
  uuid: z.ZodString;
26
26
  name: z.ZodString;
27
27
  faviconLink: z.ZodNullable<z.ZodString>;
28
28
  loginUrl: z.ZodNullable<z.ZodString>;
29
29
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
30
30
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
31
- }, "createdAt" | "updatedAt" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
31
+ }, "uuid" | "name" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
32
32
  uuid: string;
33
33
  name: string;
34
+ faviconLink: string | null;
35
+ loginUrl: string | null;
34
36
  }, {
35
37
  uuid: string;
36
38
  name: string;
39
+ faviconLink: string | null;
40
+ loginUrl: string | null;
37
41
  }>;
38
42
  node: z.ZodObject<Pick<{
39
43
  uuid: z.ZodString;
@@ -136,6 +140,8 @@ export declare namespace UpdateInfraBillingNodeCommand {
136
140
  provider: {
137
141
  uuid: string;
138
142
  name: string;
143
+ faviconLink: string | null;
144
+ loginUrl: string | null;
139
145
  };
140
146
  node: {
141
147
  uuid: string;
@@ -152,6 +158,8 @@ export declare namespace UpdateInfraBillingNodeCommand {
152
158
  provider: {
153
159
  uuid: string;
154
160
  name: string;
161
+ faviconLink: string | null;
162
+ loginUrl: string | null;
155
163
  };
156
164
  node: {
157
165
  uuid: string;
@@ -260,6 +268,8 @@ export declare namespace UpdateInfraBillingNodeCommand {
260
268
  provider: {
261
269
  uuid: string;
262
270
  name: string;
271
+ faviconLink: string | null;
272
+ loginUrl: string | null;
263
273
  };
264
274
  node: {
265
275
  uuid: string;
@@ -285,6 +295,8 @@ export declare namespace UpdateInfraBillingNodeCommand {
285
295
  provider: {
286
296
  uuid: string;
287
297
  name: string;
298
+ faviconLink: string | null;
299
+ loginUrl: string | null;
288
300
  };
289
301
  node: {
290
302
  uuid: string;
@@ -312,6 +324,8 @@ export declare namespace UpdateInfraBillingNodeCommand {
312
324
  provider: {
313
325
  uuid: string;
314
326
  name: string;
327
+ faviconLink: string | null;
328
+ loginUrl: string | null;
315
329
  };
316
330
  node: {
317
331
  uuid: string;
@@ -339,6 +353,8 @@ export declare namespace UpdateInfraBillingNodeCommand {
339
353
  provider: {
340
354
  uuid: string;
341
355
  name: string;
356
+ faviconLink: string | null;
357
+ loginUrl: string | null;
342
358
  };
343
359
  node: {
344
360
  uuid: string;
@@ -1 +1 @@
1
- {"version":3,"file":"update-billing-node.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/update-billing-node.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,QAAsD,CAAC;IAChE,MAAM,OAAO,QAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;MASxB,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"}
1
+ {"version":3,"file":"update-billing-node.command.d.ts","sourceRoot":"","sources":["../../../../commands/infra-billing/update-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;;;;;;;;;MAQxB,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"}
@@ -7,9 +7,9 @@ const api_1 = require("../../api");
7
7
  const constants_1 = require("../../constants");
8
8
  var UpdateInfraBillingNodeCommand;
9
9
  (function (UpdateInfraBillingNodeCommand) {
10
- UpdateInfraBillingNodeCommand.url = api_1.REST_API.INFRA_BILLING.UPDATE_BILLING_NODE(':uuid');
10
+ UpdateInfraBillingNodeCommand.url = api_1.REST_API.INFRA_BILLING.UPDATE_BILLING_NODE;
11
11
  UpdateInfraBillingNodeCommand.TSQ_url = UpdateInfraBillingNodeCommand.url;
12
- UpdateInfraBillingNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.UPDATE_BILLING_NODE(':uuid'), 'patch', 'Update infra billing node');
12
+ UpdateInfraBillingNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.UPDATE_BILLING_NODE, 'patch', 'Update infra billing node');
13
13
  UpdateInfraBillingNodeCommand.RequestSchema = zod_1.z.object({
14
14
  uuid: zod_1.z.string().uuid(),
15
15
  nextBillingAt: zod_1.z
@@ -17,8 +17,7 @@ var UpdateInfraBillingNodeCommand;
17
17
  invalid_type_error: 'Invalid date format',
18
18
  })
19
19
  .datetime({ message: 'Invalid date format', offset: true, local: true })
20
- .transform((str) => new Date(str))
21
- .optional(),
20
+ .transform((str) => new Date(str)),
22
21
  });
23
22
  UpdateInfraBillingNodeCommand.ResponseSchema = zod_1.z.object({
24
23
  response: zod_1.z.object({
@@ -3,19 +3,23 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
3
3
  uuid: z.ZodString;
4
4
  nodeUuid: z.ZodString;
5
5
  providerUuid: z.ZodString;
6
- provider: z.ZodObject<Omit<{
6
+ provider: z.ZodObject<Pick<{
7
7
  uuid: z.ZodString;
8
8
  name: z.ZodString;
9
9
  faviconLink: z.ZodNullable<z.ZodString>;
10
10
  loginUrl: z.ZodNullable<z.ZodString>;
11
11
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
12
12
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
13
- }, "createdAt" | "updatedAt" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
13
+ }, "uuid" | "name" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
14
14
  uuid: string;
15
15
  name: string;
16
+ faviconLink: string | null;
17
+ loginUrl: string | null;
16
18
  }, {
17
19
  uuid: string;
18
20
  name: string;
21
+ faviconLink: string | null;
22
+ loginUrl: string | null;
19
23
  }>;
20
24
  node: z.ZodObject<Pick<{
21
25
  uuid: z.ZodString;
@@ -118,6 +122,8 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
118
122
  provider: {
119
123
  uuid: string;
120
124
  name: string;
125
+ faviconLink: string | null;
126
+ loginUrl: string | null;
121
127
  };
122
128
  node: {
123
129
  uuid: string;
@@ -134,6 +140,8 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
134
140
  provider: {
135
141
  uuid: string;
136
142
  name: string;
143
+ faviconLink: string | null;
144
+ loginUrl: string | null;
137
145
  };
138
146
  node: {
139
147
  uuid: string;
@@ -1 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BjC,CAAC"}
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"}
@@ -8,9 +8,9 @@ exports.InfraBillingNodeSchema = zod_1.z.object({
8
8
  uuid: zod_1.z.string().uuid(),
9
9
  nodeUuid: zod_1.z.string().uuid(),
10
10
  providerUuid: zod_1.z.string().uuid(),
11
- provider: infra_provider_schema_1.PartialInfraProviderSchema.omit({
12
- createdAt: true,
13
- updatedAt: true,
11
+ provider: infra_provider_schema_1.PartialInfraProviderSchema.pick({
12
+ uuid: true,
13
+ name: true,
14
14
  loginUrl: true,
15
15
  faviconLink: true,
16
16
  }),
@@ -10,7 +10,7 @@ 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: (uuid) => `nodes/${uuid}`, // Update node billing by uuid // patch
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
@@ -187,7 +187,7 @@ exports.REST_API = {
187
187
  GET_PROVIDER_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_PROVIDER_BY_UUID(uuid)}`,
188
188
  GET_BILLING_NODES: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_BILLING_NODES}`,
189
189
  CREATE_BILLING_NODE: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_BILLING_NODE}`,
190
- UPDATE_BILLING_NODE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.UPDATE_BILLING_NODE(uuid)}`,
190
+ UPDATE_BILLING_NODE: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.UPDATE_BILLING_NODE}`,
191
191
  DELETE_BILLING_NODE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.DELETE_BILLING_NODE(uuid)}`,
192
192
  GET_BILLING_HISTORY: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.GET_BILLING_HISTORY}`,
193
193
  CREATE_BILLING_HISTORY: `${exports.ROOT}/${CONTROLLERS.INFRA_BILLING_CONTROLLER}/${CONTROLLERS.INFRA_BILLING_ROUTES.CREATE_BILLING_HISTORY}`,
@@ -7,9 +7,9 @@ const api_1 = require("../../api");
7
7
  const constants_1 = require("../../constants");
8
8
  var UpdateInfraBillingNodeCommand;
9
9
  (function (UpdateInfraBillingNodeCommand) {
10
- UpdateInfraBillingNodeCommand.url = api_1.REST_API.INFRA_BILLING.UPDATE_BILLING_NODE(':uuid');
10
+ UpdateInfraBillingNodeCommand.url = api_1.REST_API.INFRA_BILLING.UPDATE_BILLING_NODE;
11
11
  UpdateInfraBillingNodeCommand.TSQ_url = UpdateInfraBillingNodeCommand.url;
12
- UpdateInfraBillingNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.UPDATE_BILLING_NODE(':uuid'), 'patch', 'Update infra billing node');
12
+ UpdateInfraBillingNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.UPDATE_BILLING_NODE, 'patch', 'Update infra billing node');
13
13
  UpdateInfraBillingNodeCommand.RequestSchema = zod_1.z.object({
14
14
  uuid: zod_1.z.string().uuid(),
15
15
  nextBillingAt: zod_1.z
@@ -17,8 +17,7 @@ var UpdateInfraBillingNodeCommand;
17
17
  invalid_type_error: 'Invalid date format',
18
18
  })
19
19
  .datetime({ message: 'Invalid date format', offset: true, local: true })
20
- .transform((str) => new Date(str))
21
- .optional(),
20
+ .transform((str) => new Date(str)),
22
21
  });
23
22
  UpdateInfraBillingNodeCommand.ResponseSchema = zod_1.z.object({
24
23
  response: zod_1.z.object({
@@ -8,9 +8,9 @@ exports.InfraBillingNodeSchema = zod_1.z.object({
8
8
  uuid: zod_1.z.string().uuid(),
9
9
  nodeUuid: zod_1.z.string().uuid(),
10
10
  providerUuid: zod_1.z.string().uuid(),
11
- provider: infra_provider_schema_1.PartialInfraProviderSchema.omit({
12
- createdAt: true,
13
- updatedAt: true,
11
+ provider: infra_provider_schema_1.PartialInfraProviderSchema.pick({
12
+ uuid: true,
13
+ name: true,
14
14
  loginUrl: true,
15
15
  faviconLink: true,
16
16
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.0.0-alpha.15",
3
+ "version": "2.0.0-alpha.17",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",