typia 5.1.6 → 5.2.0-dev.20231007

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.
Files changed (222) hide show
  1. package/lib/CamelCase.d.ts +22 -0
  2. package/lib/CamelCase.js +3 -0
  3. package/lib/CamelCase.js.map +1 -0
  4. package/lib/PascalCase.d.ts +22 -0
  5. package/lib/PascalCase.js +3 -0
  6. package/lib/PascalCase.js.map +1 -0
  7. package/lib/Resolved.d.ts +4 -4
  8. package/lib/SnakeCase.d.ts +24 -0
  9. package/lib/SnakeCase.js +3 -0
  10. package/lib/SnakeCase.js.map +1 -0
  11. package/lib/functional/$convention.d.ts +1 -0
  12. package/lib/functional/$convention.js +63 -0
  13. package/lib/functional/$convention.js.map +1 -0
  14. package/lib/functional/Namespace.js +9 -0
  15. package/lib/functional/Namespace.js.map +1 -1
  16. package/lib/module.d.ts +5 -1
  17. package/lib/module.js +6 -2
  18. package/lib/module.js.map +1 -1
  19. package/lib/notations.d.ts +538 -0
  20. package/lib/notations.js +146 -0
  21. package/lib/notations.js.map +1 -0
  22. package/lib/programmers/helpers/NotationJoiner.d.ts +7 -0
  23. package/lib/programmers/helpers/NotationJoiner.js +85 -0
  24. package/lib/programmers/helpers/NotationJoiner.js.map +1 -0
  25. package/lib/programmers/misc/MiscCloneProgrammer.js +12 -1
  26. package/lib/programmers/misc/MiscCloneProgrammer.js.map +1 -1
  27. package/lib/programmers/misc/MiscPruneProgrammer.js +2 -1
  28. package/lib/programmers/misc/MiscPruneProgrammer.js.map +1 -1
  29. package/lib/programmers/notations/NotationAssertGeneralProgrammer.d.ts +5 -0
  30. package/lib/programmers/notations/NotationAssertGeneralProgrammer.js +44 -0
  31. package/lib/programmers/notations/NotationAssertGeneralProgrammer.js.map +1 -0
  32. package/lib/programmers/notations/NotationGeneralProgrammer.d.ts +6 -0
  33. package/lib/programmers/notations/NotationGeneralProgrammer.js +490 -0
  34. package/lib/programmers/notations/NotationGeneralProgrammer.js.map +1 -0
  35. package/lib/programmers/notations/NotationIsGeneralProgrammer.d.ts +5 -0
  36. package/lib/programmers/notations/NotationIsGeneralProgrammer.js +47 -0
  37. package/lib/programmers/notations/NotationIsGeneralProgrammer.js.map +1 -0
  38. package/lib/programmers/notations/NotationValidateGeneralProgrammer.d.ts +5 -0
  39. package/lib/programmers/notations/NotationValidateGeneralProgrammer.js +44 -0
  40. package/lib/programmers/notations/NotationValidateGeneralProgrammer.js.map +1 -0
  41. package/lib/transformers/CallExpressionTransformer.js +99 -16
  42. package/lib/transformers/CallExpressionTransformer.js.map +1 -1
  43. package/lib/transformers/features/json/JsonAssertParseTransformer.js +1 -1
  44. package/lib/transformers/features/json/JsonAssertParseTransformer.js.map +1 -1
  45. package/lib/transformers/features/json/JsonAssertStringifyTransformer.js +1 -1
  46. package/lib/transformers/features/json/JsonAssertStringifyTransformer.js.map +1 -1
  47. package/lib/transformers/features/json/JsonCreateAssertParseTransformer.js +1 -1
  48. package/lib/transformers/features/json/JsonCreateAssertParseTransformer.js.map +1 -1
  49. package/lib/transformers/features/json/JsonCreateAssertStringifyTransformer.js +1 -1
  50. package/lib/transformers/features/json/JsonCreateAssertStringifyTransformer.js.map +1 -1
  51. package/lib/transformers/features/json/JsonCreateIsParseTransformer.js +1 -1
  52. package/lib/transformers/features/json/JsonCreateIsParseTransformer.js.map +1 -1
  53. package/lib/transformers/features/json/JsonCreateIsStringifyTransformer.js +1 -1
  54. package/lib/transformers/features/json/JsonCreateIsStringifyTransformer.js.map +1 -1
  55. package/lib/transformers/features/json/JsonCreateStringifyTransformer.js +1 -1
  56. package/lib/transformers/features/json/JsonCreateStringifyTransformer.js.map +1 -1
  57. package/lib/transformers/features/json/JsonCreateValidateParseTransformer.js +1 -1
  58. package/lib/transformers/features/json/JsonCreateValidateParseTransformer.js.map +1 -1
  59. package/lib/transformers/features/json/JsonCreateValidateStringifyProgrammer.js +1 -1
  60. package/lib/transformers/features/json/JsonCreateValidateStringifyProgrammer.js.map +1 -1
  61. package/lib/transformers/features/json/JsonIsParseTransformer.js +1 -1
  62. package/lib/transformers/features/json/JsonIsParseTransformer.js.map +1 -1
  63. package/lib/transformers/features/json/JsonIsStringifyTransformer.js +1 -1
  64. package/lib/transformers/features/json/JsonIsStringifyTransformer.js.map +1 -1
  65. package/lib/transformers/features/json/JsonStringifyTransformer.js +1 -1
  66. package/lib/transformers/features/json/JsonStringifyTransformer.js.map +1 -1
  67. package/lib/transformers/features/json/JsonValidateParseTransformer.js +1 -1
  68. package/lib/transformers/features/json/JsonValidateParseTransformer.js.map +1 -1
  69. package/lib/transformers/features/json/JsonValidateStringifyTransformer.js +1 -1
  70. package/lib/transformers/features/json/JsonValidateStringifyTransformer.js.map +1 -1
  71. package/lib/transformers/features/misc/MiscAssertCloneTransformer.js +1 -1
  72. package/lib/transformers/features/misc/MiscAssertCloneTransformer.js.map +1 -1
  73. package/lib/transformers/features/misc/MiscAssertPruneTransformer.js +1 -1
  74. package/lib/transformers/features/misc/MiscAssertPruneTransformer.js.map +1 -1
  75. package/lib/transformers/features/misc/MiscCloneTransformer.js +1 -1
  76. package/lib/transformers/features/misc/MiscCloneTransformer.js.map +1 -1
  77. package/lib/transformers/features/misc/MiscCreateAssertCloneTransformer.js +1 -1
  78. package/lib/transformers/features/misc/MiscCreateAssertCloneTransformer.js.map +1 -1
  79. package/lib/transformers/features/misc/MiscCreateAssertPruneTransformer.js +1 -1
  80. package/lib/transformers/features/misc/MiscCreateAssertPruneTransformer.js.map +1 -1
  81. package/lib/transformers/features/misc/MiscCreateCloneTransformer.js +1 -1
  82. package/lib/transformers/features/misc/MiscCreateCloneTransformer.js.map +1 -1
  83. package/lib/transformers/features/misc/MiscCreateIsCloneTransformer.js +1 -1
  84. package/lib/transformers/features/misc/MiscCreateIsCloneTransformer.js.map +1 -1
  85. package/lib/transformers/features/misc/MiscCreateIsPruneTransformer.js +1 -1
  86. package/lib/transformers/features/misc/MiscCreateIsPruneTransformer.js.map +1 -1
  87. package/lib/transformers/features/misc/MiscCreatePruneTransformer.js +1 -1
  88. package/lib/transformers/features/misc/MiscCreatePruneTransformer.js.map +1 -1
  89. package/lib/transformers/features/misc/MiscCreateValidateCloneTransformer.js +1 -1
  90. package/lib/transformers/features/misc/MiscCreateValidateCloneTransformer.js.map +1 -1
  91. package/lib/transformers/features/misc/MiscCreateValidatePruneTransformer.js +1 -1
  92. package/lib/transformers/features/misc/MiscCreateValidatePruneTransformer.js.map +1 -1
  93. package/lib/transformers/features/misc/MiscIsCloneTransformer.js +1 -1
  94. package/lib/transformers/features/misc/MiscIsCloneTransformer.js.map +1 -1
  95. package/lib/transformers/features/misc/MiscIsPruneTransformer.js +1 -1
  96. package/lib/transformers/features/misc/MiscIsPruneTransformer.js.map +1 -1
  97. package/lib/transformers/features/misc/MiscPruneTransformer.js +1 -1
  98. package/lib/transformers/features/misc/MiscPruneTransformer.js.map +1 -1
  99. package/lib/transformers/features/misc/MiscValidateCloneTransformer.js +1 -1
  100. package/lib/transformers/features/misc/MiscValidateCloneTransformer.js.map +1 -1
  101. package/lib/transformers/features/misc/MiscValidatePruneTransformer.js +1 -1
  102. package/lib/transformers/features/misc/MiscValidatePruneTransformer.js.map +1 -1
  103. package/lib/transformers/features/notations/NotationAssertGeneralTransformer.d.ts +4 -0
  104. package/lib/transformers/features/notations/NotationAssertGeneralTransformer.js +15 -0
  105. package/lib/transformers/features/notations/NotationAssertGeneralTransformer.js.map +1 -0
  106. package/lib/transformers/features/notations/NotationCreateAssertGeneralTransformer.d.ts +4 -0
  107. package/lib/transformers/features/notations/NotationCreateAssertGeneralTransformer.js +15 -0
  108. package/lib/transformers/features/notations/NotationCreateAssertGeneralTransformer.js.map +1 -0
  109. package/lib/transformers/features/notations/NotationCreateGeneralTransformer.d.ts +4 -0
  110. package/lib/transformers/features/notations/NotationCreateGeneralTransformer.js +15 -0
  111. package/lib/transformers/features/notations/NotationCreateGeneralTransformer.js.map +1 -0
  112. package/lib/transformers/features/notations/NotationCreateIsGeneralTransformer.d.ts +4 -0
  113. package/lib/transformers/features/notations/NotationCreateIsGeneralTransformer.js +15 -0
  114. package/lib/transformers/features/notations/NotationCreateIsGeneralTransformer.js.map +1 -0
  115. package/lib/transformers/features/notations/NotationCreateValidateGeneralTransformer.d.ts +4 -0
  116. package/lib/transformers/features/notations/NotationCreateValidateGeneralTransformer.js +15 -0
  117. package/lib/transformers/features/notations/NotationCreateValidateGeneralTransformer.js.map +1 -0
  118. package/lib/transformers/features/notations/NotationGeneralTransformer.d.ts +4 -0
  119. package/lib/transformers/features/notations/NotationGeneralTransformer.js +14 -0
  120. package/lib/transformers/features/notations/NotationGeneralTransformer.js.map +1 -0
  121. package/lib/transformers/features/notations/NotationIsGeneralTransformer.d.ts +4 -0
  122. package/lib/transformers/features/notations/NotationIsGeneralTransformer.js +15 -0
  123. package/lib/transformers/features/notations/NotationIsGeneralTransformer.js.map +1 -0
  124. package/lib/transformers/features/notations/NotationValidateGeneralTransformer.d.ts +4 -0
  125. package/lib/transformers/features/notations/NotationValidateGeneralTransformer.js +15 -0
  126. package/lib/transformers/features/notations/NotationValidateGeneralTransformer.js.map +1 -0
  127. package/lib/transformers/features/protobuf/{CreateProtobufAssertDecodeTransformer.d.ts → ProtobufCreateAssertDecodeTransformer.d.ts} +1 -1
  128. package/lib/transformers/features/protobuf/{CreateProtobufAssertDecodeTransformer.js → ProtobufCreateAssertDecodeTransformer.js} +6 -6
  129. package/lib/transformers/features/protobuf/{CreateProtobufAssertEncodeTransformer.js.map → ProtobufCreateAssertDecodeTransformer.js.map} +1 -1
  130. package/lib/transformers/features/protobuf/{CreateProtobufAssertEncodeTransformer.d.ts → ProtobufCreateAssertEncodeTransformer.d.ts} +1 -1
  131. package/lib/transformers/features/protobuf/{CreateProtobufAssertEncodeTransformer.js → ProtobufCreateAssertEncodeTransformer.js} +6 -6
  132. package/lib/transformers/features/protobuf/{CreateProtobufAssertDecodeTransformer.js.map → ProtobufCreateAssertEncodeTransformer.js.map} +1 -1
  133. package/lib/transformers/features/protobuf/{CreateProtobufDecodeTransformer.d.ts → ProtobufCreateDecodeTransformer.d.ts} +1 -1
  134. package/lib/transformers/features/protobuf/{CreateProtobufDecodeTransformer.js → ProtobufCreateDecodeTransformer.js} +6 -6
  135. package/lib/transformers/features/protobuf/{CreateProtobufDecodeTransformer.js.map → ProtobufCreateDecodeTransformer.js.map} +1 -1
  136. package/lib/transformers/features/protobuf/{CreateProtobufEncodeTransformer.d.ts → ProtobufCreateEncodeTransformer.d.ts} +1 -1
  137. package/lib/transformers/features/protobuf/{CreateProtobufEncodeTransformer.js → ProtobufCreateEncodeTransformer.js} +6 -6
  138. package/lib/transformers/features/protobuf/{CreateProtobufEncodeTransformer.js.map → ProtobufCreateEncodeTransformer.js.map} +1 -1
  139. package/lib/transformers/features/protobuf/{CreateProtobufIsDecodeTransformer.d.ts → ProtobufCreateIsDecodeTransformer.d.ts} +1 -1
  140. package/lib/transformers/features/protobuf/{CreateProtobufIsDecodeTransformer.js → ProtobufCreateIsDecodeTransformer.js} +6 -6
  141. package/lib/transformers/features/protobuf/{CreateProtobufIsDecodeTransformer.js.map → ProtobufCreateIsDecodeTransformer.js.map} +1 -1
  142. package/lib/transformers/features/protobuf/{CreateProtobufIsEncodeTransformer.d.ts → ProtobufCreateIsEncodeTransformer.d.ts} +1 -1
  143. package/lib/transformers/features/protobuf/{CreateProtobufIsEncodeTransformer.js → ProtobufCreateIsEncodeTransformer.js} +6 -6
  144. package/lib/transformers/features/protobuf/{CreateProtobufIsEncodeTransformer.js.map → ProtobufCreateIsEncodeTransformer.js.map} +1 -1
  145. package/lib/transformers/features/protobuf/{CreateProtobufValidateDecodeTransformer.d.ts → ProtobufCreateValidateDecodeTransformer.d.ts} +1 -1
  146. package/lib/transformers/features/protobuf/{CreateProtobufValidateDecodeTransformer.js → ProtobufCreateValidateDecodeTransformer.js} +6 -6
  147. package/lib/transformers/features/protobuf/{CreateProtobufValidateDecodeTransformer.js.map → ProtobufCreateValidateDecodeTransformer.js.map} +1 -1
  148. package/lib/transformers/features/protobuf/{CreateProtobufValidateEncodeTransformer.d.ts → ProtobufCreateValidateEncodeTransformer.d.ts} +1 -1
  149. package/lib/transformers/features/protobuf/{CreateProtobufValidateEncodeTransformer.js → ProtobufCreateValidateEncodeTransformer.js} +6 -6
  150. package/lib/transformers/features/protobuf/{CreateProtobufValidateEncodeTransformer.js.map → ProtobufCreateValidateEncodeTransformer.js.map} +1 -1
  151. package/lib/utils/NamingConvention.d.ts +5 -0
  152. package/lib/utils/NamingConvention.js +115 -0
  153. package/lib/utils/NamingConvention.js.map +1 -0
  154. package/lib/utils/StringUtil.d.ts +3 -0
  155. package/lib/utils/StringUtil.js +10 -0
  156. package/lib/utils/StringUtil.js.map +1 -0
  157. package/package.json +2 -1
  158. package/src/CamelCase.ts +116 -0
  159. package/src/PascalCase.ts +106 -0
  160. package/src/Primitive.ts +1 -1
  161. package/src/Resolved.ts +26 -26
  162. package/src/SnakeCase.ts +156 -0
  163. package/src/functional/$convention.ts +40 -0
  164. package/src/functional/Namespace.ts +22 -0
  165. package/src/module.ts +6 -1
  166. package/src/notations.ts +855 -0
  167. package/src/programmers/helpers/NotationJoiner.ts +146 -0
  168. package/src/programmers/misc/MiscCloneProgrammer.ts +17 -1
  169. package/src/programmers/misc/MiscPruneProgrammer.ts +4 -2
  170. package/src/programmers/notations/NotationAssertGeneralProgrammer.ts +72 -0
  171. package/src/programmers/notations/NotationGeneralProgrammer.ts +720 -0
  172. package/src/programmers/notations/NotationIsGeneralProgrammer.ts +79 -0
  173. package/src/programmers/notations/NotationValidateGeneralProgrammer.ts +88 -0
  174. package/src/transformers/CallExpressionTransformer.ts +107 -16
  175. package/src/transformers/features/json/JsonAssertParseTransformer.ts +1 -1
  176. package/src/transformers/features/json/JsonAssertStringifyTransformer.ts +1 -1
  177. package/src/transformers/features/json/JsonCreateAssertParseTransformer.ts +3 -1
  178. package/src/transformers/features/json/JsonCreateAssertStringifyTransformer.ts +1 -1
  179. package/src/transformers/features/json/JsonCreateIsParseTransformer.ts +1 -1
  180. package/src/transformers/features/json/JsonCreateIsStringifyTransformer.ts +3 -1
  181. package/src/transformers/features/json/JsonCreateStringifyTransformer.ts +1 -1
  182. package/src/transformers/features/json/JsonCreateValidateParseTransformer.ts +3 -1
  183. package/src/transformers/features/json/JsonCreateValidateStringifyProgrammer.ts +1 -1
  184. package/src/transformers/features/json/JsonIsParseTransformer.ts +1 -1
  185. package/src/transformers/features/json/JsonIsStringifyTransformer.ts +1 -1
  186. package/src/transformers/features/json/JsonStringifyTransformer.ts +1 -1
  187. package/src/transformers/features/json/JsonValidateParseTransformer.ts +1 -1
  188. package/src/transformers/features/json/JsonValidateStringifyTransformer.ts +1 -1
  189. package/src/transformers/features/misc/MiscAssertCloneTransformer.ts +1 -1
  190. package/src/transformers/features/misc/MiscAssertPruneTransformer.ts +1 -1
  191. package/src/transformers/features/misc/MiscCloneTransformer.ts +1 -1
  192. package/src/transformers/features/misc/MiscCreateAssertCloneTransformer.ts +3 -1
  193. package/src/transformers/features/misc/MiscCreateAssertPruneTransformer.ts +3 -1
  194. package/src/transformers/features/misc/MiscCreateCloneTransformer.ts +1 -1
  195. package/src/transformers/features/misc/MiscCreateIsCloneTransformer.ts +1 -1
  196. package/src/transformers/features/misc/MiscCreateIsPruneTransformer.ts +1 -1
  197. package/src/transformers/features/misc/MiscCreatePruneTransformer.ts +1 -1
  198. package/src/transformers/features/misc/MiscCreateValidateCloneTransformer.ts +3 -1
  199. package/src/transformers/features/misc/MiscCreateValidatePruneTransformer.ts +3 -1
  200. package/src/transformers/features/misc/MiscIsCloneTransformer.ts +1 -1
  201. package/src/transformers/features/misc/MiscIsPruneTransformer.ts +1 -1
  202. package/src/transformers/features/misc/MiscPruneTransformer.ts +1 -1
  203. package/src/transformers/features/misc/MiscValidateCloneTransformer.ts +1 -1
  204. package/src/transformers/features/misc/MiscValidatePruneTransformer.ts +1 -1
  205. package/src/transformers/features/notations/NotationAssertGeneralTransformer.ts +15 -0
  206. package/src/transformers/features/notations/NotationCreateAssertGeneralTransformer.ts +15 -0
  207. package/src/transformers/features/notations/NotationCreateGeneralTransformer.ts +15 -0
  208. package/src/transformers/features/notations/NotationCreateIsGeneralTransformer.ts +15 -0
  209. package/src/transformers/features/notations/NotationCreateValidateGeneralTransformer.ts +17 -0
  210. package/src/transformers/features/notations/NotationGeneralTransformer.ts +11 -0
  211. package/src/transformers/features/notations/NotationIsGeneralTransformer.ts +15 -0
  212. package/src/transformers/features/notations/NotationValidateGeneralTransformer.ts +17 -0
  213. package/src/transformers/features/protobuf/{CreateProtobufAssertDecodeTransformer.ts → ProtobufCreateAssertDecodeTransformer.ts} +1 -1
  214. package/src/transformers/features/protobuf/{CreateProtobufAssertEncodeTransformer.ts → ProtobufCreateAssertEncodeTransformer.ts} +1 -1
  215. package/src/transformers/features/protobuf/{CreateProtobufDecodeTransformer.ts → ProtobufCreateDecodeTransformer.ts} +1 -1
  216. package/src/transformers/features/protobuf/{CreateProtobufEncodeTransformer.ts → ProtobufCreateEncodeTransformer.ts} +1 -1
  217. package/src/transformers/features/protobuf/{CreateProtobufIsDecodeTransformer.ts → ProtobufCreateIsDecodeTransformer.ts} +1 -1
  218. package/src/transformers/features/protobuf/{CreateProtobufIsEncodeTransformer.ts → ProtobufCreateIsEncodeTransformer.ts} +1 -1
  219. package/src/transformers/features/protobuf/{CreateProtobufValidateDecodeTransformer.ts → ProtobufCreateValidateDecodeTransformer.ts} +1 -1
  220. package/src/transformers/features/protobuf/{CreateProtobufValidateEncodeTransformer.ts → ProtobufCreateValidateEncodeTransformer.ts} +1 -1
  221. package/src/utils/NamingConvention.ts +91 -0
  222. package/src/utils/StringUtil.ts +4 -0
