@nestia/sdk 12.0.0-dev.20260612.2 → 12.0.0-dev.20260619.1

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 (93) hide show
  1. package/assets/bundle/distribute/package.json +1 -1
  2. package/lib/factories/ExpressionFactory.d.ts +9 -0
  3. package/lib/factories/ExpressionFactory.js +16 -0
  4. package/lib/factories/ExpressionFactory.js.map +1 -0
  5. package/lib/factories/IdentifierFactory.d.ts +22 -0
  6. package/lib/factories/IdentifierFactory.js +50 -0
  7. package/lib/factories/IdentifierFactory.js.map +1 -0
  8. package/lib/factories/LiteralFactory.d.ts +9 -0
  9. package/lib/factories/LiteralFactory.js +48 -0
  10. package/lib/factories/LiteralFactory.js.map +1 -0
  11. package/lib/factories/StatementFactory.d.ts +14 -0
  12. package/lib/factories/StatementFactory.js +20 -0
  13. package/lib/factories/StatementFactory.js.map +1 -0
  14. package/lib/factories/TypeFactory.d.ts +24 -0
  15. package/lib/factories/TypeFactory.js +27 -0
  16. package/lib/factories/TypeFactory.js.map +1 -0
  17. package/lib/generates/CloneGenerator.js +2 -2
  18. package/lib/generates/CloneGenerator.js.map +1 -1
  19. package/lib/generates/internal/E2eFileProgrammer.js +30 -29
  20. package/lib/generates/internal/E2eFileProgrammer.js.map +1 -1
  21. package/lib/generates/internal/FilePrinter.d.ts +2 -2
  22. package/lib/generates/internal/FilePrinter.js +14 -25
  23. package/lib/generates/internal/FilePrinter.js.map +1 -1
  24. package/lib/generates/internal/ImportDictionary.d.ts +1 -1
  25. package/lib/generates/internal/ImportDictionary.js +10 -9
  26. package/lib/generates/internal/ImportDictionary.js.map +1 -1
  27. package/lib/generates/internal/SdkAliasCollection.d.ts +12 -12
  28. package/lib/generates/internal/SdkAliasCollection.js +23 -25
  29. package/lib/generates/internal/SdkAliasCollection.js.map +1 -1
  30. package/lib/generates/internal/SdkFileProgrammer.js +2 -2
  31. package/lib/generates/internal/SdkFileProgrammer.js.map +1 -1
  32. package/lib/generates/internal/SdkHttpCloneProgrammer.d.ts +1 -1
  33. package/lib/generates/internal/SdkHttpCloneProgrammer.js +3 -3
  34. package/lib/generates/internal/SdkHttpCloneProgrammer.js.map +1 -1
  35. package/lib/generates/internal/SdkHttpFunctionProgrammer.d.ts +1 -1
  36. package/lib/generates/internal/SdkHttpFunctionProgrammer.js +45 -48
  37. package/lib/generates/internal/SdkHttpFunctionProgrammer.js.map +1 -1
  38. package/lib/generates/internal/SdkHttpNamespaceProgrammer.d.ts +1 -1
  39. package/lib/generates/internal/SdkHttpNamespaceProgrammer.js +61 -60
  40. package/lib/generates/internal/SdkHttpNamespaceProgrammer.js.map +1 -1
  41. package/lib/generates/internal/SdkHttpParameterProgrammer.d.ts +2 -2
  42. package/lib/generates/internal/SdkHttpParameterProgrammer.js +11 -13
  43. package/lib/generates/internal/SdkHttpParameterProgrammer.js.map +1 -1
  44. package/lib/generates/internal/SdkHttpRouteProgrammer.d.ts +1 -1
  45. package/lib/generates/internal/SdkHttpSimulationProgrammer.d.ts +1 -1
  46. package/lib/generates/internal/SdkHttpSimulationProgrammer.js +50 -48
  47. package/lib/generates/internal/SdkHttpSimulationProgrammer.js.map +1 -1
  48. package/lib/generates/internal/SdkMcpRouteProgrammer.d.ts +1 -1
  49. package/lib/generates/internal/SdkMcpRouteProgrammer.js +54 -53
  50. package/lib/generates/internal/SdkMcpRouteProgrammer.js.map +1 -1
  51. package/lib/generates/internal/SdkTypeProgrammer.d.ts +3 -3
  52. package/lib/generates/internal/SdkTypeProgrammer.js +42 -43
  53. package/lib/generates/internal/SdkTypeProgrammer.js.map +1 -1
  54. package/lib/generates/internal/SdkTypeTagProgrammer.d.ts +2 -1
  55. package/lib/generates/internal/SdkTypeTagProgrammer.js +7 -9
  56. package/lib/generates/internal/SdkTypeTagProgrammer.js.map +1 -1
  57. package/lib/generates/internal/SdkWebSocketNamespaceProgrammer.d.ts +2 -2
  58. package/lib/generates/internal/SdkWebSocketNamespaceProgrammer.js +45 -47
  59. package/lib/generates/internal/SdkWebSocketNamespaceProgrammer.js.map +1 -1
  60. package/lib/generates/internal/SdkWebSocketParameterProgrammer.d.ts +3 -3
  61. package/lib/generates/internal/SdkWebSocketParameterProgrammer.js +9 -9
  62. package/lib/generates/internal/SdkWebSocketParameterProgrammer.js.map +1 -1
  63. package/lib/generates/internal/SdkWebSocketRouteProgrammer.d.ts +2 -2
  64. package/lib/generates/internal/SdkWebSocketRouteProgrammer.js +34 -40
  65. package/lib/generates/internal/SdkWebSocketRouteProgrammer.js.map +1 -1
  66. package/lib/transform.d.ts +5 -9
  67. package/lib/transform.js +8 -31
  68. package/lib/transform.js.map +1 -1
  69. package/package.json +11 -11
  70. package/src/factories/ExpressionFactory.ts +23 -0
  71. package/src/factories/IdentifierFactory.ts +84 -0
  72. package/src/factories/LiteralFactory.ts +54 -0
  73. package/src/factories/StatementFactory.ts +56 -0
  74. package/src/factories/TypeFactory.ts +27 -0
  75. package/src/generates/CloneGenerator.ts +8 -7
  76. package/src/generates/internal/E2eFileProgrammer.ts +59 -53
  77. package/src/generates/internal/FilePrinter.ts +28 -36
  78. package/src/generates/internal/ImportDictionary.ts +19 -21
  79. package/src/generates/internal/SdkAliasCollection.ts +55 -49
  80. package/src/generates/internal/SdkFileProgrammer.ts +4 -7
  81. package/src/generates/internal/SdkHttpCloneProgrammer.ts +11 -13
  82. package/src/generates/internal/SdkHttpFunctionProgrammer.ts +90 -101
  83. package/src/generates/internal/SdkHttpNamespaceProgrammer.ts +153 -166
  84. package/src/generates/internal/SdkHttpParameterProgrammer.ts +15 -17
  85. package/src/generates/internal/SdkHttpRouteProgrammer.ts +1 -1
  86. package/src/generates/internal/SdkHttpSimulationProgrammer.ts +121 -130
  87. package/src/generates/internal/SdkMcpRouteProgrammer.ts +135 -140
  88. package/src/generates/internal/SdkTypeProgrammer.ts +389 -382
  89. package/src/generates/internal/SdkTypeTagProgrammer.ts +13 -17
  90. package/src/generates/internal/SdkWebSocketNamespaceProgrammer.ts +124 -130
  91. package/src/generates/internal/SdkWebSocketParameterProgrammer.ts +17 -15
  92. package/src/generates/internal/SdkWebSocketRouteProgrammer.ts +112 -139
  93. package/src/transform.ts +14 -45
