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

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.
@@ -13,7 +13,8 @@ export declare namespace DeleteInfraBillingNodeByUuidCommand {
13
13
  type Request = z.infer<typeof RequestSchema>;
14
14
  const ResponseSchema: z.ZodObject<{
15
15
  response: z.ZodObject<{
16
- nodes: z.ZodArray<z.ZodObject<{
16
+ totalBillingNodes: z.ZodNumber;
17
+ billingNodes: z.ZodArray<z.ZodObject<{
17
18
  uuid: z.ZodString;
18
19
  nodeUuid: z.ZodString;
19
20
  providerUuid: z.ZodString;
@@ -156,7 +157,7 @@ export declare namespace DeleteInfraBillingNodeByUuidCommand {
156
157
  };
157
158
  nextBillingAt: string;
158
159
  }>, "many">;
159
- availableNodes: z.ZodArray<z.ZodObject<Pick<{
160
+ availableBillingNodes: z.ZodArray<z.ZodObject<Pick<{
160
161
  uuid: z.ZodString;
161
162
  name: z.ZodString;
162
163
  address: z.ZodString;
@@ -245,9 +246,9 @@ export declare namespace DeleteInfraBillingNodeByUuidCommand {
245
246
  name: string;
246
247
  countryCode: string;
247
248
  }>, "many">;
248
- total: z.ZodNumber;
249
+ totalAvailableBillingNodes: z.ZodNumber;
249
250
  }, "strip", z.ZodTypeAny, {
250
- nodes: {
251
+ billingNodes: {
251
252
  uuid: string;
252
253
  createdAt: Date;
253
254
  updatedAt: Date;
@@ -264,14 +265,15 @@ export declare namespace DeleteInfraBillingNodeByUuidCommand {
264
265
  };
265
266
  nextBillingAt: Date;
266
267
  }[];
267
- total: number;
268
- availableNodes: {
268
+ totalBillingNodes: number;
269
+ availableBillingNodes: {
269
270
  uuid: string;
270
271
  name: string;
271
272
  countryCode: string;
272
273
  }[];
274
+ totalAvailableBillingNodes: number;
273
275
  }, {
274
- nodes: {
276
+ billingNodes: {
275
277
  uuid: string;
276
278
  createdAt: string;
277
279
  updatedAt: string;
@@ -288,16 +290,17 @@ export declare namespace DeleteInfraBillingNodeByUuidCommand {
288
290
  };
289
291
  nextBillingAt: string;
290
292
  }[];
291
- total: number;
292
- availableNodes: {
293
+ totalBillingNodes: number;
294
+ availableBillingNodes: {
293
295
  uuid: string;
294
296
  name: string;
295
297
  countryCode: string;
296
298
  }[];
299
+ totalAvailableBillingNodes: number;
297
300
  }>;
298
301
  }, "strip", z.ZodTypeAny, {
299
302
  response: {
300
- nodes: {
303
+ billingNodes: {
301
304
  uuid: string;
302
305
  createdAt: Date;
303
306
  updatedAt: Date;
@@ -314,16 +317,17 @@ export declare namespace DeleteInfraBillingNodeByUuidCommand {
314
317
  };
315
318
  nextBillingAt: Date;
316
319
  }[];
317
- total: number;
318
- availableNodes: {
320
+ totalBillingNodes: number;
321
+ availableBillingNodes: {
319
322
  uuid: string;
320
323
  name: string;
321
324
  countryCode: string;
322
325
  }[];
326
+ totalAvailableBillingNodes: number;
323
327
  };
324
328
  }, {
325
329
  response: {
326
- nodes: {
330
+ billingNodes: {
327
331
  uuid: string;
328
332
  createdAt: string;
329
333
  updatedAt: string;
@@ -340,12 +344,13 @@ export declare namespace DeleteInfraBillingNodeByUuidCommand {
340
344
  };
341
345
  nextBillingAt: string;
342
346
  }[];
343
- total: number;
344
- availableNodes: {
347
+ totalBillingNodes: number;
348
+ availableBillingNodes: {
345
349
  uuid: string;
346
350
  name: string;
347
351
  countryCode: string;
348
352
  }[];
353
+ totalAvailableBillingNodes: number;
349
354
  };
350
355
  }>;
351
356
  type Response = z.infer<typeof ResponseSchema>;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAMzB,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"}
@@ -15,9 +15,10 @@ var DeleteInfraBillingNodeByUuidCommand;
15
15
  });
16
16
  DeleteInfraBillingNodeByUuidCommand.ResponseSchema = zod_1.z.object({
17
17
  response: zod_1.z.object({
18
- nodes: zod_1.z.array(models_1.InfraBillingNodeSchema),
19
- availableNodes: zod_1.z.array(models_1.InfraBillingAvailableNodeSchema),
20
- total: zod_1.z.number(),
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(),
21
22
  }),
22
23
  });
23
24
  })(DeleteInfraBillingNodeByUuidCommand || (exports.DeleteInfraBillingNodeByUuidCommand = DeleteInfraBillingNodeByUuidCommand = {}));
@@ -714,5 +714,10 @@ export declare const ERRORS: {
714
714
  readonly message: "Create infra billing node error";
715
715
  readonly httpCode: 500;
716
716
  };
717
+ readonly DELETE_INFRA_BILLING_NODE_BY_UUID_ERROR: {
718
+ readonly code: "A138";
719
+ readonly message: "Delete infra billing node by UUID error";
720
+ readonly httpCode: 500;
721
+ };
717
722
  };
718
723
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqY3B,CAAC"}
@@ -685,4 +685,9 @@ exports.ERRORS = {
685
685
  message: 'Create infra billing node error',
686
686
  httpCode: 500,
687
687
  },
688
+ DELETE_INFRA_BILLING_NODE_BY_UUID_ERROR: {
689
+ code: 'A138',
690
+ message: 'Delete infra billing node by UUID error',
691
+ httpCode: 500,
692
+ },
688
693
  };
@@ -15,9 +15,10 @@ var DeleteInfraBillingNodeByUuidCommand;
15
15
  });
16
16
  DeleteInfraBillingNodeByUuidCommand.ResponseSchema = zod_1.z.object({
17
17
  response: zod_1.z.object({
18
- nodes: zod_1.z.array(models_1.InfraBillingNodeSchema),
19
- availableNodes: zod_1.z.array(models_1.InfraBillingAvailableNodeSchema),
20
- total: zod_1.z.number(),
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(),
21
22
  }),
22
23
  });
23
24
  })(DeleteInfraBillingNodeByUuidCommand || (exports.DeleteInfraBillingNodeByUuidCommand = DeleteInfraBillingNodeByUuidCommand = {}));
@@ -685,4 +685,9 @@ exports.ERRORS = {
685
685
  message: 'Create infra billing node error',
686
686
  httpCode: 500,
687
687
  },
688
+ DELETE_INFRA_BILLING_NODE_BY_UUID_ERROR: {
689
+ code: 'A138',
690
+ message: 'Delete infra billing node by UUID error',
691
+ httpCode: 500,
692
+ },
688
693
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.0.0-alpha.14",
3
+ "version": "2.0.0-alpha.15",
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.",