core-mb 1.0.5 → 1.0.6

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.
@@ -4,3 +4,4 @@ import { ValidationOptions } from "class-validator";
4
4
  * (e.g., base64 or hex encoded string). Adjust pattern as needed.
5
5
  */
6
6
  export declare function IsEncryptedPhone(validationOptions?: ValidationOptions): (object: Object, propertyName: string) => void;
7
+ export { IsString, IsInt, IsBoolean, IsOptional, IsNotEmpty, IsEmail, IsUUID, IsDateString, IsArray, ValidateNested, Min, Max, Length, Matches, } from "class-validator";
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Matches = exports.Length = exports.Max = exports.Min = exports.ValidateNested = exports.IsArray = exports.IsDateString = exports.IsUUID = exports.IsEmail = exports.IsNotEmpty = exports.IsOptional = exports.IsBoolean = exports.IsInt = exports.IsString = void 0;
3
4
  exports.IsEncryptedPhone = IsEncryptedPhone;
4
5
  const class_validator_1 = require("class-validator");
5
6
  /**
@@ -31,3 +32,18 @@ function IsEncryptedPhone(validationOptions) {
31
32
  });
32
33
  };
33
34
  }
35
+ var class_validator_2 = require("class-validator");
36
+ Object.defineProperty(exports, "IsString", { enumerable: true, get: function () { return class_validator_2.IsString; } });
37
+ Object.defineProperty(exports, "IsInt", { enumerable: true, get: function () { return class_validator_2.IsInt; } });
38
+ Object.defineProperty(exports, "IsBoolean", { enumerable: true, get: function () { return class_validator_2.IsBoolean; } });
39
+ Object.defineProperty(exports, "IsOptional", { enumerable: true, get: function () { return class_validator_2.IsOptional; } });
40
+ Object.defineProperty(exports, "IsNotEmpty", { enumerable: true, get: function () { return class_validator_2.IsNotEmpty; } });
41
+ Object.defineProperty(exports, "IsEmail", { enumerable: true, get: function () { return class_validator_2.IsEmail; } });
42
+ Object.defineProperty(exports, "IsUUID", { enumerable: true, get: function () { return class_validator_2.IsUUID; } });
43
+ Object.defineProperty(exports, "IsDateString", { enumerable: true, get: function () { return class_validator_2.IsDateString; } });
44
+ Object.defineProperty(exports, "IsArray", { enumerable: true, get: function () { return class_validator_2.IsArray; } });
45
+ Object.defineProperty(exports, "ValidateNested", { enumerable: true, get: function () { return class_validator_2.ValidateNested; } });
46
+ Object.defineProperty(exports, "Min", { enumerable: true, get: function () { return class_validator_2.Min; } });
47
+ Object.defineProperty(exports, "Max", { enumerable: true, get: function () { return class_validator_2.Max; } });
48
+ Object.defineProperty(exports, "Length", { enumerable: true, get: function () { return class_validator_2.Length; } });
49
+ Object.defineProperty(exports, "Matches", { enumerable: true, get: function () { return class_validator_2.Matches; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "core-mb",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Core utility functions for the MB ecosystem in TypeScript",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -34,3 +34,20 @@ export function IsEncryptedPhone(validationOptions?: ValidationOptions) {
34
34
  });
35
35
  };
36
36
  }
37
+
38
+ export {
39
+ IsString,
40
+ IsInt,
41
+ IsBoolean,
42
+ IsOptional,
43
+ IsNotEmpty,
44
+ IsEmail,
45
+ IsUUID,
46
+ IsDateString,
47
+ IsArray,
48
+ ValidateNested,
49
+ Min,
50
+ Max,
51
+ Length,
52
+ Matches,
53
+ } from "class-validator";