@@ -0,0 +1,79 @@
1
+ import ts from "typescript";
2
+
3
+ import { IdentifierFactory } from "../../factories/IdentifierFactory";
4
+ import { StatementFactory } from "../../factories/StatementFactory";
5
+ import { TypeFactory } from "../../factories/TypeFactory";
6
+
7
+ import { IProject } from "../../transformers/IProject";
8
+
9
+ import { IsProgrammer } from "../IsProgrammer";
10
+ import { NotationGeneralProgrammer } from "./NotationGeneralProgrammer";
11
+
12
+ export namespace NotationIsGeneralProgrammer {
13
+ export const write =
14
+ (rename: (str: string) => string) =>
15
+ (project: IProject) =>
16
+ (modulo: ts.LeftHandSideExpression) =>
17
+ (type: ts.Type, name?: string) =>
18
+ ts.factory.createArrowFunction(
19
+ undefined,
20
+ undefined,
21
+ [
22
+ IdentifierFactory.parameter(
23
+ "input",
24
+ TypeFactory.keyword("any"),
25
+ ),
26
+ ],
27
+ ts.factory.createUnionTypeNode([
28
+ ts.factory.createTypeReferenceNode(
29
+ NotationGeneralProgrammer.returnType(rename)(
30
+ name ??
31
+ TypeFactory.getFullName(project.checker)(type),
32
+ ),
33
+ ),
34
+ ts.factory.createLiteralTypeNode(ts.factory.createNull()),
35
+ ]),
36
+ undefined,
37
+ ts.factory.createBlock([
38
+ StatementFactory.constant(
39
+ "is",
40
+ IsProgrammer.write(project)(modulo)(false)(type, name),
41
+ ),
42
+ StatementFactory.constant(
43
+ "general",
44
+ NotationGeneralProgrammer.write(rename)({
45
+ ...project,
46
+ options: {
47
+ ...project.options,
48
+ functional: false,
49
+ numeric: false,
50
+ },
51
+ })(modulo)(type, name),
52
+ ),
53
+ ts.factory.createIfStatement(
54
+ ts.factory.createPrefixUnaryExpression(
55
+ ts.SyntaxKind.ExclamationToken,
56
+ ts.factory.createCallExpression(
57
+ ts.factory.createIdentifier("is"),
58
+ undefined,
59
+ [ts.factory.createIdentifier("input")],
60
+ ),
61
+ ),
62
+ ts.factory.createReturnStatement(
63
+ ts.factory.createNull(),
64
+ ),
65
+ ),
66
+ StatementFactory.constant(
67
+ "output",
68
+ ts.factory.createCallExpression(
69
+ ts.factory.createIdentifier("general"),
70
+ undefined,
71
+ [ts.factory.createIdentifier("input")],
72
+ ),
73
+ ),
74
+ ts.factory.createReturnStatement(
75
+ ts.factory.createIdentifier("output"),
76
+ ),
77
+ ]),
78
+ );
79
+ }
@@ -0,0 +1,88 @@
1
+ import ts from "typescript";
2
+
3
+ import { IdentifierFactory } from "../../factories/IdentifierFactory";
4
+ import { StatementFactory } from "../../factories/StatementFactory";
5
+ import { TypeFactory } from "../../factories/TypeFactory";
6
+
7
+ import { IProject } from "../../transformers/IProject";
8
+
9
+ import { ValidateProgrammer } from "../ValidateProgrammer";
10
+ import { NotationGeneralProgrammer } from "./NotationGeneralProgrammer";
11
+
12
+ export namespace NotationValidateGeneralProgrammer {
13
+ export const write =
14
+ (rename: (str: string) => string) =>
15
+ (project: IProject) =>
16
+ (modulo: ts.LeftHandSideExpression) =>
17
+ (type: ts.Type, name?: string) =>
18
+ ts.factory.createArrowFunction(
19
+ undefined,
20
+ undefined,
21
+ [
22
+ IdentifierFactory.parameter(
23
+ "input",
24
+ TypeFactory.keyword("any"),
25
+ ),
26
+ ],
27
+ ts.factory.createTypeReferenceNode(
28
+ `typia.IValidation<${NotationGeneralProgrammer.returnType(
29
+ rename,
30
+ )(
31
+ name ?? TypeFactory.getFullName(project.checker)(type),
32
+ )}>`,
33
+ ),
34
+ undefined,
35
+ ts.factory.createBlock([
36
+ StatementFactory.constant(
37
+ "validate",
38
+ ValidateProgrammer.write({
39
+ ...project,
40
+ options: {
41
+ ...project.options,
42
+ functional: false,
43
+ numeric: true,
44
+ },
45
+ })(modulo)(false)(type, name),
46
+ ),
47
+ StatementFactory.constant(
48
+ "general",
49
+ NotationGeneralProgrammer.write(rename)({
50
+ ...project,
51
+ options: {
52
+ ...project.options,
53
+ functional: false,
54
+ numeric: false,
55
+ },
56
+ })(modulo)(type, name),
57
+ ),
58
+ StatementFactory.constant(
59
+ "output",
60
+ ts.factory.createAsExpression(
61
+ ts.factory.createCallExpression(
62
+ ts.factory.createIdentifier("validate"),
63
+ undefined,
64
+ [ts.factory.createIdentifier("input")],
65
+ ),
66
+ TypeFactory.keyword("any"),
67
+ ),
68
+ ),
69
+ ts.factory.createIfStatement(
70
+ ts.factory.createIdentifier("output.success"),
71
+ ts.factory.createExpressionStatement(
72
+ ts.factory.createBinaryExpression(
73
+ ts.factory.createIdentifier("output.data"),
74
+ ts.SyntaxKind.EqualsToken,
75
+ ts.factory.createCallExpression(
76
+ ts.factory.createIdentifier("general"),
77
+ undefined,
78
+ [ts.factory.createIdentifier("input")],
79
+ ),
80
+ ),
81
+ ),
82
+ ),
83
+ ts.factory.createReturnStatement(
84
+ ts.factory.createIdentifier("output"),
85
+ ),
86
+ ]),
87
+ );
88
+ }
@@ -1,6 +1,8 @@
1
1
  import path from "path";
