koatty_validation 1.6.1 β†’ 1.6.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.
package/.rollup.config.js CHANGED
@@ -29,9 +29,12 @@ export default [
29
29
  compilerOptions: {
30
30
  declaration: false,
31
31
  declarationMap: false,
32
- module: "ESNext"
32
+ module: "ESNext",
33
+ skipLibCheck: true
33
34
  }
34
- }
35
+ },
36
+ useTsconfigDeclarationDir: false,
37
+ check: false
35
38
  })
36
39
  ]
37
40
  },
@@ -54,9 +57,12 @@ export default [
54
57
  compilerOptions: {
55
58
  declaration: false,
56
59
  declarationMap: false,
57
- module: "ESNext"
60
+ module: "ESNext",
61
+ skipLibCheck: true
58
62
  }
59
- }
63
+ },
64
+ useTsconfigDeclarationDir: false,
65
+ check: false
60
66
  })
61
67
  ]
62
68
  }
@@ -0,0 +1,171 @@
1
+
2
+ 
3
+ > koatty_validation@1.6.6 build /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-validation
4
+ > npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp
5
+
6
+
7
+ > koatty_validation@1.6.6 build:js
8
+ > del-cli --force dist && npx rollup --bundleConfigAsCjs -c .rollup.config.js
9
+
10
+ β ™
11
+ ./src/index.ts β†’ ./dist/index.js...
12
+ (!) Unresolved dependencies
13
+ https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency
14
+ lru-cache (imported by "src/performance-cache.ts")
15
+ reflect-metadata (imported by "src/util.ts")
16
+ koatty_lib (imported by "src/util.ts", "src/rule.ts" and "src/decorators.ts")
17
+ koatty_container (imported by "src/util.ts" and "src/decorators.ts")
18
+ class-validator (imported by "src/rule.ts", "src/decorator-factory.ts" and "src/decorators.ts")
19
+ created ./dist/index.js in 7.8s
20
+ 
21
+ ./src/index.ts β†’ ./dist/index.mjs...
22
+ (!) Unresolved dependencies
23
+ https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency
24
+ lru-cache (imported by "src/performance-cache.ts")
25
+ reflect-metadata (imported by "src/util.ts")
26
+ koatty_lib (imported by "src/util.ts", "src/rule.ts" and "src/decorators.ts")
27
+ koatty_container (imported by "src/util.ts" and "src/decorators.ts")
28
+ class-validator (imported by "src/rule.ts", "src/decorator-factory.ts" and "src/decorators.ts")
29
+ created ./dist/index.mjs in 2.3s
30
+ β ™β ™
31
+ > koatty_validation@1.6.6 build:dts
32
+ > bash ../../scripts/build-dts.sh
33
+
34
+ πŸ”¨ Building type declarations for koatty-validation...
35
+ ⏳ Waiting for dependencies to be ready...
36
+
37
+ πŸ” Checking dependencies: koatty_container, koatty_lib, koatty_logger
38
+ ⏳ Waiting for: koatty_container, koatty_lib, koatty_logger (0s)
39
+ βœ— koatty_container: not found
40
+ βœ— koatty_lib: not found
41
+ βœ— koatty_logger: not found
42
+ βœ“ koatty_lib type declarations ready
43
+ ⏳ Waiting for: koatty_container, koatty_logger (5s)
44
+ βœ— koatty_container: not found
45
+ βœ— koatty_logger: not found
46
+ ⏳ Waiting for: koatty_container, koatty_logger (10s)
47
+ βœ— koatty_container: not found
48
+ βœ— koatty_logger: not found
49
+ ⏳ Waiting for: koatty_container, koatty_logger (15s)
50
+ βœ— koatty_container: not found
51
+ βœ— koatty_logger: not found
52
+ ⏳ Waiting for: koatty_container, koatty_logger (20s)
53
+ βœ— koatty_container: not found
54
+ βœ— koatty_logger: not found
55
+ ⏳ Waiting for: koatty_container, koatty_logger (25s)
56
+ βœ— koatty_container: not found
57
+ βœ— koatty_logger: not found
58
+ ⏳ Waiting for: koatty_container, koatty_logger (30s)
59
+ βœ— koatty_container: not found
60
+ βœ— koatty_logger: not found
61
+ ⏳ Waiting for: koatty_container, koatty_logger (35s)
62
+ βœ— koatty_container: not found
63
+ βœ— koatty_logger: not found
64
+ ⏳ Waiting for: koatty_container, koatty_logger (40s)
65
+ βœ— koatty_container: not found
66
+ βœ— koatty_logger: not found
67
+ ⏳ Waiting for: koatty_container, koatty_logger (45s)
68
+ βœ— koatty_container: not found
69
+ βœ— koatty_logger: not found
70
+ ⏳ Waiting for: koatty_container, koatty_logger (50s)
71
+ βœ— koatty_container: not found
72
+ βœ— koatty_logger: not found
73
+ ⏳ Waiting for: koatty_container, koatty_logger (55s)
74
+ βœ— koatty_container: not found
75
+ βœ— koatty_logger: not found
76
+
77
+ ⚠️ Timeout waiting for dependencies: koatty_container, koatty_logger
78
+ Maximum wait time: 60000ms
79
+ Continuing build anyway - dependencies may be building in parallel
80
+ πŸ“ Running TypeScript compiler...
81
+ β ™β ™πŸ“¦ Running API Extractor...
82
+ β ™β Ή
83
+ api-extractor 7.55.2  - https://api-extractor.com/
84
+ 
85
+ Using configuration from ./api-extractor.json
86
+ Analysis will use the bundled TypeScript version 5.8.2
87
+ *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
88
+ Writing: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-validation/temp/koatty_validation.api.json
89
+ Writing package typings: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-validation/dist/index.d.ts
90
+ Warning: src/error-handler.ts:185:6 - (tsdoc-undefined-tag) The TSDoc tag "@private" is not defined in this configuration
91
+ Warning: src/performance-cache.ts:410:14 - (ae-forgotten-export) The symbol "MetadataCache" needs to be exported by the entry point index.d.ts
92
+ Warning: src/performance-cache.ts:411:14 - (ae-forgotten-export) The symbol "ValidationCache" needs to be exported by the entry point index.d.ts
93
+ Warning: src/performance-cache.ts:412:14 - (ae-forgotten-export) The symbol "RegexCache" needs to be exported by the entry point index.d.ts
94
+ Warning: src/performance-cache.ts:413:14 - (ae-forgotten-export) The symbol "PerformanceMonitor" needs to be exported by the entry point index.d.ts
95
+ Warning: src/rule.ts:28:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
96
+ Warning: src/rule.ts:29:17 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
97
+ Warning: src/rule.ts:29:10 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
98
+ Warning: src/rule.ts:29:4 - (tsdoc-undefined-tag) The TSDoc tag "@enum" is not defined in this configuration
99
+ Warning: src/rule.ts:54:6 - (tsdoc-undefined-tag) The TSDoc tag "@static" is not defined in this configuration
100
+ Warning: src/rule.ts:56:6 - (tsdoc-undefined-tag) The TSDoc tag "@memberof" is not defined in this configuration
101
+ Warning: src/rule.ts:65:13 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
102
+ Warning: src/rule.ts:66:13 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
103
+ Warning: src/rule.ts:67:23 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
104
+ Warning: src/rule.ts:67:13 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
105
+ Warning: src/rule.ts:68:33 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
106
+ Warning: src/rule.ts:68:13 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
107
+ Warning: src/rule.ts:69:28 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
108
+ Warning: src/rule.ts:69:15 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
109
+ Warning: src/rule.ts:70:6 - (tsdoc-undefined-tag) The TSDoc tag "@memberof" is not defined in this configuration
110
+ Warning: src/rule.ts:111:14 - (ae-forgotten-export) The symbol "ValidateClass" needs to be exported by the entry point index.d.ts
111
+ Warning: src/rule.ts:116:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
112
+ Warning: src/rule.ts:117:17 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
113
+ Warning: src/rule.ts:117:10 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
114
+ Warning: src/rule.ts:117:4 - (tsdoc-undefined-tag) The TSDoc tag "@type" is not defined in this configuration
115
+ Warning: src/rule.ts:152:64 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
116
+ Warning: src/rule.ts:152:63 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
117
+ Warning: src/rule.ts:339:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
118
+ Warning: src/types.ts:58:6 - (tsdoc-undefined-tag) The TSDoc tag "@default" is not defined in this configuration
119
+ Warning: src/types.ts:64:6 - (tsdoc-undefined-tag) The TSDoc tag "@default" is not defined in this configuration
120
+ Warning: src/util.ts:144:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
121
+ Warning: src/util.ts:145:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
122
+ Warning: src/util.ts:146:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
123
+ Warning: src/util.ts:147:21 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
124
+ Warning: src/util.ts:147:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
125
+ Warning: src/util.ts:226:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
126
+ Warning: src/util.ts:227:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
127
+ Warning: src/util.ts:228:15 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
128
+ Warning: src/util.ts:228:13 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
129
+ Warning: src/util.ts:252:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
130
+ Warning: src/util.ts:253:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
131
+ Warning: src/util.ts:254:15 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
132
+ Warning: src/util.ts:254:13 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
133
+ Warning: src/util.ts:323:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
134
+ Warning: src/util.ts:324:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
135
+ Warning: src/util.ts:325:15 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
136
+ Warning: src/util.ts:325:13 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
137
+
138
+ API Extractor completed successfully
139
+ β ™βœ… Type declarations built successfully
140
+ β ™
141
+ > koatty_validation@1.6.6 build:doc
142
+ > del-cli --force docs/api && npx api-documenter markdown --input temp --output docs/api
143
+
144
+ β ™
145
+ api-documenter 7.28.2  - https://api-extractor.com/
146
+ 
147
+ Reading koatty_validation.api.json
148
+
149
+ Deleting old output from docs/api
150
+ Writing koatty_validation package
151
+ Unsupported block tag: @export
152
+ Unsupported block tag: @export
153
+ Unsupported block tag: @enum
154
+ Unsupported block tag: @export
155
+ Unsupported block tag: @default
156
+ Unsupported block tag: @default
157
+ Unsupported block tag: @default
158
+ Unsupported block tag: @default
159
+ Unsupported block tag: @export
160
+ Unsupported block tag: @type
161
+ Unsupported block tag: @export
162
+ Unsupported block tag: @enum
163
+ Unsupported block tag: @export
164
+ Unsupported block tag: @export
165
+ Unsupported block tag: @export
166
+ Unsupported block tag: @type
167
+ β ™β ™
168
+ > koatty_validation@1.6.6 build:cp
169
+ > node scripts/postBuild && copyfiles package.json LICENSE README.md dist/
170
+
171
+ β ™
@@ -0,0 +1,8 @@
1
+
2
+ > koatty_validation@1.6.3 test /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-validation
3
+ > npm run eslint && jest --passWithNoTests
4
+
5
+
6
+ > koatty_validation@1.6.3 eslint
7
+ > eslint --ext .ts,.js ./
8
+
package/CHANGELOG.md CHANGED
@@ -1,94 +1,127 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.6.6
4
+
5
+ ### Patch Changes
6
+
7
+ - build
8
+ - Updated dependencies
9
+ - koatty_container@1.17.4
10
+ - koatty_lib@1.4.5
11
+ - koatty_logger@2.3.4
12
+
13
+ ## 1.6.5
14
+
15
+ ### Patch Changes
16
+
17
+ - build
18
+ - Updated dependencies
19
+ - koatty_container@1.17.3
20
+ - koatty_lib@1.4.4
21
+ - koatty_logger@2.3.3
22
+
23
+ ## 1.6.4
24
+
25
+ ### Patch Changes
26
+
27
+ - build
28
+ - Updated dependencies
29
+ - koatty_container@1.17.2
30
+ - koatty_lib@1.4.3
31
+ - koatty_logger@2.3.2
32
+
33
+ ## 1.6.3
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies
38
+ - koatty_lib@1.4.2
39
+ - koatty_container@1.17.1
40
+ - koatty_logger@2.3.1
41
+
42
+ ## 1.6.2
43
+
44
+ ### Patch Changes
45
+
46
+ - build
47
+
3
48
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
49
 
