typia 12.0.0-dev.20260309 → 12.0.0-dev.20260310
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/lib/executable/setup/PluginConfigurator.js +3 -3
- package/lib/executable/setup/PluginConfigurator.mjs +3 -3
- package/lib/executable/setup/PluginConfigurator.mjs.map +1 -1
- package/lib/executable/typia.js +15 -15
- package/lib/executable/typia.mjs +15 -15
- package/package.json +5 -5
- package/src/TypeGuardError.ts +145 -145
- package/src/executable/TypiaGenerateWizard.ts +82 -82
- package/src/executable/TypiaPatchWizard.ts +45 -45
- package/src/executable/TypiaSetupWizard.ts +171 -171
- package/src/executable/setup/ArgumentParser.ts +42 -42
- package/src/executable/setup/CommandExecutor.ts +8 -8
- package/src/executable/setup/FileRetriever.ts +19 -19
- package/src/executable/setup/PackageManager.ts +87 -87
- package/src/executable/setup/PluginConfigurator.ts +74 -74
- package/src/executable/typia.ts +55 -55
- package/src/functional.ts +600 -600
- package/src/http.ts +843 -843
- package/src/index.ts +4 -4
- package/src/internal/_IProtobufWriter.ts +18 -18
- package/src/internal/_ProtobufReader.ts +187 -187
- package/src/internal/_ProtobufSizer.ts +137 -137
- package/src/internal/_ProtobufWriter.ts +135 -135
- package/src/internal/_accessExpressionAsString.ts +46 -46
- package/src/internal/_assertGuard.ts +13 -13
- package/src/internal/_coerceLlmArguments.ts +7 -7
- package/src/internal/_createStandardSchema.ts +133 -133
- package/src/internal/_functionalTypeGuardErrorFactory.ts +4 -4
- package/src/internal/_httpFormDataReadArray.ts +4 -4
- package/src/internal/_httpFormDataReadBigint.ts +18 -18
- package/src/internal/_httpFormDataReadBlob.ts +10 -10
- package/src/internal/_httpFormDataReadBoolean.ts +16 -16
- package/src/internal/_httpFormDataReadFile.ts +10 -10
- package/src/internal/_httpFormDataReadNumber.ts +15 -15
- package/src/internal/_httpFormDataReadString.ts +10 -10
- package/src/internal/_httpHeaderReadBigint.ts +10 -10
- package/src/internal/_httpHeaderReadBoolean.ts +8 -8
- package/src/internal/_httpHeaderReadNumber.ts +7 -7
- package/src/internal/_httpParameterReadBigint.ts +10 -10
- package/src/internal/_httpParameterReadBoolean.ts +8 -8
- package/src/internal/_httpParameterReadNumber.ts +7 -7
- package/src/internal/_httpParameterReadString.ts +2 -2
- package/src/internal/_httpQueryParseURLSearchParams.ts +12 -12
- package/src/internal/_httpQueryReadArray.ts +4 -4
- package/src/internal/_httpQueryReadBigint.ts +12 -12
- package/src/internal/_httpQueryReadBoolean.ts +14 -14
- package/src/internal/_httpQueryReadNumber.ts +9 -9
- package/src/internal/_httpQueryReadString.ts +4 -4
- package/src/internal/_isBetween.ts +2 -2
- package/src/internal/_isBigintString.ts +8 -8
- package/src/internal/_isFormatByte.ts +7 -7
- package/src/internal/_isFormatDate.ts +3 -3
- package/src/internal/_isFormatDateTime.ts +4 -4
- package/src/internal/_isFormatDuration.ts +4 -4
- package/src/internal/_isFormatEmail.ts +4 -4
- package/src/internal/_isFormatHostname.ts +4 -4
- package/src/internal/_isFormatIdnEmail.ts +4 -4
- package/src/internal/_isFormatIdnHostname.ts +4 -4
- package/src/internal/_isFormatIpv4.ts +4 -4
- package/src/internal/_isFormatIpv6.ts +4 -4
- package/src/internal/_isFormatIri.ts +3 -3
- package/src/internal/_isFormatIriReference.ts +4 -4
- package/src/internal/_isFormatJsonPointer.ts +3 -3
- package/src/internal/_isFormatPassword.ts +1 -1
- package/src/internal/_isFormatRegex.ts +8 -8
- package/src/internal/_isFormatRelativeJsonPointer.ts +4 -4
- package/src/internal/_isFormatTime.ts +4 -4
- package/src/internal/_isFormatUri.ts +6 -6
- package/src/internal/_isFormatUriReference.ts +5 -5
- package/src/internal/_isFormatUriTemplate.ts +4 -4
- package/src/internal/_isFormatUrl.ts +4 -4
- package/src/internal/_isFormatUuid.ts +3 -3
- package/src/internal/_isTypeFloat.ts +5 -5
- package/src/internal/_isTypeInt32.ts +5 -5
- package/src/internal/_isTypeInt64.ts +5 -5
- package/src/internal/_isTypeUint32.ts +5 -5
- package/src/internal/_isTypeUint64.ts +5 -5
- package/src/internal/_isUniqueItems.ts +159 -159
- package/src/internal/_jsonStringifyNumber.ts +12 -12
- package/src/internal/_jsonStringifyRest.ts +3 -3
- package/src/internal/_jsonStringifyString.ts +42 -42
- package/src/internal/_jsonStringifyTail.ts +2 -2
- package/src/internal/_llmApplicationFinalize.ts +24 -24
- package/src/internal/_miscCloneAny.ts +46 -46
- package/src/internal/_notationAny.ts +37 -37
- package/src/internal/_notationCamel.ts +13 -13
- package/src/internal/_notationPascal.ts +8 -8
- package/src/internal/_notationSnake.ts +43 -43
- package/src/internal/_parseLlmArguments.ts +7 -7
- package/src/internal/_randomArray.ts +21 -21
- package/src/internal/_randomBigint.ts +6 -6
- package/src/internal/_randomBoolean.ts +1 -1
- package/src/internal/_randomFormatByte.ts +3 -3
- package/src/internal/_randomFormatDate.ts +18 -18
- package/src/internal/_randomFormatDatetime.ts +16 -16
- package/src/internal/_randomFormatDuration.ts +27 -27
- package/src/internal/_randomFormatEmail.ts +11 -11
- package/src/internal/_randomFormatHostname.ts +6 -6
- package/src/internal/_randomFormatIdnEmail.ts +3 -3
- package/src/internal/_randomFormatIdnHostname.ts +3 -3
- package/src/internal/_randomFormatIpv4.ts +11 -11
- package/src/internal/_randomFormatIpv6.ts +11 -11
- package/src/internal/_randomFormatIri.ts +3 -3
- package/src/internal/_randomFormatIriReference.ts +3 -3
- package/src/internal/_randomFormatJsonPointer.ts +7 -7
- package/src/internal/_randomFormatPassword.ts +8 -8
- package/src/internal/_randomFormatRegex.ts +4 -4
- package/src/internal/_randomFormatRelativeJsonPointer.ts +8 -8
- package/src/internal/_randomFormatTime.ts +14 -14
- package/src/internal/_randomFormatUri.ts +3 -3
- package/src/internal/_randomFormatUriReference.ts +3 -3
- package/src/internal/_randomFormatUriTemplate.ts +3 -3
- package/src/internal/_randomFormatUrl.ts +11 -11
- package/src/internal/_randomFormatUuid.ts +6 -6
- package/src/internal/_randomInteger.ts +53 -53
- package/src/internal/_randomNumber.ts +80 -80
- package/src/internal/_randomPattern.ts +10 -10
- package/src/internal/_randomPick.ts +9 -9
- package/src/internal/_randomString.ts +24 -24
- package/src/internal/_throwTypeGuardError.ts +5 -5
- package/src/internal/_validateReport.ts +21 -21
- package/src/internal/private/__notationCapitalize.ts +2 -2
- package/src/internal/private/__notationUnsnake.ts +24 -24
- package/src/json.ts +553 -553
- package/src/llm.ts +408 -408
- package/src/misc.ts +448 -448
- package/src/module.ts +811 -811
- package/src/notations.ts +624 -624
- package/src/programmers/TypiaProgrammer.ts +8 -8
- package/src/protobuf.ts +499 -499
- package/src/re-exports.ts +33 -33
- package/src/reflect.ts +75 -75
- package/src/transform.ts +5 -5
- package/src/transformers/NoTransformConfigurationError.ts +16 -16
package/src/re-exports.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
export {
|
|
2
|
-
// validate
|
|
3
|
-
AssertionGuard,
|
|
4
|
-
IJsonParseResult,
|
|
5
|
-
IValidation,
|
|
6
|
-
IRandomGenerator,
|
|
7
|
-
// json
|
|
8
|
-
OpenApi,
|
|
9
|
-
IJsonSchemaCollection,
|
|
10
|
-
IJsonSchemaUnit,
|
|
11
|
-
// llm
|
|
12
|
-
ILlmController,
|
|
13
|
-
ILlmApplication,
|
|
14
|
-
ILlmFunction,
|
|
15
|
-
ILlmSchema,
|
|
16
|
-
// reflect
|
|
17
|
-
IMetadataSchema,
|
|
18
|
-
IMetadataSchemaCollection,
|
|
19
|
-
IMetadataSchemaUnit,
|
|
20
|
-
IMetadataComponents,
|
|
21
|
-
IMetadataTypeTag,
|
|
22
|
-
IJsDocTagInfo,
|
|
23
|
-
// typings
|
|
24
|
-
Primitive,
|
|
25
|
-
Resolved,
|
|
26
|
-
CamelCase,
|
|
27
|
-
PascalCase,
|
|
28
|
-
SnakeCase,
|
|
29
|
-
// http
|
|
30
|
-
IReadableURLSearchParams,
|
|
31
|
-
// namespaces
|
|
32
|
-
tags,
|
|
33
|
-
} from "@typia/interface";
|
|
1
|
+
export {
|
|
2
|
+
// validate
|
|
3
|
+
AssertionGuard,
|
|
4
|
+
IJsonParseResult,
|
|
5
|
+
IValidation,
|
|
6
|
+
IRandomGenerator,
|
|
7
|
+
// json
|
|
8
|
+
OpenApi,
|
|
9
|
+
IJsonSchemaCollection,
|
|
10
|
+
IJsonSchemaUnit,
|
|
11
|
+
// llm
|
|
12
|
+
ILlmController,
|
|
13
|
+
ILlmApplication,
|
|
14
|
+
ILlmFunction,
|
|
15
|
+
ILlmSchema,
|
|
16
|
+
// reflect
|
|
17
|
+
IMetadataSchema,
|
|
18
|
+
IMetadataSchemaCollection,
|
|
19
|
+
IMetadataSchemaUnit,
|
|
20
|
+
IMetadataComponents,
|
|
21
|
+
IMetadataTypeTag,
|
|
22
|
+
IJsDocTagInfo,
|
|
23
|
+
// typings
|
|
24
|
+
Primitive,
|
|
25
|
+
Resolved,
|
|
26
|
+
CamelCase,
|
|
27
|
+
PascalCase,
|
|
28
|
+
SnakeCase,
|
|
29
|
+
// http
|
|
30
|
+
IReadableURLSearchParams,
|
|
31
|
+
// namespaces
|
|
32
|
+
tags,
|
|
33
|
+
} from "@typia/interface";
|
package/src/reflect.ts
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IMetadataSchemaCollection,
|
|
3
|
-
IMetadataSchemaUnit,
|
|
4
|
-
} from "@typia/interface";
|
|
5
|
-
|
|
6
|
-
import { NoTransformConfigurationError } from "./transformers/NoTransformConfigurationError";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Generates metadata schemas for multiple types.
|
|
10
|
-
*
|
|
11
|
-
* @danger You must configure the generic argument `Types`
|
|
12
|
-
*/
|
|
13
|
-
export function schemas(): never;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Generates metadata schemas for multiple types.
|
|
17
|
-
*
|
|
18
|
-
* Creates {@link IMetadataSchemaCollection} containing metadata for all types in
|
|
19
|
-
* the tuple. Collection types (Array, Tuple, Object) are stored in
|
|
20
|
-
* `components`. Alias types are stored in `aliases`.
|
|
21
|
-
*
|
|
22
|
-
* @template Types Tuple of target types
|
|
23
|
-
* @returns Metadata schema collection
|
|
24
|
-
*/
|
|
25
|
-
export function schemas<Types extends unknown[]>(): IMetadataSchemaCollection;
|
|
26
|
-
|
|
27
|
-
/** @internal */
|
|
28
|
-
export function schemas(): never {
|
|
29
|
-
NoTransformConfigurationError("reflect.schemas");
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Generates metadata schema for a single type.
|
|
34
|
-
*
|
|
35
|
-
* @danger You must configure the generic argument `Type`
|
|
36
|
-
*/
|
|
37
|
-
export function schema(): never;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Generates metadata schema for a single type.
|
|
41
|
-
*
|
|
42
|
-
* Creates {@link IMetadataSchemaUnit} containing metadata for the type.
|
|
43
|
-
*
|
|
44
|
-
* @template Type Target type
|
|
45
|
-
* @returns Metadata schema unit
|
|
46
|
-
*/
|
|
47
|
-
export function schema<Type>(): IMetadataSchemaUnit;
|
|
48
|
-
|
|
49
|
-
/** @internal */
|
|
50
|
-
export function schema(): never {
|
|
51
|
-
NoTransformConfigurationError("reflect.schema");
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Gets the runtime type name of type `T`.
|
|
56
|
-
*
|
|
57
|
-
* @danger You must configure the generic argument `T`
|
|
58
|
-
*/
|
|
59
|
-
export function name(): never;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Gets the runtime type name of type `T`.
|
|
63
|
-
*
|
|
64
|
-
* Returns a string representation of the type name.
|
|
65
|
-
*
|
|
66
|
-
* @template T Target type
|
|
67
|
-
* @template Regular If `true`, returns regular (normalized) name
|
|
68
|
-
* @returns Type name string
|
|
69
|
-
*/
|
|
70
|
-
export function name<T, Regular extends boolean = false>(): string;
|
|
71
|
-
|
|
72
|
-
/** @internal */
|
|
73
|
-
export function name(): never {
|
|
74
|
-
NoTransformConfigurationError("reflect.name");
|
|
75
|
-
}
|
|
1
|
+
import {
|
|
2
|
+
IMetadataSchemaCollection,
|
|
3
|
+
IMetadataSchemaUnit,
|
|
4
|
+
} from "@typia/interface";
|
|
5
|
+
|
|
6
|
+
import { NoTransformConfigurationError } from "./transformers/NoTransformConfigurationError";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Generates metadata schemas for multiple types.
|
|
10
|
+
*
|
|
11
|
+
* @danger You must configure the generic argument `Types`
|
|
12
|
+
*/
|
|
13
|
+
export function schemas(): never;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Generates metadata schemas for multiple types.
|
|
17
|
+
*
|
|
18
|
+
* Creates {@link IMetadataSchemaCollection} containing metadata for all types in
|
|
19
|
+
* the tuple. Collection types (Array, Tuple, Object) are stored in
|
|
20
|
+
* `components`. Alias types are stored in `aliases`.
|
|
21
|
+
*
|
|
22
|
+
* @template Types Tuple of target types
|
|
23
|
+
* @returns Metadata schema collection
|
|
24
|
+
*/
|
|
25
|
+
export function schemas<Types extends unknown[]>(): IMetadataSchemaCollection;
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export function schemas(): never {
|
|
29
|
+
NoTransformConfigurationError("reflect.schemas");
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Generates metadata schema for a single type.
|
|
34
|
+
*
|
|
35
|
+
* @danger You must configure the generic argument `Type`
|
|
36
|
+
*/
|
|
37
|
+
export function schema(): never;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Generates metadata schema for a single type.
|
|
41
|
+
*
|
|
42
|
+
* Creates {@link IMetadataSchemaUnit} containing metadata for the type.
|
|
43
|
+
*
|
|
44
|
+
* @template Type Target type
|
|
45
|
+
* @returns Metadata schema unit
|
|
46
|
+
*/
|
|
47
|
+
export function schema<Type>(): IMetadataSchemaUnit;
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export function schema(): never {
|
|
51
|
+
NoTransformConfigurationError("reflect.schema");
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Gets the runtime type name of type `T`.
|
|
56
|
+
*
|
|
57
|
+
* @danger You must configure the generic argument `T`
|
|
58
|
+
*/
|
|
59
|
+
export function name(): never;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Gets the runtime type name of type `T`.
|
|
63
|
+
*
|
|
64
|
+
* Returns a string representation of the type name.
|
|
65
|
+
*
|
|
66
|
+
* @template T Target type
|
|
67
|
+
* @template Regular If `true`, returns regular (normalized) name
|
|
68
|
+
* @returns Type name string
|
|
69
|
+
*/
|
|
70
|
+
export function name<T, Regular extends boolean = false>(): string;
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export function name(): never {
|
|
74
|
+
NoTransformConfigurationError("reflect.name");
|
|
75
|
+
}
|
package/src/transform.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import transform from "@typia/transform";
|
|
2
|
-
|
|
3
|
-
export default transform;
|
|
4
|
-
|
|
5
|
-
export * from "@typia/transform";
|
|
1
|
+
import transform from "@typia/transform";
|
|
2
|
+
|
|
3
|
+
export default transform;
|
|
4
|
+
|
|
5
|
+
export * from "@typia/transform";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/** @internal */
|
|
2
|
-
export function NoTransformConfigurationError(name: string): never {
|
|
3
|
-
throw new Error(
|
|
4
|
-
[
|
|
5
|
-
`Error on typia.${name}(): no transform has been configured.`,
|
|
6
|
-
"",
|
|
7
|
-
"Read and follow https://typia.io/docs/setup please.",
|
|
8
|
-
"",
|
|
9
|
-
[
|
|
10
|
-
"If you've already completed the setup, it means there's",
|
|
11
|
-
"a bug in your code. Run `tsc` command so that check what",
|
|
12
|
-
"is wrong with your code.",
|
|
13
|
-
].join(" "),
|
|
14
|
-
].join("\n"),
|
|
15
|
-
);
|
|
16
|
-
}
|
|
1
|
+
/** @internal */
|
|
2
|
+
export function NoTransformConfigurationError(name: string): never {
|
|
3
|
+
throw new Error(
|
|
4
|
+
[
|
|
5
|
+
`Error on typia.${name}(): no transform has been configured.`,
|
|
6
|
+
"",
|
|
7
|
+
"Read and follow https://typia.io/docs/setup please.",
|
|
8
|
+
"",
|
|
9
|
+
[
|
|
10
|
+
"If you've already completed the setup, it means there's",
|
|
11
|
+
"a bug in your code. Run `tsc` command so that check what",
|
|
12
|
+
"is wrong with your code.",
|
|
13
|
+
].join(" "),
|
|
14
|
+
].join("\n"),
|
|
15
|
+
);
|
|
16
|
+
}
|