2
2
  import ts from "typescript";
3
3
 
4
+ import { NamingConvention } from "../utils/NamingConvention";
5
+
4
6
  import { IProject } from "./IProject";
5
7
  import { AssertTransformer } from "./features/AssertTransformer";
6
8
  import { CreateAssertTransformer } from "./features/CreateAssertTransformer";
@@ -61,16 +63,24 @@ import { MiscLiteralsTransformer } from "./features/misc/MiscLiteralsTransformer
61
63
  import { MiscPruneTransformer } from "./features/misc/MiscPruneTransformer";
62
64
  import { MiscValidateCloneTransformer } from "./features/misc/MiscValidateCloneTransformer";
63
65
  import { MiscValidatePruneTransformer } from "./features/misc/MiscValidatePruneTransformer";
64
- import { CreateProtobufAssertDecodeTransformer } from "./features/protobuf/CreateProtobufAssertDecodeTransformer";
65
- import { CreateProtobufAssertEncodeTransformer } from "./features/protobuf/CreateProtobufAssertEncodeTransformer";
66
- import { CreateProtobufDecodeTransformer } from "./features/protobuf/CreateProtobufDecodeTransformer";
67
- import { CreateProtobufEncodeTransformer } from "./features/protobuf/CreateProtobufEncodeTransformer";
68
- import { CreateProtobufIsDecodeTransformer } from "./features/protobuf/CreateProtobufIsDecodeTransformer";
69
- import { CreateProtobufIsEncodeTransformer } from "./features/protobuf/CreateProtobufIsEncodeTransformer";
70
- import { CreateProtobufValidateDecodeTransformer } from "./features/protobuf/CreateProtobufValidateDecodeTransformer";
71
- import { CreateProtobufValidateEncodeTransformer } from "./features/protobuf/CreateProtobufValidateEncodeTransformer";
66
+ import { NotationAssertGeneralTransformer } from "./features/notations/NotationAssertGeneralTransformer";
67
+ import { NotationCreateAssertGeneralTransformer } from "./features/notations/NotationCreateAssertGeneralTransformer";
68
+ import { NotationCreateGeneralTransformer } from "./features/notations/NotationCreateGeneralTransformer";
69
+ import { NotationCreateIsGeneralTransformer } from "./features/notations/NotationCreateIsGeneralTransformer";
70
+ import { NotationCreateValidateGeneralTransformer } from "./features/notations/NotationCreateValidateGeneralTransformer";
71
+ import { NotationGeneralTransformer } from "./features/notations/NotationGeneralTransformer";
72
+ import { NotationIsGeneralTransformer } from "./features/notations/NotationIsGeneralTransformer";
73
+ import { NotationValidateGeneralTransformer } from "./features/notations/NotationValidateGeneralTransformer";
72
74
  import { ProtobufAssertDecodeTransformer } from "./features/protobuf/ProtobufAssertDecodeTransformer";