@@ -1,9 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SdkHttpNamespaceProgrammer = void 0;
4
- const factory_1 = require("@nestia/factory");
5
- const factory_2 = require("@nestia/factory");
4
+ const factory_1 = require("@ttsc/factory");
6
5
  const utils_1 = require("@typia/utils");
6
+ const ExpressionFactory_1 = require("../../factories/ExpressionFactory");
7
+ const IdentifierFactory_1 = require("../../factories/IdentifierFactory");
8
+ const LiteralFactory_1 = require("../../factories/LiteralFactory");
9
+ const TypeFactory_1 = require("../../factories/TypeFactory");
7
10
  const legacy_1 = require("../../internal/legacy");
8
11
  const FilePrinter_1 = require("./FilePrinter");
9
12
  const SdkAliasCollection_1 = require("./SdkAliasCollection");
@@ -14,7 +17,7 @@ var SdkHttpNamespaceProgrammer;
14
17
  (function (SdkHttpNamespaceProgrammer) {
15
18
  SdkHttpNamespaceProgrammer.write = (project) => (importer) => (route) => {
16
19
  const types = writeTypes(project)(importer)(route);
17
- return factory_1.TypeScriptFactory.createModuleDeclaration([factory_1.TypeScriptFactory.createToken(factory_1.SyntaxKind.ExportKeyword)], factory_1.TypeScriptFactory.createIdentifier(route.name), factory_1.TypeScriptFactory.createModuleBlock([
20
+ return factory_1.factory.createModuleDeclaration([factory_1.factory.createToken(factory_1.SyntaxKind.ExportKeyword)], factory_1.factory.createIdentifier(route.name), factory_1.factory.createModuleBlock([
18
21
  ...types,
19
22
  ...(types.length ? [FilePrinter_1.FilePrinter.enter()] : []),
20
23
  writeMetadata(project)(importer)(route),
@@ -36,7 +39,7 @@ var SdkHttpNamespaceProgrammer;
36
39
  };
37
40
  const writeTypes = (project) => (importer) => (route) => {
38
41
  const array = [];
39
- const declare = (name, type) => array.push(factory_1.TypeScriptFactory.createTypeAliasDeclaration([factory_1.TypeScriptFactory.createModifier(factory_1.SyntaxKind.ExportKeyword)], name, undefined, type));
42
+ const declare = (name, type) => array.push(factory_1.factory.createTypeAliasDeclaration([factory_1.factory.createModifier(factory_1.SyntaxKind.ExportKeyword)], name, undefined, type));
40
43
  if (project.config.keyword === true &&
41
44
  SdkHttpParameterProgrammer_1.SdkHttpParameterProgrammer.getSignificant(route, true).length !== 0)
42
45
  declare("Props", SdkAliasCollection_1.SdkAliasCollection.httpProps(project)(importer)(route));
@@ -52,11 +55,11 @@ var SdkHttpNamespaceProgrammer;
52
55
  declare("Output", SdkAliasCollection_1.SdkAliasCollection.response(project)(importer)(route));
53
56
  return array;
54
57
  };
55
- const writeMetadata = (project) => (importer) => (route) => constant("METADATA")(factory_1.TypeScriptFactory.createAsExpression(factory_1.TypeScriptFactory.createObjectLiteralExpression([
56
- factory_1.TypeScriptFactory.createPropertyAssignment("method", factory_1.TypeScriptFactory.createStringLiteral(route.method)),
57
- factory_1.TypeScriptFactory.createPropertyAssignment("path", factory_1.TypeScriptFactory.createStringLiteral(route.path)),
58
- factory_1.TypeScriptFactory.createPropertyAssignment("request", route.body
59
- ? factory_2.LiteralFactory.write(route.body !== undefined
58
+ const writeMetadata = (project) => (importer) => (route) => constant("METADATA")(factory_1.factory.createAsExpression(factory_1.factory.createObjectLiteralExpression([
59
+ factory_1.factory.createPropertyAssignment("method", factory_1.factory.createStringLiteral(route.method)),
60
+ factory_1.factory.createPropertyAssignment("path", factory_1.factory.createStringLiteral(route.path)),
61
+ factory_1.factory.createPropertyAssignment("request", route.body
62
+ ? LiteralFactory_1.LiteralFactory.write(route.body !== undefined
60
63
  ? {
61
64
  type: route.body.contentType,
62
65
  encrypted: !!route.body.encrypted,
@@ -65,29 +68,29 @@ var SdkHttpNamespaceProgrammer;
65
68
  type: "application/json",
66
69
  encrypted: false,
67
70
  })
68
- : factory_1.TypeScriptFactory.createNull()),
69
- factory_1.TypeScriptFactory.createPropertyAssignment("response", route.method !== "HEAD"
70
- ? factory_2.LiteralFactory.write({
71
+ : factory_1.factory.createNull()),
72
+ factory_1.factory.createPropertyAssignment("response", route.method !== "HEAD"
73
+ ? LiteralFactory_1.LiteralFactory.write({
71
74
  type: route.success.contentType,
72
75
  encrypted: !!route.success.encrypted,
73
76
  })
74
- : factory_1.TypeScriptFactory.createNull()),
75
- factory_1.TypeScriptFactory.createPropertyAssignment("status", route.success.status !== null
76
- ? factory_2.ExpressionFactory.number(route.success.status)
77
- : factory_1.TypeScriptFactory.createNull()),
77
+ : factory_1.factory.createNull()),
78
+ factory_1.factory.createPropertyAssignment("status", route.success.status !== null
79
+ ? ExpressionFactory_1.ExpressionFactory.number(route.success.status)
80
+ : factory_1.factory.createNull()),
78
81
  ...(route.success.contentType ===
79
82
  "application/x-www-form-urlencoded"
80
83
  ? [
81
- factory_1.TypeScriptFactory.createPropertyAssignment("parseQuery", factory_1.TypeScriptFactory.createCallExpression(factory_1.TypeScriptFactory.createIdentifier(`${SdkImportWizard_1.SdkImportWizard.typia(importer)}.http.createAssertQuery`), [
82
- project.config.clone === true
84
+ factory_1.factory.createPropertyAssignment("parseQuery", factory_1.factory.createCallExpression(factory_1.factory.createIdentifier(`${SdkImportWizard_1.SdkImportWizard.typia(importer)}.http.createAssertQuery`), [
85
+ (project.config.clone === true
83
86
  ? SdkAliasCollection_1.SdkAliasCollection.from(project)(importer)(route.success.metadata)
84
- : SdkAliasCollection_1.SdkAliasCollection.name(route.success),
87
+ : SdkAliasCollection_1.SdkAliasCollection.name(route.success)),
85
88
  ], undefined)),
86
89
  ]
87
90
  : []),
88
- ], true), factory_1.TypeScriptFactory.createTypeReferenceNode(factory_1.TypeScriptFactory.createIdentifier("const"))));
91
+ ], true), factory_1.factory.createTypeReferenceNode(factory_1.factory.createIdentifier("const"))));
89
92
  const writePath = (project) => (importer) => (route) => {
90
- const out = (body) => constant("path")(factory_1.TypeScriptFactory.createArrowFunction([], [], SdkHttpParameterProgrammer_1.SdkHttpParameterProgrammer.getParameterDeclarations({
93
+ const out = (body) => constant("path")(factory_1.factory.createArrowFunction([], [], SdkHttpParameterProgrammer_1.SdkHttpParameterProgrammer.getParameterDeclarations({
91
94
  project,
92
95
  importer,
93
96
  route,
@@ -96,20 +99,20 @@ var SdkHttpNamespaceProgrammer;
96
99
  }), undefined, undefined, body));
97
100
  const parameters = SdkHttpParameterProgrammer_1.SdkHttpParameterProgrammer.getSignificant(route, false);
98
101
  if (parameters.length === 0)
99
- return out(factory_1.TypeScriptFactory.createStringLiteral(route.path));
102
+ return out(factory_1.factory.createStringLiteral(route.path));
100
103
  const access = (name) => project.config.keyword === true ? `props.${name}` : name;
101
104
  const template = () => {
102
105
  const split = route.path.split(":");
103
106
  if (split.length === 1)
104
- return factory_1.TypeScriptFactory.createStringLiteral(route.path);
105
- return factory_1.TypeScriptFactory.createTemplateExpression(factory_1.TypeScriptFactory.createTemplateHead(split[0]), split.slice(1).map((s, i, arr) => {
107
+ return factory_1.factory.createStringLiteral(route.path);
108
+ return factory_1.factory.createTemplateExpression(factory_1.factory.createTemplateHead(split[0]), split.slice(1).map((s, i, arr) => {
106
109
  const name = s.split("/")[0];
107
- return factory_1.TypeScriptFactory.createTemplateSpan(factory_1.TypeScriptFactory.createCallExpression(factory_1.TypeScriptFactory.createIdentifier("encodeURIComponent"), undefined, [
108
- factory_1.TypeScriptFactory.createBinaryExpression(factory_1.TypeScriptFactory.createCallChain(factory_1.TypeScriptFactory.createPropertyAccessChain(factory_1.TypeScriptFactory.createIdentifier(access(route.pathParameters.find((p) => p.field === name)
109
- .name)), factory_1.TypeScriptFactory.createToken(factory_1.SyntaxKind.QuestionDotToken), "toString"), undefined, undefined, []), factory_1.TypeScriptFactory.createToken(factory_1.SyntaxKind.QuestionQuestionToken), factory_1.TypeScriptFactory.createStringLiteral("null")),
110
+ return factory_1.factory.createTemplateSpan(factory_1.factory.createCallExpression(factory_1.factory.createIdentifier("encodeURIComponent"), undefined, [
111
+ factory_1.factory.createBinaryExpression(factory_1.factory.createCallChain(factory_1.factory.createPropertyAccessChain(factory_1.factory.createIdentifier(access(route.pathParameters.find((p) => p.field === name)
112
+ .name)), factory_1.factory.createToken(factory_1.SyntaxKind.QuestionDotToken), "toString"), undefined, undefined, []), factory_1.factory.createToken(factory_1.SyntaxKind.QuestionQuestionToken), factory_1.factory.createStringLiteral("null")),
110
113
  ]), (i !== arr.length - 1
111
- ? factory_1.TypeScriptFactory.createTemplateMiddle
112
- : factory_1.TypeScriptFactory.createTemplateTail)(s.substring(name.length)));
114
+ ? factory_1.factory.createTemplateMiddle
115
+ : factory_1.factory.createTemplateTail)(s.substring(name.length)));
113
116
  }));
114
117
  };
115
118
  if (route.queryObject === null && route.queryParameters.length === 0)
@@ -119,54 +122,52 @@ var SdkHttpNamespaceProgrammer;
119
122
  ? computeName("_" + str)
120
123
  : str;
121
124
  const variables = computeName("variables");
122
- return factory_1.TypeScriptFactory.createBlock([
123
- local(variables)("URLSearchParams")(factory_1.TypeScriptFactory.createNewExpression(factory_1.TypeScriptFactory.createIdentifier("URLSearchParams"), [], [])),
124
- factory_1.TypeScriptFactory.createForOfStatement(undefined, factory_1.TypeScriptFactory.createVariableDeclarationList([
125
- factory_1.TypeScriptFactory.createVariableDeclaration(factory_1.TypeScriptFactory.createArrayBindingPattern([
126
- factory_1.TypeScriptFactory.createBindingElement(undefined, undefined, factory_1.TypeScriptFactory.createIdentifier("key"), undefined),
127
- factory_1.TypeScriptFactory.createBindingElement(undefined, undefined, factory_1.TypeScriptFactory.createIdentifier("value"), undefined),
125
+ return factory_1.factory.createBlock([
126
+ local(variables)("URLSearchParams")(factory_1.factory.createNewExpression(factory_1.factory.createIdentifier("URLSearchParams"), [], [])),
127
+ factory_1.factory.createForOfStatement(undefined, factory_1.factory.createVariableDeclarationList([
128
+ factory_1.factory.createVariableDeclaration(factory_1.factory.createArrayBindingPattern([
129
+ factory_1.factory.createBindingElement(undefined, undefined, factory_1.factory.createIdentifier("key"), undefined),
130
+ factory_1.factory.createBindingElement(undefined, undefined, factory_1.factory.createIdentifier("value"), undefined),
128
131
  ]), undefined, undefined, undefined),
129
- ], factory_1.NodeFlags.Const), factory_1.TypeScriptFactory.createCallExpression(factory_1.TypeScriptFactory.createIdentifier("Object.entries"), undefined, [
130
- factory_1.TypeScriptFactory.createAsExpression(expr, factory_2.TypeFactory.keyword("any")),
131
- ]), factory_1.TypeScriptFactory.createIfStatement(factory_1.TypeScriptFactory.createStrictEquality(factory_1.TypeScriptFactory.createIdentifier("undefined"), factory_1.TypeScriptFactory.createIdentifier("value")), factory_1.TypeScriptFactory.createContinueStatement(), factory_1.TypeScriptFactory.createIfStatement(factory_1.TypeScriptFactory.createCallExpression(factory_1.TypeScriptFactory.createIdentifier("Array.isArray"), undefined, [factory_1.TypeScriptFactory.createIdentifier("value")]), factory_1.TypeScriptFactory.createExpressionStatement(factory_1.TypeScriptFactory.createCallExpression(factory_1.TypeScriptFactory.createPropertyAccessExpression(factory_1.TypeScriptFactory.createIdentifier("value"), factory_1.TypeScriptFactory.createIdentifier("forEach")), undefined, [
132
- factory_1.TypeScriptFactory.createArrowFunction(undefined, undefined, [factory_2.IdentifierFactory.parameter("elem")], undefined, undefined, factory_1.TypeScriptFactory.createCallExpression(factory_2.IdentifierFactory.access(factory_1.TypeScriptFactory.createIdentifier(variables), "append"), undefined, [
133
- factory_1.TypeScriptFactory.createIdentifier("key"),
134
- factory_1.TypeScriptFactory.createCallExpression(factory_1.TypeScriptFactory.createIdentifier("String"), undefined, [factory_1.TypeScriptFactory.createIdentifier("elem")]),
132
+ ], factory_1.NodeFlags.Const), factory_1.factory.createCallExpression(factory_1.factory.createIdentifier("Object.entries"), undefined, [factory_1.factory.createAsExpression(expr, TypeFactory_1.TypeFactory.keyword("any"))]), factory_1.factory.createIfStatement(factory_1.factory.createStrictEquality(factory_1.factory.createIdentifier("undefined"), factory_1.factory.createIdentifier("value")), factory_1.factory.createContinueStatement(), factory_1.factory.createIfStatement(factory_1.factory.createCallExpression(factory_1.factory.createIdentifier("Array.isArray"), undefined, [factory_1.factory.createIdentifier("value")]), factory_1.factory.createExpressionStatement(factory_1.factory.createCallExpression(factory_1.factory.createPropertyAccessExpression(factory_1.factory.createIdentifier("value"), factory_1.factory.createIdentifier("forEach")), undefined, [
133
+ factory_1.factory.createArrowFunction(undefined, undefined, [IdentifierFactory_1.IdentifierFactory.parameter("elem")], undefined, undefined, factory_1.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier(variables), "append"), undefined, [
134
+ factory_1.factory.createIdentifier("key"),
135
+ factory_1.factory.createCallExpression(factory_1.factory.createIdentifier("String"), undefined, [factory_1.factory.createIdentifier("elem")]),
135
136
  ])),
136
- ])), factory_1.TypeScriptFactory.createExpressionStatement(factory_1.TypeScriptFactory.createCallExpression(factory_2.IdentifierFactory.access(factory_1.TypeScriptFactory.createIdentifier(variables), "set"), undefined, [
137
- factory_1.TypeScriptFactory.createIdentifier("key"),
138
- factory_1.TypeScriptFactory.createCallExpression(factory_1.TypeScriptFactory.createIdentifier("String"), undefined, [factory_1.TypeScriptFactory.createIdentifier("value")]),
137
+ ])), factory_1.factory.createExpressionStatement(factory_1.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier(variables), "set"), undefined, [
138
+ factory_1.factory.createIdentifier("key"),
139
+ factory_1.factory.createCallExpression(factory_1.factory.createIdentifier("String"), undefined, [factory_1.factory.createIdentifier("value")]),
139
140
  ]))))),
140
141
  local("location")("string")(template()),
141
- factory_1.TypeScriptFactory.createReturnStatement(factory_1.TypeScriptFactory.createConditionalExpression(factory_1.TypeScriptFactory.createStrictEquality(factory_2.ExpressionFactory.number(0), factory_2.IdentifierFactory.access(factory_1.TypeScriptFactory.createIdentifier(variables), "size")), undefined, factory_1.TypeScriptFactory.createIdentifier("location"), undefined, factory_1.TypeScriptFactory.createTemplateExpression(factory_1.TypeScriptFactory.createTemplateHead(""), [
142
- factory_1.TypeScriptFactory.createTemplateSpan(factory_1.TypeScriptFactory.createIdentifier("location"), factory_1.TypeScriptFactory.createTemplateMiddle("?")),
143
- factory_1.TypeScriptFactory.createTemplateSpan(factory_1.TypeScriptFactory.createCallExpression(factory_2.IdentifierFactory.access(factory_1.TypeScriptFactory.createIdentifier(variables), "toString"), undefined, undefined), factory_1.TypeScriptFactory.createTemplateTail("")),
142
+ factory_1.factory.createReturnStatement(factory_1.factory.createConditionalExpression(factory_1.factory.createStrictEquality(ExpressionFactory_1.ExpressionFactory.number(0), IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier(variables), "size")), undefined, factory_1.factory.createIdentifier("location"), undefined, factory_1.factory.createTemplateExpression(factory_1.factory.createTemplateHead(""), [
143
+ factory_1.factory.createTemplateSpan(factory_1.factory.createIdentifier("location"), factory_1.factory.createTemplateMiddle("?")),
144
+ factory_1.factory.createTemplateSpan(factory_1.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier(variables), "toString"), undefined, undefined), factory_1.factory.createTemplateTail("")),
144
145
  ]))),
145
146
  ], true);
146
147
  };
147
148
  if (route.queryObject !== null && route.queryParameters.length === 0)
148
149
  return out(block(route.queryObject.metadata.required === false
149
- ? factory_1.TypeScriptFactory.createBinaryExpression(factory_1.TypeScriptFactory.createIdentifier(route.queryObject.name), factory_1.TypeScriptFactory.createToken(factory_1.SyntaxKind.QuestionQuestionToken), factory_1.TypeScriptFactory.createObjectLiteralExpression([], false))
150
- : factory_1.TypeScriptFactory.createIdentifier(access(route.queryObject.name))));
151
- return out(block(factory_1.TypeScriptFactory.createObjectLiteralExpression([
150
+ ? factory_1.factory.createBinaryExpression(factory_1.factory.createIdentifier(route.queryObject.name), factory_1.factory.createToken(factory_1.SyntaxKind.QuestionQuestionToken), factory_1.factory.createObjectLiteralExpression([], false))
151
+ : factory_1.factory.createIdentifier(access(route.queryObject.name))));
152
+ return out(block(factory_1.factory.createObjectLiteralExpression([
152
153
  ...(route.queryObject
153
154
  ? [
154
- factory_1.TypeScriptFactory.createSpreadAssignment(factory_1.TypeScriptFactory.createIdentifier(access(route.queryObject.name))),
155
+ factory_1.factory.createSpreadAssignment(factory_1.factory.createIdentifier(access(route.queryObject.name))),
155
156
  ]
156
157
  : []),
157
- ...route.queryParameters.map((q) => factory_1.TypeScriptFactory.createPropertyAssignment(utils_1.NamingConvention.variable(q.field)
158
+ ...route.queryParameters.map((q) => factory_1.factory.createPropertyAssignment(utils_1.NamingConvention.variable(q.field)
158
159
  ? q.field
159
- : factory_1.TypeScriptFactory.createStringLiteral(q.field), factory_1.TypeScriptFactory.createIdentifier(access(q.name)))),
160
+ : factory_1.factory.createStringLiteral(q.field), factory_1.factory.createIdentifier(access(q.name)))),
160
161
  ], true)));
161
162
  };
162
- const writeStringify = (project) => (importer) => constant("stringify")(factory_1.TypeScriptFactory.createArrowFunction([], undefined, [
163
- factory_2.IdentifierFactory.parameter("input", factory_1.TypeScriptFactory.createTypeReferenceNode("Body")),
164
- ], undefined, undefined, factory_1.TypeScriptFactory.createCallExpression(factory_2.IdentifierFactory.access(factory_2.IdentifierFactory.access(factory_1.TypeScriptFactory.createIdentifier(SdkImportWizard_1.SdkImportWizard.typia(importer)), "json"), project.config.assert ? "stringify" : "assertStringify"), undefined, [factory_1.TypeScriptFactory.createIdentifier("input")])));
163
+ const writeStringify = (project) => (importer) => constant("stringify")(factory_1.factory.createArrowFunction([], undefined, [
164
+ IdentifierFactory_1.IdentifierFactory.parameter("input", factory_1.factory.createTypeReferenceNode("Body")),
165
+ ], undefined, undefined, factory_1.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier(SdkImportWizard_1.SdkImportWizard.typia(importer)), "json"), project.config.assert ? "stringify" : "assertStringify"), undefined, [factory_1.factory.createIdentifier("input")])));
165
166
  })(SdkHttpNamespaceProgrammer || (exports.SdkHttpNamespaceProgrammer = SdkHttpNamespaceProgrammer = {}));
166
- const local = (name) => (type) => (expression) => factory_1.TypeScriptFactory.createVariableStatement([], factory_1.TypeScriptFactory.createVariableDeclarationList([
167
- factory_1.TypeScriptFactory.createVariableDeclaration(name, undefined, factory_1.TypeScriptFactory.createTypeReferenceNode(type), expression),
167
+ const local = (name) => (type) => (expression) => factory_1.factory.createVariableStatement([], factory_1.factory.createVariableDeclarationList([
168
+ factory_1.factory.createVariableDeclaration(name, undefined, factory_1.factory.createTypeReferenceNode(type), expression),
168
169
  ], factory_1.NodeFlags.Const));
169
- const constant = (name) => (expression) => factory_1.TypeScriptFactory.createVariableStatement([factory_1.TypeScriptFactory.createModifier(factory_1.SyntaxKind.ExportKeyword)], factory_1.TypeScriptFactory.createVariableDeclarationList([
170
- factory_1.TypeScriptFactory.createVariableDeclaration(name, undefined, undefined, expression),
170
+ const constant = (name) => (expression) => factory_1.factory.createVariableStatement([factory_1.factory.createModifier(factory_1.SyntaxKind.ExportKeyword)], factory_1.factory.createVariableDeclarationList([
171
+ factory_1.factory.createVariableDeclaration(name, undefined, undefined, expression),
171
172
  ], factory_1.NodeFlags.Const));
172
173
  //# sourceMappingURL=SdkHttpNamespaceProgrammer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SdkHttpNamespaceProgrammer.js","sourceRoot":"","sources":["../../../src/generates/internal/SdkHttpNamespaceProgrammer.ts"],"names":[],"mappings":";;;AAAA,6CAKyB;AACzB,6CAKyB;AACzB,wCAAgD;AAEhD,kDAA+C;AAG/C,+CAA4C;AAE5C,6DAA0D;AAC1D,6EAA0E;AAC1E,+EAA4E;AAC5E,uDAAoD;AAEpD,IAAiB,0BAA0B,CAgd1C;AAhdD,WAAiB,0BAA0B;IAC5B,gCAAK,GAChB,CAAC,OAAuB,EAAE,EAAE,CAC5B,CAAC,QAA0B,EAAE,EAAE,CAC/B,CAAC,KAAsB,EAAQ,EAAE;QAC/B,MAAM,KAAK,GAAW,UAAU,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC;QAC3D,OAAO,2BAAiB,CA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C,CAAC,CAC9C,CACF,CACF,CAAC;AACR,CAAC,EAhdgB,0BAA0B,aAA1B,0BAA0B,GAA1B,0BAA0B,QAgd1C;AAED,MAAM,KAAK,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,UAAgB,EAAE,EAAE,CACrE,2BAAiB,CAAC,uBAAuB,CACvC,EAAE,EACF,2BAAiB,CAAC,6BAA6B,CAC7C;IACE,2BAAiB,CAAC,yBAAyB,CACzC,IAAI,EACJ,SAAS,EACT,2BAAiB,CAAC,uBAAuB,CAAC,IAAI,CAAC,EAC/C,UAAU,CACX;CACF,EACD,mBAAS,CAAC,KAAK,CAChB,CACF,CAAC;AACJ,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,UAAgB,EAAE,EAAE,CACtD,2BAAiB,CAAC,uBAAuB,CACvC,CAAC,2BAAiB,CAAC,cAAc,CAAC,oBAAU,CAAC,aAAa,CAAC,CAAC,EAC5D,2BAAiB,CAAC,6BAA6B,CAC7C;IACE,2BAAiB,CAAC,yBAAyB,CACzC,IAAI,EACJ,SAAS,EACT,SAAS,EACT,UAAU,CACX;CACF,EACD,mBAAS,CAAC,KAAK,CAChB,CACF,CAAC"}
1
+ {"version":3,"file":"SdkHttpNamespaceProgrammer.js","sourceRoot":"","sources":["../../../src/generates/internal/SdkHttpNamespaceProgrammer.ts"],"names":[],"mappings":";;;AAAA,2CAUuB;AACvB,wCAAgD;AAEhD,yEAAsE;AACtE,yEAAsE;AACtE,mEAAgE;AAChE,6DAA0D;AAC1D,kDAA+C;AAG/C,+CAA4C;AAE5C,6DAA0D;AAC1D,6EAA0E;AAC1E,+EAA4E;AAC5E,uDAAoD;AAEpD,IAAiB,0BAA0B,CAgc1C;AAhcD,WAAiB,0BAA0B;IAC5B,gCAAK,GAChB,CAAC,OAAuB,EAAE,EAAE,CAC5B,CAAC,QAA0B,EAAE,EAAE,CAC/B,CAAC,KAAsB,E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CAAC,OAAO,CAAC,CAAC,CACpC,CACF,CACF,CAAC;AACR,CAAC,EAhcgB,0BAA0B,aAA1B,0BAA0B,GAA1B,0BAA0B,QAgc1C;AAED,MAAM,KAAK,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,UAAsB,EAAE,EAAE,CAC3E,iBAAO,CAAC,uBAAuB,CAC7B,EAAE,EACF,iBAAO,CAAC,6BAA6B,CACnC;IACE,iBAAO,CAAC,yBAAyB,CAC/B,IAAI,EACJ,SAAS,EACT,iBAAO,CAAC,uBAAuB,CAAC,IAAI,CAAC,EACrC,UAAU,CACX;CACF,EACD,mBAAS,CAAC,KAAK,CAChB,CACF,CAAC;AACJ,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,UAAsB,EAAE,EAAE,CAC5D,iBAAO,CAAC,uBAAuB,CAC7B,CAAC,iBAAO,CAAC,cAAc,CAAC,oBAAU,CAAC,aAAa,CAAC,CAAC,EAClD,iBAAO,CAAC,6BAA6B,CACnC;IACE,iBAAO,CAAC,yBAAyB,CAC/B,IAAI,EACJ,SAAS,EACT,SAAS,EACT,UAAU,CACX;CACF,EACD,mBAAS,CAAC,KAAK,CAChB,CACF,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Node } from "@nestia/factory";
1
+ import { type Node, type TypeNode } from "@ttsc/factory";
2
2
  import { INestiaProject } from "../../structures/INestiaProject";
3
3
  import { ITypedHttpRoute } from "../../structures/ITypedHttpRoute";
4
4
  import { ITypedHttpRouteParameter } from "../../structures/ITypedHttpRouteParameter";
@@ -7,7 +7,7 @@ export declare namespace SdkHttpParameterProgrammer {
7
7
  interface IEntry {
8
8
  key: string;
9
9
  required: boolean;
10
- type: Node;
10
+ type: TypeNode;
11
11
  parameter: ITypedHttpRouteParameter;
12
12
  }
13
13
  const getAll: (route: ITypedHttpRoute) => ITypedHttpRouteParameter[];
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SdkHttpParameterProgrammer = void 0;
4
- const factory_1 = require("@nestia/factory");
4
+ const factory_1 = require("@ttsc/factory");
5
5
  const SdkAliasCollection_1 = require("./SdkAliasCollection");
6
6
  var SdkHttpParameterProgrammer;
7
7
  (function (SdkHttpParameterProgrammer) {
@@ -48,7 +48,7 @@ var SdkHttpParameterProgrammer;
48
48
  ? props.project.config.clone === true
49
49
  ? SdkAliasCollection_1.SdkAliasCollection.from(props.project)(props.importer)(props.route.queryObject.metadata)
50
50
  : SdkAliasCollection_1.SdkAliasCollection.name(props.route.queryObject)
51
- : factory_1.TypeScriptFactory.createTypeReferenceNode(`${prefix}Query`),
51
+ : factory_1.factory.createTypeReferenceNode(`${prefix}Query`),
52
52
  parameter: props.route.queryObject,
53
53
  },
54
54
  ]
@@ -62,7 +62,7 @@ var SdkHttpParameterProgrammer;
62
62
  ? props.project.config.clone === true
63
63
  ? SdkAliasCollection_1.SdkAliasCollection.from(props.project)(props.importer)(props.route.body.metadata)
64
64
  : SdkAliasCollection_1.SdkAliasCollection.name(props.route.body)
65
- : factory_1.TypeScriptFactory.createTypeReferenceNode(`${prefix}Body`),
65
+ : factory_1.factory.createTypeReferenceNode(`${prefix}Body`),
66
66
  parameter: props.route.body,
67
67
  },
68
68
  ]
@@ -78,26 +78,24 @@ var SdkHttpParameterProgrammer;
78
78
  ? `${props.route.name}.Props`
79
79
  : "Props";
80
80
  const node = props.body === false && props.route.body !== null
81
- ? factory_1.TypeScriptFactory.createTypeReferenceNode("Omit", [
82
- factory_1.TypeScriptFactory.createTypeReferenceNode(typeName),
83
- factory_1.TypeScriptFactory.createLiteralTypeNode(factory_1.TypeScriptFactory.createStringLiteral(props.route.body.name)),
81
+ ? factory_1.factory.createTypeReferenceNode("Omit", [
82
+ factory_1.factory.createTypeReferenceNode(typeName),
83
+ factory_1.factory.createLiteralTypeNode(factory_1.factory.createStringLiteral(props.route.body.name)),
84
84
  ])
85
- : factory_1.TypeScriptFactory.createTypeReferenceNode(typeName);
85
+ : factory_1.factory.createTypeReferenceNode(typeName);
86
86
  return [
87
- factory_1.TypeScriptFactory.createParameterDeclaration(undefined, undefined, "props", undefined, node, undefined),
87
+ factory_1.factory.createParameterDeclaration(undefined, undefined, "props", undefined, node, undefined),
88
88
  ];
89
89
  }
90
- return entries.map((e) => factory_1.TypeScriptFactory.createParameterDeclaration(undefined, undefined, e.key, e.required
91
- ? undefined
92
- : factory_1.TypeScriptFactory.createToken(factory_1.SyntaxKind.QuestionToken), e.type, undefined));
90
+ return entries.map((e) => factory_1.factory.createParameterDeclaration(undefined, undefined, e.key, e.required ? undefined : factory_1.factory.createToken(factory_1.SyntaxKind.QuestionToken), e.type, undefined));
93
91
  };
94
92
  SdkHttpParameterProgrammer.getArguments = (props) => {
95
93
  const parameters = SdkHttpParameterProgrammer.getSignificant(props.route, props.body);
96
94
  if (parameters.length === 0)
97
95
  return [];
98
96
  else if (props.project.config.keyword === true)
99
- return [factory_1.TypeScriptFactory.createIdentifier("props")];
100
- return parameters.map((p) => factory_1.TypeScriptFactory.createIdentifier(p.name));
97
+ return [factory_1.factory.createIdentifier("props")];
98
+ return parameters.map((p) => factory_1.factory.createIdentifier(p.name));
101
99
  };
102
100
  })(SdkHttpParameterProgrammer || (exports.SdkHttpParameterProgrammer = SdkHttpParameterProgrammer = {}));
103
101
  //# sourceMappingURL=SdkHttpParameterProgrammer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SdkHttpParameterProgrammer.js","sourceRoot":"","sources":["../../../src/generates/internal/SdkHttpParameterProgrammer.ts"],"names":[],"mappings":";;;AAAA,6CAAsE;AAMtE,6DAA0D;AAE1D,IAAiB,0BAA0B,CA4J1C;AA5JD,WAAiB,0BAA0B;IAQ5B,iCAAM,GAAG,CACpB,KAAsB,EACM,EAAE,CAAC;QAC/B,GAAG,KAAK,CAAC,cAAc;QACvB,GAAG,KAAK,CAAC,eAAe;QACxB,GAAG,KAAK,C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,CAAC;QACD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACvB,iBAAO,CAAC,0BAA0B,CAChC,SAAS,EACT,SAAS,EACT,CAAC,CAAC,GAAG,EACL,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,iBAAO,CAAC,WAAW,CAAC,oBAAU,CAAC,aAAa,CAAC,EACtE,CAAC,CAAC,IAAI,EACN,SAAS,CACV,CACF,CAAC;IACJ,CAAC,CAAC;IAEW,uCAAY,GAAG,CAAC,KAI5B,EAAU,EAAE;QACX,MAAM,UAAU,GAAG,yCAAc,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QAC3D,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;aAClC,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,KAAK,IAAI;YAC5C,OAAO,CAAC,iBAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;QAC7C,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,iBAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IACjE,CAAC,CAAC;AACJ,CAAC,EA1JgB,0BAA0B,aAA1B,0BAA0B,GAA1B,0BAA0B,QA0J1C"}
@@ -1,4 +1,4 @@
1
- import { Node } from "@nestia/factory";
1
+ import { type Node } from "@ttsc/factory";
2
2
  import { INestiaProject } from "../../structures/INestiaProject";
3
3
  import { ITypedHttpRoute } from "../../structures/ITypedHttpRoute";
4
4
  import { ImportDictionary } from "./ImportDictionary";
@@ -1,4 +1,4 @@
1
- import { Node } from "@nestia/factory";
1
+ import { type Node } from "@ttsc/factory";
2
2
  import { INestiaProject } from "../../structures/INestiaProject";
3
3
  import { ITypedHttpRoute } from "../../structures/ITypedHttpRoute";
4
4
  import { ImportDictionary } from "./ImportDictionary";
@@ -1,8 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SdkHttpSimulationProgrammer = void 0;
4
- const factory_1 = require("@nestia/factory");
5
- const factory_2 = require("@nestia/factory");
4
+ const factory_1 = require("@ttsc/factory");
5
+ const ExpressionFactory_1 = require("../../factories/ExpressionFactory");
6
+ const IdentifierFactory_1 = require("../../factories/IdentifierFactory");
7
+ const LiteralFactory_1 = require("../../factories/LiteralFactory");
8
+ const StatementFactory_1 = require("../../factories/StatementFactory");
9
+ const TypeFactory_1 = require("../../factories/TypeFactory");
6
10
  const legacy_1 = require("../../internal/legacy");
7
11
  const SdkAliasCollection_1 = require("./SdkAliasCollection");
8
12
  const SdkHttpParameterProgrammer_1 = require("./SdkHttpParameterProgrammer");
@@ -11,26 +15,24 @@ var SdkHttpSimulationProgrammer;
11
15
  (function (SdkHttpSimulationProgrammer) {
12
16
  SdkHttpSimulationProgrammer.random = (project) => (importer) => (route) => {
13
17
  const output = SdkAliasCollection_1.SdkAliasCollection.responseBody(project)(importer)(route);
14
- return constant("random")(factory_1.TypeScriptFactory.createArrowFunction(undefined, undefined, [], project.config.primitive === false || route.success.binary === true
18
+ return constant("random")(factory_1.factory.createArrowFunction(undefined, undefined, [], project.config.primitive === false || route.success.binary === true
15
19
  ? output
16
- : factory_1.TypeScriptFactory.createTypeReferenceNode(SdkImportWizard_1.SdkImportWizard.Resolved(importer), [output]), undefined, route.success.binary === true
17
- ? factory_1.TypeScriptFactory.createNewExpression(factory_1.TypeScriptFactory.createIdentifier("ReadableStream"), [SdkAliasCollection_1.SdkAliasCollection.binaryChunk()], [])
18
- : factory_1.TypeScriptFactory.createCallExpression(factory_2.IdentifierFactory.access(factory_1.TypeScriptFactory.createIdentifier(SdkImportWizard_1.SdkImportWizard.typia(importer)), "random"), [output], undefined)));
20
+ : factory_1.factory.createTypeReferenceNode(SdkImportWizard_1.SdkImportWizard.Resolved(importer), [output]), undefined, route.success.binary === true
21
+ ? factory_1.factory.createNewExpression(factory_1.factory.createIdentifier("ReadableStream"), [SdkAliasCollection_1.SdkAliasCollection.binaryChunk()], [])
22
+ : factory_1.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier(SdkImportWizard_1.SdkImportWizard.typia(importer)), "random"), [output], undefined)));
19
23
  };
20
24
  SdkHttpSimulationProgrammer.simulate = (project) => (importer) => (route) => {
21
25
  var _a;
22
26
  const output = project.config.propagate === true ||
23
27
  route.success.binary === true ||
24
28
  (0, legacy_1.sizeOf)(route.success.metadata) !== 0;
25
- const caller = () => factory_1.TypeScriptFactory.createCallExpression(factory_1.TypeScriptFactory.createIdentifier("random"), undefined, undefined);
26
- return constant("simulate")(factory_1.TypeScriptFactory.createArrowFunction(undefined, undefined, [
27
- factory_2.IdentifierFactory.parameter(SdkHttpParameterProgrammer_1.SdkHttpParameterProgrammer.getSignificant(route, true).length !==
29
+ const caller = () => factory_1.factory.createCallExpression(factory_1.factory.createIdentifier("random"), undefined, undefined);
30
+ return constant("simulate")(factory_1.factory.createArrowFunction(undefined, undefined, [
31
+ IdentifierFactory_1.IdentifierFactory.parameter(SdkHttpParameterProgrammer_1.SdkHttpParameterProgrammer.getSignificant(route, true).length !==
28
32
  0
29
33
  ? "connection"
30
- : "_connection", factory_1.TypeScriptFactory.createTypeReferenceNode(SdkImportWizard_1.SdkImportWizard.IConnection(importer), route.headerObject
31
- ? [
32
- factory_1.TypeScriptFactory.createTypeReferenceNode(`${route.name}.Headers`),
33
- ]
34
+ : "_connection", factory_1.factory.createTypeReferenceNode(SdkImportWizard_1.SdkImportWizard.IConnection(importer), route.headerObject
35
+ ? [factory_1.factory.createTypeReferenceNode(`${route.name}.Headers`)]
34
36
  : [])),
35
37
  ...SdkHttpParameterProgrammer_1.SdkHttpParameterProgrammer.getParameterDeclarations({
36
38
  project,
@@ -39,17 +41,17 @@ var SdkHttpSimulationProgrammer;
39
41
  body: true,
40
42
  prefix: false,
41
43
  }),
42
- ], factory_1.TypeScriptFactory.createTypeReferenceNode(output ? "Output" : "void"), undefined, factory_1.TypeScriptFactory.createBlock([
44
+ ], factory_1.factory.createTypeReferenceNode(output ? "Output" : "void"), undefined, factory_1.factory.createBlock([
43
45
  ...assert(project)(importer)(route),
44
- factory_1.TypeScriptFactory.createReturnStatement(project.config.propagate
45
- ? factory_1.TypeScriptFactory.createAsExpression(factory_1.TypeScriptFactory.createObjectLiteralExpression([
46
- factory_1.TypeScriptFactory.createPropertyAssignment("success", factory_1.TypeScriptFactory.createTrue()),
47
- factory_1.TypeScriptFactory.createPropertyAssignment("status", factory_2.ExpressionFactory.number((_a = route.success.status) !== null && _a !== void 0 ? _a : (route.method === "POST" ? 201 : 200))),
48
- factory_1.TypeScriptFactory.createPropertyAssignment("headers", factory_2.LiteralFactory.write({
46
+ factory_1.factory.createReturnStatement(project.config.propagate
47
+ ? factory_1.factory.createAsExpression(factory_1.factory.createObjectLiteralExpression([
48
+ factory_1.factory.createPropertyAssignment("success", factory_1.factory.createTrue()),
49
+ factory_1.factory.createPropertyAssignment("status", ExpressionFactory_1.ExpressionFactory.number((_a = route.success.status) !== null && _a !== void 0 ? _a : (route.method === "POST" ? 201 : 200))),
50
+ factory_1.factory.createPropertyAssignment("headers", LiteralFactory_1.LiteralFactory.write({
49
51
  "Content-Type": route.success.contentType,
50
52
  })),
51
- factory_1.TypeScriptFactory.createPropertyAssignment("data", caller()),
52
- ], true), factory_1.TypeScriptFactory.createTypeReferenceNode("Output"))
53
+ factory_1.factory.createPropertyAssignment("data", caller()),
54
+ ], true), factory_1.factory.createTypeReferenceNode("Output"))
53
55
  : caller()),
54
56
  ], true)));
55
57
  };
@@ -58,42 +60,42 @@ var SdkHttpSimulationProgrammer;
58
60
  if (parameters.length === 0)
59
61
  return [];
60
62
  const typia = SdkImportWizard_1.SdkImportWizard.typia(importer);
61
- const validator = factory_2.StatementFactory.constant({
63
+ const validator = StatementFactory_1.StatementFactory.constant({
62
64
  name: "assert",
63
- value: factory_1.TypeScriptFactory.createCallExpression(factory_2.IdentifierFactory.access(factory_1.TypeScriptFactory.createIdentifier(importer.external({
65
+ value: factory_1.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier(importer.external({
64
66
  file: `@nestia/fetcher`,
65
67
  declaration: false,
66
68
  type: "element",
67
69
  name: "NestiaSimulator",
68
70
  })), "assert"), undefined, [
69
- factory_1.TypeScriptFactory.createObjectLiteralExpression([
70
- factory_1.TypeScriptFactory.createPropertyAssignment("method", factory_1.TypeScriptFactory.createIdentifier("METADATA.method")),
71
- factory_1.TypeScriptFactory.createPropertyAssignment("host", factory_1.TypeScriptFactory.createIdentifier("connection.host")),
72
- factory_1.TypeScriptFactory.createPropertyAssignment("path", factory_1.TypeScriptFactory.createCallExpression(factory_1.TypeScriptFactory.createIdentifier("path"), undefined, SdkHttpParameterProgrammer_1.SdkHttpParameterProgrammer.getArguments({
71
+ factory_1.factory.createObjectLiteralExpression([
72
+ factory_1.factory.createPropertyAssignment("method", factory_1.factory.createIdentifier("METADATA.method")),
73
+ factory_1.factory.createPropertyAssignment("host", factory_1.factory.createIdentifier("connection.host")),
74
+ factory_1.factory.createPropertyAssignment("path", factory_1.factory.createCallExpression(factory_1.factory.createIdentifier("path"), undefined, SdkHttpParameterProgrammer_1.SdkHttpParameterProgrammer.getArguments({
73
75
  project,
74
76
  route,
75
77
  body: false,
76
78
  }))),
77
- factory_1.TypeScriptFactory.createPropertyAssignment("contentType", factory_1.TypeScriptFactory.createIdentifier(JSON.stringify(route.success.contentType))),
79
+ factory_1.factory.createPropertyAssignment("contentType", factory_1.factory.createIdentifier(JSON.stringify(route.success.contentType))),
78
80
  ], true),
79
81
  ]),
80
82
  });
81
83
  const individual = parameters
82
- .map((p) => factory_1.TypeScriptFactory.createCallExpression((() => {
83
- const base = factory_2.IdentifierFactory.access(factory_1.TypeScriptFactory.createIdentifier("assert"), p.category);
84
+ .map((p) => factory_1.factory.createCallExpression((() => {
85
+ const base = IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier("assert"), p.category);
84
86
  if (p.category !== "param")
85
87
  return base;
86
- return factory_1.TypeScriptFactory.createCallExpression(base, undefined, [
87
- factory_1.TypeScriptFactory.createStringLiteral(p.name),
88
+ return factory_1.factory.createCallExpression(base, undefined, [
89
+ factory_1.factory.createStringLiteral(p.name),
88
90
  ]);
89
91
  })(), undefined, [
90
- factory_1.TypeScriptFactory.createArrowFunction(undefined, undefined, [], undefined, undefined, factory_1.TypeScriptFactory.createCallExpression(factory_2.IdentifierFactory.access(factory_1.TypeScriptFactory.createIdentifier(typia), "assert"), undefined, [
92
+ factory_1.factory.createArrowFunction(undefined, undefined, [], undefined, undefined, factory_1.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier(typia), "assert"), undefined, [
91
93
  project.config.keyword === true
92
- ? factory_1.TypeScriptFactory.createIdentifier(`props.${p.name}`)
93
- : factory_1.TypeScriptFactory.createIdentifier(p.name),
94
+ ? factory_1.factory.createIdentifier(`props.${p.name}`)
95
+ : factory_1.factory.createIdentifier(p.name),
94
96
  ])),
95
97
  ]))
96
- .map(factory_1.TypeScriptFactory.createExpressionStatement);
98
+ .map(factory_1.factory.createExpressionStatement);
97
99
  return [
98
100
  validator,
99
101
  ...(project.config.propagate !== true
@@ -101,19 +103,19 @@ var SdkHttpSimulationProgrammer;
101
103
  : [tryAndCatch(importer)(individual)]),
102
104
  ];
103
105
  };
104
- const tryAndCatch = (importer) => (individual) => factory_1.TypeScriptFactory.createTryStatement(factory_1.TypeScriptFactory.createBlock(individual, true), factory_1.TypeScriptFactory.createCatchClause("exp", factory_1.TypeScriptFactory.createBlock([
105
- factory_1.TypeScriptFactory.createIfStatement(factory_1.TypeScriptFactory.createLogicalNot(factory_1.TypeScriptFactory.createCallExpression(factory_2.IdentifierFactory.access(factory_1.TypeScriptFactory.createIdentifier(SdkImportWizard_1.SdkImportWizard.typia(importer)), "is"), [
106
- factory_1.TypeScriptFactory.createTypeReferenceNode(SdkImportWizard_1.SdkImportWizard.HttpError(importer)),
107
- ], [factory_1.TypeScriptFactory.createIdentifier("exp")])), factory_1.TypeScriptFactory.createThrowStatement(factory_1.TypeScriptFactory.createIdentifier("exp"))),
108
- factory_1.TypeScriptFactory.createReturnStatement(factory_1.TypeScriptFactory.createAsExpression(factory_1.TypeScriptFactory.createObjectLiteralExpression([
109
- factory_1.TypeScriptFactory.createPropertyAssignment("success", factory_1.TypeScriptFactory.createFalse()),
110
- factory_1.TypeScriptFactory.createPropertyAssignment("status", factory_1.TypeScriptFactory.createIdentifier("exp.status")),
111
- factory_1.TypeScriptFactory.createPropertyAssignment("headers", factory_1.TypeScriptFactory.createIdentifier("exp.headers")),
112
- factory_1.TypeScriptFactory.createPropertyAssignment("data", factory_1.TypeScriptFactory.createIdentifier("exp.toJSON().message")),
113
- ], true), factory_2.TypeFactory.keyword("any"))),
106
+ const tryAndCatch = (importer) => (individual) => factory_1.factory.createTryStatement(factory_1.factory.createBlock(individual, true), factory_1.factory.createCatchClause("exp", factory_1.factory.createBlock([
107
+ factory_1.factory.createIfStatement(factory_1.factory.createLogicalNot(factory_1.factory.createCallExpression(IdentifierFactory_1.IdentifierFactory.access(factory_1.factory.createIdentifier(SdkImportWizard_1.SdkImportWizard.typia(importer)), "is"), [
108
+ factory_1.factory.createTypeReferenceNode(SdkImportWizard_1.SdkImportWizard.HttpError(importer)),
109
+ ], [factory_1.factory.createIdentifier("exp")])), factory_1.factory.createThrowStatement(factory_1.factory.createIdentifier("exp"))),
110
+ factory_1.factory.createReturnStatement(factory_1.factory.createAsExpression(factory_1.factory.createObjectLiteralExpression([
111
+ factory_1.factory.createPropertyAssignment("success", factory_1.factory.createFalse()),
112
+ factory_1.factory.createPropertyAssignment("status", factory_1.factory.createIdentifier("exp.status")),
113
+ factory_1.factory.createPropertyAssignment("headers", factory_1.factory.createIdentifier("exp.headers")),
114
+ factory_1.factory.createPropertyAssignment("data", factory_1.factory.createIdentifier("exp.toJSON().message")),
115
+ ], true), TypeFactory_1.TypeFactory.keyword("any"))),
114
116
  ], true)), undefined);
115
117
  })(SdkHttpSimulationProgrammer || (exports.SdkHttpSimulationProgrammer = SdkHttpSimulationProgrammer = {}));
116
- const constant = (name) => (expression) => factory_1.TypeScriptFactory.createVariableStatement([factory_1.TypeScriptFactory.createModifier(factory_1.SyntaxKind.ExportKeyword)], factory_1.TypeScriptFactory.createVariableDeclarationList([
117
- factory_1.TypeScriptFactory.createVariableDeclaration(factory_1.TypeScriptFactory.createIdentifier(name), undefined, undefined, expression),
118
+ const constant = (name) => (expression) => factory_1.factory.createVariableStatement([factory_1.factory.createModifier(factory_1.SyntaxKind.ExportKeyword)], factory_1.factory.createVariableDeclarationList([
119
+ factory_1.factory.createVariableDeclaration(factory_1.factory.createIdentifier(name), undefined, undefined, expression),
118
120
  ], factory_1.NodeFlags.Const));
119
121
  //# sourceMappingURL=SdkHttpSimulationProgrammer.js.map