5
50
  ### [1.6.1](https://github.com/koatty/koatty_validation/compare/v1.6.0...v1.6.1) (2025-10-23)
6
51
 
7
52
  ## [1.6.0](https://github.com/koatty/koatty_validation/compare/v1.5.0...v1.6.0) (2025-10-22)
8
53
 
9
-
10
54
  ### Features
11
55
 
12
- * improve validation with instance conversion and caching ([9865b93](https://github.com/koatty/koatty_validation/commit/9865b93e469a7df16fe67e0b85dab3191437b0a8))
56
+ - improve validation with instance conversion and caching ([9865b93](https://github.com/koatty/koatty_validation/commit/9865b93e469a7df16fe67e0b85dab3191437b0a8))
13
57
 
14
58
  ## [1.5.0](https://github.com/koatty/koatty_validation/compare/v1.4.0...v1.5.0) (2025-10-22)
15
59
 
16
-
17
60
  ### Features
18
61
 
19
- * comprehensive code optimization and enhancements ([f7ac738](https://github.com/koatty/koatty_validation/commit/f7ac7381a75a12365aee2a83530a12044c5e1d44))
62
+ - comprehensive code optimization and enhancements ([f7ac738](https://github.com/koatty/koatty_validation/commit/f7ac7381a75a12365aee2a83530a12044c5e1d44))
20
63
 
21
64
  ## [1.4.0](https://github.com/koatty/koatty_validation/compare/v1.3.2...v1.4.0) (2025-06-10)
22
65
 
23
-
24
66
  ### Features
25
67
 
26
- * add validation examples and decorator factory ([d448709](https://github.com/koatty/koatty_validation/commit/d44870987a808cd43c5a7ed5fabd5ca43162d0b6))
68
+ - add validation examples and decorator factory ([d448709](https://github.com/koatty/koatty_validation/commit/d44870987a808cd43c5a7ed5fabd5ca43162d0b6))
27
69
 
28
70
  ### [1.3.2](https://github.com/koatty/koatty_validation/compare/v1.3.1...v1.3.2) (2024-01-14)
29
71
 
30
-
31
72
  ### Bug Fixes
32
73
 
33
- * deps ([6da3e43](https://github.com/koatty/koatty_validation/commit/6da3e437c946c9de2fc45f5319768fef0c4609b0))
74
+ - deps ([6da3e43](https://github.com/koatty/koatty_validation/commit/6da3e437c946c9de2fc45f5319768fef0c4609b0))
34
75
 
35
76
  ### [1.3.1](https://github.com/koatty/koatty_validation/compare/v1.3.0...v1.3.1) (2024-01-07)
36
77
 
37
-
38
78
  ### Bug Fixes
39
79
 
40
- * comment ([d898cf6](https://github.com/koatty/koatty_validation/commit/d898cf68bc8693f78155b7208b419dc4b11dffb4))
41
- * dtoθ΅‹ε€Όη±»εž‹ ([5a1d68d](https://github.com/koatty/koatty_validation/commit/5a1d68dea0b67e988427c54abae9bfe76a6eaf48))
80
+ - comment ([d898cf6](https://github.com/koatty/koatty_validation/commit/d898cf68bc8693f78155b7208b419dc4b11dffb4))
81
+ - dto θ΅‹ε€Όη±»εž‹ ([5a1d68d](https://github.com/koatty/koatty_validation/commit/5a1d68dea0b67e988427c54abae9bfe76a6eaf48))
42
82
 
43
83
  ## [1.3.0](https://github.com/koatty/koatty_validation/compare/v1.2.10...v1.3.0) (2024-01-03)
44
84
 
45
-
46
85
  ### Features
47
86
 
48
- * 咞加@CheckFunc ([d5bdc2d](https://github.com/koatty/koatty_validation/commit/d5bdc2d51cdbf6d558e376bfda51e126158d4e75))
49
-
87
+ - 咞加@CheckFunc ([d5bdc2d](https://github.com/koatty/koatty_validation/commit/d5bdc2d51cdbf6d558e376bfda51e126158d4e75))
50
88
 
51
89
  ### Bug Fixes
52
90
 
53
- * export ValidFuncs ([7d42023](https://github.com/koatty/koatty_validation/commit/7d42023138e9577c9646423c4c38faffba46fb10))
91
+ - export ValidFuncs ([7d42023](https://github.com/koatty/koatty_validation/commit/7d42023138e9577c9646423c4c38faffba46fb10))
54
92
 
55
93
  ### [1.2.10](https://github.com/koatty/koatty_validation/compare/v1.2.9...v1.2.10) (2023-12-16)
56
94
 
57
-
58
95
  ### Bug Fixes
59
96
 
60
- * assign dto property ([2357642](https://github.com/koatty/koatty_validation/commit/2357642f6ac1479c839454d40ec4bd89f3fbd7b2))
97
+ - assign dto property ([2357642](https://github.com/koatty/koatty_validation/commit/2357642f6ac1479c839454d40ec4bd89f3fbd7b2))
61
98
 
62
99
  ### [1.2.9](https://github.com/koatty/koatty_validation/compare/v1.2.8...v1.2.9) (2023-09-01)
63
100
 
64
101
  ### [1.2.8](https://github.com/koatty/koatty_validation/compare/v1.2.7...v1.2.8) (2023-02-17)
65
102
 
66
-
67
103
  ### Bug Fixes
68
104
 
69
- * convert type ([924449d](https://github.com/koatty/koatty_validation/commit/924449d9f5fd7b14cbe3c1532f96416e69cc4eed))
105
+ - convert type ([924449d](https://github.com/koatty/koatty_validation/commit/924449d9f5fd7b14cbe3c1532f96416e69cc4eed))
70
106
 
71
107
  ### [1.2.7](https://github.com/koatty/koatty_validation/compare/v1.2.6...v1.2.7) (2023-02-17)
72
108
 
73
-
74
109
  ### Bug Fixes
75
110
 
76
- * add script ([ca82c14](https://github.com/koatty/koatty_validation/commit/ca82c14b0a2226024fb2c4476ba7353be7a2f65a))
77
- * plainToClass convert type ([06ed46e](https://github.com/koatty/koatty_validation/commit/06ed46e21ce191dc1c9f5c18ee7d029e9b6d4abf))
111
+ - add script ([ca82c14](https://github.com/koatty/koatty_validation/commit/ca82c14b0a2226024fb2c4476ba7353be7a2f65a))
112
+ - plainToClass convert type ([06ed46e](https://github.com/koatty/koatty_validation/commit/06ed46e21ce191dc1c9f5c18ee7d029e9b6d4abf))
78
113
 
79
114
  ### [1.2.6](https://github.com/koatty/koatty_validation/compare/v1.2.5...v1.2.6) (2023-01-09)
80
115
 
81
-
82
116
  ### Bug Fixes
83
117
 
84
- * err msg ([18632d4](https://github.com/koatty/koatty_validation/commit/18632d4c9b05b1d117be7f8170da0ce014018ab8))
118
+ - err msg ([18632d4](https://github.com/koatty/koatty_validation/commit/18632d4c9b05b1d117be7f8170da0ce014018ab8))
85
119
 
86
120
  ### [1.2.5](https://github.com/koatty/koatty_validation/compare/v1.2.4...v1.2.5) (2022-08-19)
87
121
 
88
-
89
122
  ### Bug Fixes
90
123
 
91
- * merge ([52c65f4](https://github.com/koatty/koatty_validation/commit/52c65f41c46a02a3fc5735e6e22ee6a3ed5337f8))
124
+ - merge ([52c65f4](https://github.com/koatty/koatty_validation/commit/52c65f41c46a02a3fc5735e6e22ee6a3ed5337f8))
92
125
 
93
126
  ### [1.2.4](https://github.com/koatty/koatty_validation/compare/v1.2.3...v1.2.4) (2022-05-27)
94
127
 
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2025-10-23 20:54:44
3
+ * @Date: 2026-01-28 17:22:16
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
7
7
  */
8
8
  import { CountryCode } from 'libphonenumber-js';
9
- import { ValidationOptions } from 'class-validator';
9
+ import { ValidationOptions as ValidationOptions_2 } from 'class-validator';
10
10
 
11
11
  /**
12
12
  * ηΌ“ε­˜θ£…ι₯°ε™¨ - η”¨δΊŽηΌ“ε­˜ιͺŒθ―ε‡½ζ•°η»“ζžœ
@@ -120,7 +120,7 @@ export declare function createValidationErrors(errors: Array<{
120
120
  constraint: string;
121
121
  message?: string;
122
122
  context?: Record<string, any>;
123
- }>): KoattyValidationError;
123
+ }>, separator?: string): KoattyValidationError;
124
124
 
125
125
  /**
126
126
  * Decorator options
@@ -296,7 +296,7 @@ export declare const IsDate: (...args: any[]) => (object: Object, propertyName:
296
296
  */
297
297
  export declare function IsDefined(): PropertyDecorator;
298
298
 
299
- export declare function IsEmail(options?: IsEmailOptions, validationOptions?: ValidationOptions): (object: Object, propertyName: string) => void;
299
+ export declare function IsEmail(options?: IsEmailOptions | ValidationOptions_2, validationOptions?: ValidationOptions_2): (object: Object, propertyName: string) => void;
300
300
 
301
301
  /**
302
302
  * koatty_validation type definitions
@@ -314,13 +314,13 @@ export declare interface IsEmailOptions {
314
314
  require_tld?: boolean;
315
315
  }
316
316
 
317
- export declare function IsHash(algorithm: HashAlgorithm, validationOptions?: ValidationOptions): (object: Object, propertyName: string) => void;
317
+ export declare function IsHash(algorithm: HashAlgorithm, validationOptions?: ValidationOptions_2): (object: Object, propertyName: string) => void;
318
318
 
319
319
  export declare const IsIdNumber: (...args: any[]) => (object: Object, propertyName: string) => void;
320
320
 
321
321
  export declare const IsIn: (...args: any[]) => (object: Object, propertyName: string) => void;
322
322
 
323
- export declare function IsIP(version?: any, validationOptions?: ValidationOptions): (object: Object, propertyName: string) => void;
323
+ export declare function IsIP(version?: any, validationOptions?: ValidationOptions_2): (object: Object, propertyName: string) => void;
324
324
 
325
325
  export declare const IsMobile: (...args: any[]) => (object: Object, propertyName: string) => void;
326
326
 
@@ -328,11 +328,11 @@ export declare const IsNotEmpty: (...args: any[]) => (object: Object, propertyNa
328
328
 
329
329
  export declare const IsNotIn: (...args: any[]) => (object: Object, propertyName: string) => void;
330
330
 
331
- export declare function IsPhoneNumber(region?: CountryCode, validationOptions?: ValidationOptions): (object: Object, propertyName: string) => void;
331
+ export declare function IsPhoneNumber(region?: CountryCode, validationOptions?: ValidationOptions_2): (object: Object, propertyName: string) => void;
332
332
 
333
333
  export declare const IsPlateNumber: (...args: any[]) => (object: Object, propertyName: string) => void;
334
334
 
335
- export declare function IsUrl(options?: IsURLOptions, validationOptions?: ValidationOptions): (object: Object, propertyName: string) => void;
335
+ export declare function IsUrl(options?: IsURLOptions, validationOptions?: ValidationOptions_2): (object: Object, propertyName: string) => void;
336
336
 
337
337
  /**
338
338
  * URL validation options
@@ -568,10 +568,11 @@ declare class ValidateClass {
568
568
  * @param {*} Clazz
569
569
  * @param {*} data
570
570
  * @param {boolean} [convert=false] auto convert parameters type
571
+ * @param {ValidationOptions} [options] validation options (returnAllErrors, errorSeparator)
571
572
  * @returns {Promise<any>}
572
573
  * @memberof ValidateClass
573
574
  */
574
- valid(Clazz: any, data: any, convert?: boolean): Promise<any>;
575
+ valid(Clazz: any, data: any, convert?: boolean, options?: ValidationOptions): Promise<any>;
575
576
  }
576
577
 
577
578
  /**
@@ -647,6 +648,25 @@ export declare interface ValidationErrorDetail {
647
648
  context?: Record<string, any>;
648
649
  }
649
650
 
651
+ /**
652
+ * Parameter type key constant
653
+ */
654
+ /**
655
+ * Validation options for ClassValidator.valid()
656
+ */
657
+ export declare interface ValidationOptions {
658
+ /**
659
+ * Whether to return all validation errors or only the first one
660
+ * @default false (backward compatibility - returns only first error)
661
+ */
662
+ returnAllErrors?: boolean;
663
+ /**
664
+ * Separator for joining multiple error messages
665
+ * @default '; '
666
+ */
667
+ errorSeparator?: string;
668
+ }
669
+
650
670
  /**
651
671
  * Validator function type definition
652
672
  */