73
75
  import { ProtobufAssertEncodeTransformer } from "./features/protobuf/ProtobufAssertEncodeTransformer";
76
+ import { ProtobufCreateAssertDecodeTransformer } from "./features/protobuf/ProtobufCreateAssertDecodeTransformer";
77
+ import { ProtobufCreateAssertEncodeTransformer } from "./features/protobuf/ProtobufCreateAssertEncodeTransformer";
78
+ import { ProtobufCreateDecodeTransformer } from "./features/protobuf/ProtobufCreateDecodeTransformer";
79
+ import { ProtobufCreateEncodeTransformer } from "./features/protobuf/ProtobufCreateEncodeTransformer";
80
+ import { ProtobufCreateIsDecodeTransformer } from "./features/protobuf/ProtobufCreateIsDecodeTransformer";
81
+ import { ProtobufCreateIsEncodeTransformer } from "./features/protobuf/ProtobufCreateIsEncodeTransformer";
82
+ import { ProtobufCreateValidateDecodeTransformer } from "./features/protobuf/ProtobufCreateValidateDecodeTransformer";
83
+ import { ProtobufCreateValidateEncodeTransformer } from "./features/protobuf/ProtobufCreateValidateEncodeTransformer";
74
84
  import { ProtobufDecodeTransformer } from "./features/protobuf/ProtobufDecodeTransformer";
