@remnawave/backend-contract 2.0.0-alpha.35 → 2.0.0-alpha.36

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.
@@ -754,5 +754,10 @@ export declare const ERRORS: {
754
754
  readonly message: "This name is reserved by Remnawave. Please use a different name.";
755
755
  readonly httpCode: 400;
756
756
  };
757
+ readonly UPDATE_CONFIG_PROFILE_ERROR: {
758
+ readonly code: "A146";
759
+ readonly message: "Update config profile error";
760
+ readonly httpCode: 500;
761
+ };
757
762
  };
758
763
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6a3B,CAAC"}
@@ -725,4 +725,9 @@ exports.ERRORS = {
725
725
  message: 'This name is reserved by Remnawave. Please use a different name.',
726
726
  httpCode: 400,
727
727
  },
728
+ UPDATE_CONFIG_PROFILE_ERROR: {
729
+ code: 'A146',
730
+ message: 'Update config profile error',
731
+ httpCode: 500,
732
+ },
728
733
  };
@@ -1,3 +1,3 @@
1
1
  export declare const REMNAWAVE_CLIENT_TYPE_HEADER = "X-Remnawave-Client-Type";
2
2
  export declare const REMNAWAVE_CLIENT_TYPE_BROWSER = "browser";
3
- //# sourceMappingURL=headers.contants.d.ts.map
3
+ //# sourceMappingURL=headers.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"headers.constants.d.ts","sourceRoot":"","sources":["../../../../constants/headers/headers.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AAEtE,eAAO,MAAM,6BAA6B,YAAY,CAAC"}
@@ -1,2 +1,2 @@
1
- export * from './headers.contants';
1
+ export * from './headers.constants';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/headers/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/headers/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./headers.contants"), exports);
17
+ __exportStar(require("./headers.constants"), exports);
@@ -20,7 +20,7 @@ exports.InfraProviderSchema = zod_1.z.object({
20
20
  totalBills: zod_1.z.number(),
21
21
  }),
22
22
  billingNodes: zod_1.z.array(zod_1.z.object({
23
- nodeUuid: zod_1.z.string(),
23
+ nodeUuid: zod_1.z.string().uuid(),
24
24
  name: zod_1.z.string(),
25
25
  countryCode: zod_1.z.string(),
26
26
  })),
@@ -725,4 +725,9 @@ exports.ERRORS = {
725
725
  message: 'This name is reserved by Remnawave. Please use a different name.',
726
726
  httpCode: 400,
727
727
  },
728
+ UPDATE_CONFIG_PROFILE_ERROR: {
729
+ code: 'A146',
730
+ message: 'Update config profile error',
731
+ httpCode: 500,
732
+ },
728
733
  };
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./headers.contants"), exports);
17
+ __exportStar(require("./headers.constants"), exports);
@@ -20,7 +20,7 @@ exports.InfraProviderSchema = zod_1.z.object({
20
20
  totalBills: zod_1.z.number(),
21
21
  }),
22
22
  billingNodes: zod_1.z.array(zod_1.z.object({
23
- nodeUuid: zod_1.z.string(),
23
+ nodeUuid: zod_1.z.string().uuid(),
24
24
  name: zod_1.z.string(),
25
25
  countryCode: zod_1.z.string(),
26
26
  })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.0.0-alpha.35",
3
+ "version": "2.0.0-alpha.36",
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.",
@@ -1 +0,0 @@
1
- {"version":3,"file":"headers.contants.d.ts","sourceRoot":"","sources":["../../../../constants/headers/headers.contants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AAEtE,eAAO,MAAM,6BAA6B,YAAY,CAAC"}