75
85
  import { ProtobufEncodeTransformer } from "./features/protobuf/ProtobufEncodeTransformer";
76
86
  import { ProtobufIsDecodeTransformer } from "./features/protobuf/ProtobufIsDecodeTransformer";
@@ -247,18 +257,18 @@ const FUNCTORS: Record<string, Record<string, () => Task>> = {
247
257
  validateDecode: () => ProtobufValidateDecodeTransformer.transform,
248
258
 
249
259
  // FACTORIES
250
- createEncode: () => CreateProtobufEncodeTransformer.transform,
260
+ createEncode: () => ProtobufCreateEncodeTransformer.transform,
251
261
  createAssertEncode: () =>
252
- CreateProtobufAssertEncodeTransformer.transform,
253
- createIsEncode: () => CreateProtobufIsEncodeTransformer.transform,
262
+ ProtobufCreateAssertEncodeTransformer.transform,
263
+ createIsEncode: () => ProtobufCreateIsEncodeTransformer.transform,
254
264
  createValidateEncode: () =>
255
- CreateProtobufValidateEncodeTransformer.transform,
256
- createDecode: () => CreateProtobufDecodeTransformer.transform,
265
+ ProtobufCreateValidateEncodeTransformer.transform,
266
+ createDecode: () => ProtobufCreateDecodeTransformer.transform,
257
267
  createAssertDecode: () =>
258
- CreateProtobufAssertDecodeTransformer.transform,
259
- createIsDecode: () => CreateProtobufIsDecodeTransformer.transform,
268
+ ProtobufCreateAssertDecodeTransformer.transform,
269
+ createIsDecode: () => ProtobufCreateIsDecodeTransformer.transform,
260
270
  createValidateDecode: () =>
261
- CreateProtobufValidateDecodeTransformer.transform,
271
+ ProtobufCreateValidateDecodeTransformer.transform,
262
272
  },
263
273
  misc: {
264
274
  literals: () => (project) => () =>
@@ -286,4 +296,85 @@ const FUNCTORS: Record<string, Record<string, () => Task>> = {
286
296
  createIsPrune: () => MiscCreateIsPruneTransformer.transform,
287
297
  createValidatePrune: () => MiscCreateValidatePruneTransformer.transform,
288
298
  },
299
+ notations: {
300
+ // CAMEL
301
+ camel: () =>
302
+ NotationGeneralTransformer.transform(NamingConvention.camel),
303
+ assertCamel: () =>
304
+ NotationAssertGeneralTransformer.transform(NamingConvention.camel),
305
+ isCamel: () =>
306
+ NotationIsGeneralTransformer.transform(NamingConvention.camel),
307
+ validateCamel: () =>
308
+ NotationValidateGeneralTransformer.transform(
309
+ NamingConvention.camel,
310
+ ),
311
+
312
+ // PASCAL
313
+ pascal: () =>
314
+ NotationGeneralTransformer.transform(NamingConvention.pascal),
315
+ assertPascal: () =>
316
+ NotationAssertGeneralTransformer.transform(NamingConvention.pascal),
317
+ isPascal: () =>
318
+ NotationIsGeneralTransformer.transform(NamingConvention.pascal),
319
+ validatePascal: () =>
320
+ NotationValidateGeneralTransformer.transform(
321
+ NamingConvention.pascal,
322
+ ),
323
+
324
+ // SNAKE
325
+ snake: () =>
326
+ NotationGeneralTransformer.transform(NamingConvention.snake),
327
+ assertSnake: () =>
328
+ NotationAssertGeneralTransformer.transform(NamingConvention.snake),
329
+ isSnake: () =>
330
+ NotationIsGeneralTransformer.transform(NamingConvention.snake),
331
+ validateSnake: () =>
332
+ NotationValidateGeneralTransformer.transform(
333
+ NamingConvention.snake,
334
+ ),
335
+
336
+ // FACTORIES
337
+ createCamel: () =>
338
+ NotationCreateGeneralTransformer.transform(NamingConvention.camel),
339
+ createAssertCamel: () =>
340
+ NotationCreateAssertGeneralTransformer.transform(
341
+ NamingConvention.camel,
342
+ ),
343
+ createIsCamel: () =>
344
+ NotationCreateIsGeneralTransformer.transform(
345
+ NamingConvention.camel,
346
+ ),
347
+ createValidateCamel: () =>
348
+ NotationCreateValidateGeneralTransformer.transform(
349
+ NamingConvention.camel,
350
+ ),
351
+ createPascal: () =>
352
+ NotationCreateGeneralTransformer.transform(NamingConvention.pascal),
353
+ createAssertPascal: () =>
354
+ NotationCreateAssertGeneralTransformer.transform(
355
+ NamingConvention.pascal,
356
+ ),
357
+ createIsPascal: () =>
358
+ NotationCreateIsGeneralTransformer.transform(
359
+ NamingConvention.pascal,
360
+ ),
361
+ createValidatePascal: () =>
362
+ NotationCreateValidateGeneralTransformer.transform(
363
+ NamingConvention.pascal,
364
+ ),
365
+ createSnake: () =>
366
+ NotationCreateGeneralTransformer.transform(NamingConvention.snake),
367
+ createAssertSnake: () =>
368
+ NotationCreateAssertGeneralTransformer.transform(
369
+ NamingConvention.snake,
370
+ ),
371
+ createIsSnake: () =>
372
+ NotationCreateIsGeneralTransformer.transform(
373
+ NamingConvention.snake,
374
+ ),
375
+ createValidateSnake: () =>
376
+ NotationCreateValidateGeneralTransformer.transform(
377
+ NamingConvention.snake,
378
+ ),
379
+ },
289
380
  };
@@ -3,7 +3,7 @@ import { JsonAssertParseProgrammer } from "../../../programmers/json/JsonAssertP
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace JsonAssertParseTransformer {
6
- export const transform = GenericTransformer.scalar("assertParse")(
6
+ export const transform = GenericTransformer.scalar("json.assertParse")(
7
7
  (project) => (modulo) =>
8
8
  JsonAssertParseProgrammer.write(project)(modulo),
9
9
  );
@@ -3,7 +3,7 @@ import { JsonAssertStringifyProgrammer } from "../../../programmers/json/JsonAss
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace JsonAssertStringifyTransformer {
6
- export const transform = GenericTransformer.scalar("assertStringify")(
6
+ export const transform = GenericTransformer.scalar("json.assertStringify")(
7
7
  (project) => (modulo) =>
8
8
  JsonAssertStringifyProgrammer.write(project)(modulo),
9
9
  );
@@ -3,7 +3,9 @@ import { JsonAssertParseProgrammer } from "../../../programmers/json/JsonAssertP
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace JsonCreateAssertParseTransformer {
6
- export const transform = GenericTransformer.factory("createAssertParse")(
6
+ export const transform = GenericTransformer.factory(
7
+ "json.createAssertParse",
8
+ )(
7
9
  (project) => (modulo) =>
8
10
  JsonAssertParseProgrammer.write(project)(modulo),
9
11
  );
@@ -4,7 +4,7 @@ import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace JsonCreateAssertStringifyTransformer {
6
6
  export const transform = GenericTransformer.factory(
7
- "createAssertStringify",
7
+ "json.createAssertStringify",
8
8
  )(
9
9
  (project) => (modulo) =>
10
10
  JsonAssertStringifyProgrammer.write(project)(modulo),
@@ -3,7 +3,7 @@ import { JsonIsParseProgrammer } from "../../../programmers/json/JsonIsParseProg
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace JsonCreateIsParseTransformer {
6
- export const transform = GenericTransformer.factory("createIsParse")(
6
+ export const transform = GenericTransformer.factory("json.createIsParse")(
7
7
  (project) => (modulo) => JsonIsParseProgrammer.write(project)(modulo),
8
8
  );
9
9
  }
@@ -3,7 +3,9 @@ import { JsonIsStringifyProgrammer } from "../../../programmers/json/JsonIsStrin
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace JsonCreateIsStringifyTransformer {
6
- export const transform = GenericTransformer.factory("createIsStringify")(
6
+ export const transform = GenericTransformer.factory(
7
+ "json.createIsStringify",
8
+ )(
7
9
  (project) => (modulo) =>
8
10
  JsonIsStringifyProgrammer.write(project)(modulo),
9
11
  );
@@ -3,7 +3,7 @@ import { JsonStringifyProgrammer } from "../../../programmers/json/JsonStringify
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace JsonCreateStringifyTransformer {
6
- export const transform = GenericTransformer.factory("createStringify")(
6
+ export const transform = GenericTransformer.factory("json.createStringify")(
7
7
  (project) => (modulo) => JsonStringifyProgrammer.write(project)(modulo),
8
8
  );
9
9
  }
@@ -3,7 +3,9 @@ import { JsonValidateParseProgrammer } from "../../../programmers/json/JsonValid
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace JsonCreateValidateParseTransformer {
6
- export const transform = GenericTransformer.factory("createValidateParse")(
6
+ export const transform = GenericTransformer.factory(
7
+ "json.createValidateParse",
8
+ )(
7
9
  (project) => (modulo) =>
8
10
  JsonValidateParseProgrammer.write(project)(modulo),
9
11
  );
@@ -4,7 +4,7 @@ import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace JsonCreateValidateStringifyTransformer {
6
6
  export const transform = GenericTransformer.factory(
7
- "createValidateStringify",
7
+ "json.createValidateStringify",
8
8
  )(
9
9
  (project) => (modulo) =>
10
10
  JsonValidateStringifyProgrammer.write(project)(modulo),
@@ -3,7 +3,7 @@ import { JsonIsParseProgrammer } from "../../../programmers/json/JsonIsParseProg
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace JsonIsParseTransformer {
6
- export const transform = GenericTransformer.scalar("isParse")(
6
+ export const transform = GenericTransformer.scalar("json.isParse")(
7
7
  (project) => (modulo) => JsonIsParseProgrammer.write(project)(modulo),
8
8
  );
9
9
  }
@@ -3,7 +3,7 @@ import { JsonIsStringifyProgrammer } from "../../../programmers/json/JsonIsStrin
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace JsonIsStringifyTransformer {
6
- export const transform = GenericTransformer.scalar("isStringify")(
6
+ export const transform = GenericTransformer.scalar("json.isStringify")(
7
7
  (project) => (modulo) =>
8
8
  JsonIsStringifyProgrammer.write(project)(modulo),
9
9
  );
@@ -3,7 +3,7 @@ import { JsonStringifyProgrammer } from "../../../programmers/json/JsonStringify
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace JsonStringifyTransformer {
6
- export const transform = GenericTransformer.scalar("stringify")(
6
+ export const transform = GenericTransformer.scalar("json.stringify")(
7
7
  (project) => (modulo) => JsonStringifyProgrammer.write(project)(modulo),
8
8
  );
9
9
  }
@@ -3,7 +3,7 @@ import { JsonValidateParseProgrammer } from "../../../programmers/json/JsonValid
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace JsonValidateParseTransformer {
6
- export const transform = GenericTransformer.scalar("validatParse")(
6
+ export const transform = GenericTransformer.scalar("json.validatParse")(
7
7
  (project) => (modulo) =>
8
8
  JsonValidateParseProgrammer.write(project)(modulo),
9
9
  );
@@ -3,7 +3,7 @@ import { JsonValidateStringifyProgrammer } from "../../../programmers/json/JsonV
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace JsonValidateStringifyTransformer {
6
- export const transform = GenericTransformer.scalar("validatStringify")(
6
+ export const transform = GenericTransformer.scalar("json.validatStringify")(
7
7
  (project) => (modulo) =>
8
8
  JsonValidateStringifyProgrammer.write(project)(modulo),
9
9
  );
@@ -3,7 +3,7 @@ import { MiscAssertCloneProgrammer } from "../../../programmers/misc/MiscAssertC
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace MiscAssertCloneTransformer {
6
- export const transform = GenericTransformer.scalar("assertClone")(
6
+ export const transform = GenericTransformer.scalar("misc.assertClone")(
7
7
  (project) => (modulo) =>
8
8
  MiscAssertCloneProgrammer.write(project)(modulo),
9
9
  );
@@ -3,7 +3,7 @@ import { MiscAssertPruneProgrammer } from "../../../programmers/misc/MiscAssertP
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace MiscAssertPruneTransformer {
6
- export const transform = GenericTransformer.scalar("assertPrune")(
6
+ export const transform = GenericTransformer.scalar("misc.assertPrune")(
7
7
  (project) => (modulo) =>
8
8
  MiscAssertPruneProgrammer.write(project)(modulo),
9
9
  );
@@ -3,7 +3,7 @@ import { MiscCloneProgrammer } from "../../../programmers/misc/MiscCloneProgramm
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace MiscCloneTransformer {
6
- export const transform = GenericTransformer.scalar("clone")(
6
+ export const transform = GenericTransformer.scalar("misc.clone")(
7
7
  (project) => (modulo) => MiscCloneProgrammer.write(project)(modulo),
8
8
  );
9
9
  }
@@ -3,7 +3,9 @@ import { MiscAssertCloneProgrammer } from "../../../programmers/misc/MiscAssertC
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace MiscCreateAssertCloneTransformer {
6
- export const transform = GenericTransformer.factory("createAssertClone")(
6
+ export const transform = GenericTransformer.factory(
7
+ "misc.createAssertClone",
8
+ )(
7
9
  (project) => (modulo) =>
8
10
  MiscAssertCloneProgrammer.write(project)(modulo),
9
11
  );
@@ -3,7 +3,9 @@ import { MiscAssertPruneProgrammer } from "../../../programmers/misc/MiscAssertP
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace MiscCreateAssertPruneTransformer {
6
- export const transform = GenericTransformer.factory("createAssertPrune")(
6
+ export const transform = GenericTransformer.factory(
7
+ "misc.createAssertPrune",
8
+ )(
7
9
  (project) => (modulo) =>
8
10
  MiscAssertPruneProgrammer.write(project)(modulo),
9
11
  );
@@ -3,7 +3,7 @@ import { MiscCloneProgrammer } from "../../../programmers/misc/MiscCloneProgramm
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace MiscCreateCloneTransformer {
6
- export const transform = GenericTransformer.factory("createClone")(
6
+ export const transform = GenericTransformer.factory("misc.createClone")(
7
7
  (project) => (modulo) => MiscCloneProgrammer.write(project)(modulo),
8
8
  );
9
9
  }
@@ -3,7 +3,7 @@ import { MiscIsCloneProgrammer } from "../../../programmers/misc/MiscIsCloneProg
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace MiscCreateIsCloneTransformer {
6
- export const transform = GenericTransformer.factory("createIsClone")(
6
+ export const transform = GenericTransformer.factory("misc.createIsClone")(
7
7
  (project) => (modulo) => MiscIsCloneProgrammer.write(project)(modulo),
8
8
  );
9
9
  }
@@ -3,7 +3,7 @@ import { MiscIsPruneProgrammer } from "../../../programmers/misc/MiscIsPruneProg
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace MiscCreateIsPruneTransformer {
6
- export const transform = GenericTransformer.factory("createIsPrune")(
6
+ export const transform = GenericTransformer.factory("misc.createIsPrune")(
7
7
  (project) => (modulo) => MiscIsPruneProgrammer.write(project)(modulo),
8
8
  );
9
9
  }
@@ -3,7 +3,7 @@ import { MiscPruneProgrammer } from "../../../programmers/misc/MiscPruneProgramm
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace MiscCreatePruneTransformer {
6
- export const transform = GenericTransformer.factory("createPrune")(
6
+ export const transform = GenericTransformer.factory("misc.createPrune")(
7
7
  (project) => (modulo) => MiscPruneProgrammer.write(project)(modulo),
8
8
  );
9
9
  }
@@ -3,7 +3,9 @@ import { MiscValidateCloneProgrammer } from "../../../programmers/misc/MiscValid
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace MiscCreateValidateCloneTransformer {
6
- export const transform = GenericTransformer.factory("createValidateClone")(
6
+ export const transform = GenericTransformer.factory(
7
+ "misc.createValidateClone",
8
+ )(
7
9
  (project) => (modulo) =>
8
10
  MiscValidateCloneProgrammer.write(project)(modulo),
9
11
  );
@@ -3,7 +3,9 @@ import { MiscValidatePruneProgrammer } from "../../../programmers/misc/MiscValid
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace MiscCreateValidatePruneTransformer {
6
- export const transform = GenericTransformer.factory("createValidatePrune")(
6
+ export const transform = GenericTransformer.factory(
7
+ "misc.createValidatePrune",
8
+ )(
7
9
  (project) => (modulo) =>
8
10
  MiscValidatePruneProgrammer.write(project)(modulo),
9
11
  );
@@ -3,7 +3,7 @@ import { MiscIsCloneProgrammer } from "../../../programmers/misc/MiscIsCloneProg
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace MiscIsCloneTransformer {
6
- export const transform = GenericTransformer.scalar("isClone")(
6
+ export const transform = GenericTransformer.scalar("misc.isClone")(
7
7
  (project) => (modulo) => MiscIsCloneProgrammer.write(project)(modulo),
8
8
  );
9
9
  }
@@ -3,7 +3,7 @@ import { MiscIsPruneProgrammer } from "../../../programmers/misc/MiscIsPruneProg
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace MiscIsPruneTransformer {
6
- export const transform = GenericTransformer.scalar("isPrune")(
6
+ export const transform = GenericTransformer.scalar("misc.isPrune")(
7
7
  (project) => (modulo) => MiscIsPruneProgrammer.write(project)(modulo),
8
8
  );
9
9
  }
@@ -3,7 +3,7 @@ import { MiscPruneProgrammer } from "../../../programmers/misc/MiscPruneProgramm
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace MiscPruneTransformer {
6
- export const transform = GenericTransformer.scalar("prune")(
6
+ export const transform = GenericTransformer.scalar("misc.prune")(
7
7
  (project) => (modulo) => MiscPruneProgrammer.write(project)(modulo),
8
8
  );
9
9
  }
@@ -3,7 +3,7 @@ import { MiscValidateCloneProgrammer } from "../../../programmers/misc/MiscValid
3
3
  import { GenericTransformer } from "../../internal/GenericTransformer";
4
4
 
5
5
  export namespace MiscValidateCloneTransformer {
6
- export const transform = GenericTransformer.scalar("validatClone")(
6
+ export const transform = GenericTransformer.scalar("misc.validatClone")(
7
7
  (project) => (modulo) =>
8
8
  MiscValidateCloneProgrammer.write(project)(modulo),
9
9
  );