@nestia/migrate 14.3.0 → 14.4.0

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 (49) hide show
  1. package/lib/NestiaMigrateApplication.mjs.map +1 -1
  2. package/lib/analyzers/NestiaMigrateControllerAnalyzer.mjs.map +1 -1
  3. package/lib/archivers/NestiaMigrateFileArchiver.mjs.map +1 -1
  4. package/lib/bundles/NEST_TEMPLATE.js +1 -1
  5. package/lib/bundles/NEST_TEMPLATE.mjs +1 -1
  6. package/lib/bundles/NEST_TEMPLATE.mjs.map +1 -1
  7. package/lib/bundles/SDK_TEMPLATE.js +1 -1
  8. package/lib/bundles/SDK_TEMPLATE.mjs +1 -1
  9. package/lib/bundles/SDK_TEMPLATE.mjs.map +1 -1
  10. package/lib/executable/NestiaMigrateCommander.mjs.map +1 -1
  11. package/lib/executable/NestiaMigrateInquirer.mjs.map +1 -1
  12. package/lib/executable/TemplateBundleCache.mjs.map +1 -1
  13. package/lib/executable/bundle.mjs.map +1 -1
  14. package/lib/executable/migrate.mjs.map +1 -1
  15. package/lib/factories/ExpressionFactory.mjs.map +1 -1
  16. package/lib/factories/IdentifierFactory.mjs.map +1 -1
  17. package/lib/factories/LiteralFactory.mjs.map +1 -1
  18. package/lib/factories/StatementFactory.mjs.map +1 -1
  19. package/lib/factories/SupportedStringFormats.mjs.map +1 -1
  20. package/lib/factories/TypeFactory.mjs.map +1 -1
  21. package/lib/factories/TypeLiteralFactory.mjs.map +1 -1
  22. package/lib/index.mjs.map +1 -1
  23. package/lib/internal/ts.mjs.map +1 -1
  24. package/lib/module.mjs.map +1 -1
  25. package/lib/package.mjs +1 -1
  26. package/lib/programmers/NestiaMigrateApiFileProgrammer.mjs.map +1 -1
  27. package/lib/programmers/NestiaMigrateApiFunctionProgrammer.mjs.map +1 -1
  28. package/lib/programmers/NestiaMigrateApiNamespaceProgrammer.mjs.map +1 -1
  29. package/lib/programmers/NestiaMigrateApiProgrammer.mjs.map +1 -1
  30. package/lib/programmers/NestiaMigrateApiSimulationProgrammer.mjs.map +1 -1
  31. package/lib/programmers/NestiaMigrateApiStartProgrammer.mjs.map +1 -1
  32. package/lib/programmers/NestiaMigrateDtoProgrammer.mjs.map +1 -1
  33. package/lib/programmers/NestiaMigrateE2eFileProgrammer.mjs.map +1 -1
  34. package/lib/programmers/NestiaMigrateE2eProgrammer.mjs.map +1 -1
  35. package/lib/programmers/NestiaMigrateImportProgrammer.mjs.map +1 -1
  36. package/lib/programmers/NestiaMigrateNestControllerProgrammer.mjs.map +1 -1
  37. package/lib/programmers/NestiaMigrateNestMethodProgrammer.mjs.map +1 -1
  38. package/lib/programmers/NestiaMigrateNestModuleProgrammer.mjs.map +1 -1
  39. package/lib/programmers/NestiaMigrateNestProgrammer.mjs.map +1 -1
  40. package/lib/programmers/NestiaMigrateSchemaProgrammer.mjs.map +1 -1
  41. package/lib/utils/FilePrinter.mjs.map +1 -1
  42. package/lib/utils/MapUtil.mjs.map +1 -1
  43. package/lib/utils/PathTemplate.mjs.map +1 -1
  44. package/lib/utils/RequestBody.mjs.map +1 -1
  45. package/lib/utils/StringUtil.mjs.map +1 -1
  46. package/lib/utils/SuccessStatus.mjs.map +1 -1
  47. package/package.json +5 -5
  48. package/src/bundles/NEST_TEMPLATE.ts +1 -1
  49. package/src/bundles/SDK_TEMPLATE.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"NestiaMigrateApplication.mjs","names":[],"sources":[],"mappings":""}
1
+ {"version":3,"file":"NestiaMigrateApplication.mjs","names":[],"sources":["../src/NestiaMigrateApplication.ts"],"sourcesContent":["import {\n IHttpMigrateApplication,\n IHttpMigrateRoute,\n OpenApi,\n OpenApiV3,\n OpenApiV3_1,\n OpenApiV3_2,\n SwaggerV2,\n} from \"@typia/interface\";\nimport type { IValidation } from \"@typia/interface\";\nimport { HttpMigration, OpenApiConverter } from \"@typia/utils\";\nimport { TreeSet } from \"tstl\";\n\nimport { NEST_TEMPLATE } from \"./bundles/NEST_TEMPLATE\";\nimport { SDK_TEMPLATE } from \"./bundles/SDK_TEMPLATE\";\nimport { NestiaMigrateApiProgrammer } from \"./programmers/NestiaMigrateApiProgrammer\";\nimport { NestiaMigrateApiStartProgrammer } from \"./programmers/NestiaMigrateApiStartProgrammer\";\nimport { NestiaMigrateE2eProgrammer } from \"./programmers/NestiaMigrateE2eProgrammer\";\nimport { NestiaMigrateNestProgrammer } from \"./programmers/NestiaMigrateNestProgrammer\";\nimport { INestiaMigrateConfig } from \"./structures/INestiaMigrateConfig\";\nimport { INestiaMigrateContext } from \"./structures/INestiaMigrateContext\";\n\n/**\n * Converts an OpenAPI document into a NestJS project or an SDK project, as a\n * map from file path to file content.\n *\n * The constructor analyzes an emended OpenAPI document once; `assert` and\n * `validate` upgrade a document of any supported version to that form first.\n * `nest` and `sdk` then compose the files of the bundled template with the\n * generated ones.\n *\n * The constructor analyzes the document once; generation walks templates and\n * delegates per-route/schema emission, with the context builder’s accessor trie\n * indexing strict prefixes.\n *\n * The instance shares its analyzed application between nest and sdk calls.\n * Generation creates fresh context/accessor copies because its mode and config\n * can differ.\n *\n * One instance retains its original document and analysis until callers release\n * it; generated file maps are returned to callers rather than accumulated on\n * the instance.\n *\n * @evidence contracts/common.md#principled-implementation The constructor analyzes the emended document into routes with `HttpMigration`, and the two generators start from the bundled template files, drop the paths the generators own (structures, functional API, controllers, feature tests), and add the generated files, so the result is the template with those trees replaced.\n * @evidence contracts/common.md#clear-and-simple-design One class with two generators sharing one context builder; the accessor conflict escape and the package renaming are module-private functions.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts Route analysis and the OpenAPI upgrade come from `@typia/utils`, and no document, path, or type name is special-cased; QUERY-method routes are left out because the SDK has no representation for them.\n * @evidence contracts/common.md#meaningful-documentation The comment states what the class produces, when the document is analyzed, and how the two generators use the template.\n */\nexport class NestiaMigrateApplication {\n private readonly data_: IHttpMigrateApplication;\n\n /* -----------------------------------------------------------\n CONSTRUCTORS\n ----------------------------------------------------------- */\n public constructor(public readonly document: OpenApi.IDocument) {\n this.data_ = HttpMigration.application(document);\n }\n\n /**\n * Creates the application from a document of any supported OpenAPI or Swagger\n * version, and throws when the document cannot be upgraded.\n *\n * Version conversion and route analysis scale with the document’s routes and\n * schemas; this wrapper delegates each once.\n *\n * @evidence contracts/common.md#principled-implementation The document is upgraded by `OpenApiConverter.upgradeDocument`, which owns the version differences, so this function only wraps a successful result.\n * @evidence contracts/common.md#clear-and-simple-design One expression.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts It does not repair or guess invalid documents.\n * @evidence contracts/common.md#meaningful-documentation The comment states the accepted versions and the throwing behavior.\n */\n public static assert(\n document:\n | SwaggerV2.IDocument\n | OpenApiV3.IDocument\n | OpenApiV3_1.IDocument\n | OpenApiV3_2.IDocument\n | OpenApi.IDocument,\n ): NestiaMigrateApplication {\n return new NestiaMigrateApplication(\n OpenApiConverter.upgradeDocument(document),\n );\n }\n\n /**\n * Creates the application, or returns the failure as an `IValidation` instead\n * of throwing.\n *\n * Version conversion and route analysis scale with the document’s routes and\n * schemas; validation delegates once and formats one caught failure.\n *\n * @evidence contracts/common.md#principled-implementation The upgrade runs inside a `try`, and an error becomes one validation error whose path is the input and whose value is the message, so a caller can report it.\n * @evidence contracts/common.md#clear-and-simple-design The non-throwing twin of `assert`, sharing its constructor call.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts The failure is reported, not hidden, and the message is the original one.\n * @evidence contracts/common.md#meaningful-documentation The comment states the result shape.\n */\n public static validate(\n document:\n | SwaggerV2.IDocument\n | OpenApiV3.IDocument\n | OpenApiV3_1.IDocument\n | OpenApiV3_2.IDocument\n | OpenApi.IDocument,\n ): IValidation<NestiaMigrateApplication> {\n try {\n return {\n success: true,\n data: new NestiaMigrateApplication(\n OpenApiConverter.upgradeDocument(document),\n ),\n };\n } catch (exp) {\n const message: string = exp instanceof Error ? exp.message : String(exp);\n return {\n success: false,\n data: document,\n errors: [\n {\n path: \"$input\",\n expected:\n \"SwaggerV2.IDocument | OpenApiV3.IDocument | OpenApiV3_1.IDocument | OpenApiV3_2.IDocument | OpenApi.IDocument\",\n value: message,\n },\n ],\n };\n }\n }\n\n /* -----------------------------------------------------------\n ACCESSORS\n ----------------------------------------------------------- */\n /**\n * Returns the analyzed application: the routes and the operations that could\n * not be migrated.\n *\n * Returning the existing analysis reference uses constant work.\n *\n * The constructor’s analysis is returned directly to every caller; callers\n * receive mutable shared state rather than an independently refreshed view.\n *\n * @evidence contracts/common.md#principled-implementation The analysis is done once in the constructor and returned by reference.\n * @evidence contracts/common.md#clear-and-simple-design One accessor.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts It exposes what the analysis produced.\n * @evidence contracts/common.md#meaningful-documentation The comment states what is returned.\n */\n public getData(): IHttpMigrateApplication {\n return this.data_;\n }\n\n /**\n * Generates a NestJS monorepo project from the document.\n *\n * The files are the template, the controllers, the module, the DTO\n * structures, the functional API, and, when requested, the e2e tests. A\n * package name replaces the placeholder in every file.\n *\n * Template filtering and renaming scale with template/output bytes;\n * programmers traverse routes and schemas. Accessor conflict escape indexes R\n * routes with at most D segments in a trie. Ordered terminal sets preserve\n * first-route precedence with logarithmic updates, and each escape probes\n * only the current D-segment path rather than scanning R routes. Trie state\n * holds original/final prefixes only and is local to generation.\n *\n * The instance’s route analysis is reused. Each call recomputes\n * mode/config-dependent output and copies accessors because conflict escaping\n * mutates them; returned maps remain caller-owned.\n *\n * @evidence contracts/common.md#principled-implementation The context copies the routes and escapes accessors that would collide with a shorter accessor, the template entries of the generated trees are removed, the programmers write the replacements, and `keyword: false` rewrites the one template setting that selects keyword parameters.\n * @evidence contracts/common.md#clear-and-simple-design One method that composes the generators; each generator owns its own files.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts The template is the published starter, and the only textual edit of it is the documented keyword setting.\n * @evidence contracts/common.md#meaningful-documentation The comment states what is generated and the package renaming.\n */\n public nest(config: INestiaMigrateConfig): Record<string, string> {\n const context: INestiaMigrateContext = createContext(\n \"nest\",\n this.data_,\n config,\n );\n const files: Record<string, string> = {\n ...Object.fromEntries(\n Object.entries(NEST_TEMPLATE).filter(\n ([key]) =>\n key.startsWith(\"packages/api/src/structures\") === false &&\n key.startsWith(\"packages/api/src/functional\") === false &&\n key.startsWith(\"packages/backend/src/controllers\") === false &&\n key.startsWith(\"packages/backend/test/features\") === false,\n ),\n ),\n ...NestiaMigrateNestProgrammer.write(context),\n ...NestiaMigrateApiProgrammer.write(context),\n ...(config.e2e ? NestiaMigrateE2eProgrammer.write(context) : {}),\n ...(config.keyword === false\n ? {\n \"packages/backend/nestia.config.ts\": NEST_TEMPLATE[\n \"packages/backend/nestia.config.ts\"\n ]!.replace(\"keyword: true\", \"keyword: false\"),\n }\n : {}),\n };\n return config.package ? renameSlug(config.package, files) : files;\n }\n\n /**\n * Generates an SDK project from the document.\n *\n * The files are the template, the DTO structures, the functional API, the\n * start script, the swagger document in its emended form, and, when\n * requested, the e2e tests. A package name replaces the placeholder in every\n * file.\n *\n * Template filtering and renaming scale with template/output bytes;\n * programmers traverse routes and schemas. Accessor conflict escape indexes R\n * routes with at most D segments in a trie. Ordered terminal sets preserve\n * first-route precedence with logarithmic updates, and each escape probes\n * only the current D-segment path rather than scanning R routes. Trie state\n * holds original/final prefixes only and is local to generation.\n *\n * The instance’s route analysis is reused; mode/config-dependent output is\n * recomputed with fresh accessor copies, and returned maps remain\n * caller-owned.\n *\n * @evidence contracts/common.md#principled-implementation The context is built as for `nest`, the template entries of the generated trees are removed, the programmers write the replacements, and the emended document the application was built from, which is the input after any upgrade, is written beside them as `swagger.json`.\n * @evidence contracts/common.md#clear-and-simple-design One method that composes the generators, sharing the context builder with `nest`.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts The template is the published starter, and no document is special-cased.\n * @evidence contracts/common.md#meaningful-documentation The comment states what is generated and the package renaming.\n */\n public sdk(config: INestiaMigrateConfig): Record<string, string> {\n const context: INestiaMigrateContext = createContext(\n \"sdk\",\n this.data_,\n config,\n );\n const files: Record<string, string> = {\n ...Object.fromEntries(\n Object.entries(SDK_TEMPLATE).filter(\n ([key]) =>\n key.startsWith(\"src/structures\") === false &&\n key.startsWith(\"src/functional\") === false &&\n key.startsWith(\"test/features\") === false,\n ),\n ),\n ...NestiaMigrateApiProgrammer.write(context),\n ...NestiaMigrateApiStartProgrammer.write(context),\n ...(config.e2e ? NestiaMigrateE2eProgrammer.write(context) : {}),\n \"swagger.json\": JSON.stringify(this.document, null, 2),\n };\n return config.package ? renameSlug(config.package, files) : files;\n }\n}\n\nconst createContext = (\n mode: \"nest\" | \"sdk\",\n application: IHttpMigrateApplication,\n config: INestiaMigrateConfig,\n): INestiaMigrateContext => {\n const routes: IHttpMigrateRoute[] = escapeConflictingAccessors(\n application.routes\n .filter((r) => r.method !== \"query\")\n .map((r) => ({\n ...r,\n accessor: [...r.accessor],\n })),\n );\n return {\n mode,\n application: {\n ...application,\n routes,\n },\n config,\n };\n};\n\nconst escapeConflictingAccessors = (\n routes: IHttpMigrateRoute[],\n): IHttpMigrateRoute[] => {\n type Prefix = {\n children: Map<string, Prefix>;\n terminal: TreeSet<number>;\n };\n const create = (): Prefix => ({\n children: new Map(),\n terminal: new TreeSet(),\n });\n const root: Prefix = create();\n const insert = (accessor: string[], index: number): Prefix => {\n let node = root;\n for (const segment of accessor) {\n let child = node.children.get(segment);\n if (child === undefined) {\n child = create();\n node.children.set(segment, child);\n }\n node = child;\n }\n node.terminal.insert(index);\n return node;\n };\n const terminals = routes.map((route, index) => insert(route.accessor, index));\n for (const [routeIndex, route] of routes.entries()) {\n while (true) {\n let node = root;\n let neighborIndex = Infinity;\n for (let depth = 0; depth < route.accessor.length - 1; ++depth) {\n const child = node.children.get(route.accessor[depth]!);\n if (child === undefined) break;\n node = child;\n if (!node.terminal.empty())\n neighborIndex = Math.min(neighborIndex, node.terminal.begin().value);\n }\n if (neighborIndex === Infinity) break;\n const conflict = routes[neighborIndex]!.accessor.length - 1;\n route.accessor[conflict] = `_${route.accessor[conflict]}`;\n }\n terminals[routeIndex]!.terminal.erase(routeIndex);\n insert(route.accessor, routeIndex);\n }\n return routes;\n};\n\nconst renameSlug = (\n slug: string,\n files: Record<string, string>,\n): Record<string, string> => {\n return Object.fromEntries(\n Object.entries(files).map(([key, value]) => [\n key,\n value.split(`@ORGANIZATION/PROJECT`).join(slug),\n ]),\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDA,IAAa,2BAAb,MAAa,yBAAyB;CAMpC,YAAmB,UAA6C;EAA7B,KAAA,WAAA;EACjC,KAAK,QAAQ,cAAc,YAAY,QAAQ;CACjD;;;;;;;;;;;;;CAcA,OAAc,OACZ,UAM0B;EAC1B,OAAO,IAAI,yBACT,iBAAiB,gBAAgB,QAAQ,CAC3C;CACF;;;;;;;;;;;;;CAcA,OAAc,SACZ,UAMuC;EACvC,IAAI;GACF,OAAO;IACL,SAAS;IACT,MAAM,IAAI,yBACR,iBAAiB,gBAAgB,QAAQ,CAC3C;GACF;EACF,SAAS,KAAK;GAEZ,OAAO;IACL,SAAS;IACT,MAAM;IACN,QAAQ,CACN;KACE,MAAM;KACN,UACE;KACF,OATkB,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG;IAUnE,CACF;GACF;EACF;CACF;;;;;;;;;;;;;;;CAmBA,UAA0C;EACxC,OAAO,KAAK;CACd;;;;;;;;;;;;;;;;;;;;;;;;CAyBA,KAAY,QAAsD;EAChE,MAAM,UAAiC,cACrC,QACA,KAAK,OACL,MACF;EACA,MAAM,QAAgC;GACpC,GAAG,OAAO,YACR,OAAO,QAAQ,aAAa,CAAC,CAAC,QAC3B,CAAC,SACA,IAAI,WAAW,6BAA6B,MAAM,SAClD,IAAI,WAAW,6BAA6B,MAAM,SAClD,IAAI,WAAW,kCAAkC,MAAM,SACvD,IAAI,WAAW,gCAAgC,MAAM,KACzD,CACF;GACA,GAAG,4BAA4B,MAAM,OAAO;GAC5C,GAAG,2BAA2B,MAAM,OAAO;GAC3C,GAAI,OAAO,MAAM,2BAA2B,MAAM,OAAO,IAAI,CAAC;GAC9D,GAAI,OAAO,YAAY,QACnB,EACE,qCAAqC,cACnC,oCACD,CAAE,QAAQ,iBAAiB,gBAAgB,EAC9C,IACA,CAAC;EACP;EACA,OAAO,OAAO,UAAU,WAAW,OAAO,SAAS,KAAK,IAAI;CAC9D;;;;;;;;;;;;;;;;;;;;;;;;;CA0BA,IAAW,QAAsD;EAC/D,MAAM,UAAiC,cACrC,OACA,KAAK,OACL,MACF;EACA,MAAM,QAAgC;GACpC,GAAG,OAAO,YACR,OAAO,QAAQ,YAAY,CAAC,CAAC,QAC1B,CAAC,SACA,IAAI,WAAW,gBAAgB,MAAM,SACrC,IAAI,WAAW,gBAAgB,MAAM,SACrC,IAAI,WAAW,eAAe,MAAM,KACxC,CACF;GACA,GAAG,2BAA2B,MAAM,OAAO;GAC3C,GAAG,gCAAgC,MAAM,OAAO;GAChD,GAAI,OAAO,MAAM,2BAA2B,MAAM,OAAO,IAAI,CAAC;GAC9D,gBAAgB,KAAK,UAAU,KAAK,UAAU,MAAM,CAAC;EACvD;EACA,OAAO,OAAO,UAAU,WAAW,OAAO,SAAS,KAAK,IAAI;CAC9D;AACF;AAEA,MAAM,iBACJ,MACA,aACA,WAC0B;CAC1B,MAAM,SAA8B,2BAClC,YAAY,OACT,QAAQ,MAAM,EAAE,WAAW,OAAO,CAAC,CACnC,KAAK,OAAO;EACX,GAAG;EACH,UAAU,CAAC,GAAG,EAAE,QAAQ;CAC1B,EAAE,CACN;CACA,OAAO;EACL;EACA,aAAa;GACX,GAAG;GACH;EACF;EACA;CACF;AACF;AAEA,MAAM,8BACJ,WACwB;CAKxB,MAAM,gBAAwB;EAC5B,0BAAU,IAAI,IAAI;EAClB,UAAU,IAAI,QAAQ;CACxB;CACA,MAAM,OAAe,OAAO;CAC5B,MAAM,UAAU,UAAoB,UAA0B;EAC5D,IAAI,OAAO;EACX,KAAK,MAAM,WAAW,UAAU;GAC9B,IAAI,QAAQ,KAAK,SAAS,IAAI,OAAO;GACrC,IAAI,UAAU,KAAA,GAAW;IACvB,QAAQ,OAAO;IACf,KAAK,SAAS,IAAI,SAAS,KAAK;GAClC;GACA,OAAO;EACT;EACA,KAAK,SAAS,OAAO,KAAK;EAC1B,OAAO;CACT;CACA,MAAM,YAAY,OAAO,KAAK,OAAO,UAAU,OAAO,MAAM,UAAU,KAAK,CAAC;CAC5E,KAAK,MAAM,CAAC,YAAY,UAAU,OAAO,QAAQ,GAAG;EAClD,OAAO,MAAM;GACX,IAAI,OAAO;GACX,IAAI,gBAAgB;GACpB,KAAK,IAAI,QAAQ,GAAG,QAAQ,MAAM,SAAS,SAAS,GAAG,EAAE,OAAO;IAC9D,MAAM,QAAQ,KAAK,SAAS,IAAI,MAAM,SAAS,MAAO;IACtD,IAAI,UAAU,KAAA,GAAW;IACzB,OAAO;IACP,IAAI,CAAC,KAAK,SAAS,MAAM,GACvB,gBAAgB,KAAK,IAAI,eAAe,KAAK,SAAS,MAAM,CAAC,CAAC,KAAK;GACvE;GACA,IAAI,kBAAkB,UAAU;GAChC,MAAM,WAAW,OAAO,cAAc,CAAE,SAAS,SAAS;GAC1D,MAAM,SAAS,YAAY,IAAI,MAAM,SAAS;EAChD;EACA,UAAU,WAAW,CAAE,SAAS,MAAM,UAAU;EAChD,OAAO,MAAM,UAAU,UAAU;CACnC;CACA,OAAO;AACT;AAEA,MAAM,cACJ,MACA,UAC2B;CAC3B,OAAO,OAAO,YACZ,OAAO,QAAQ,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,WAAW,CAC1C,KACA,MAAM,MAAM,uBAAuB,CAAC,CAAC,KAAK,IAAI,CAChD,CAAC,CACH;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"NestiaMigrateControllerAnalyzer.mjs","names":[],"sources":[],"mappings":""}
1
+ {"version":3,"file":"NestiaMigrateControllerAnalyzer.mjs","names":[],"sources":["../../src/analyzers/NestiaMigrateControllerAnalyzer.ts"],"sourcesContent":["import { IHttpMigrateRoute } from \"@typia/interface\";\n\nimport { INestiaMigrateController } from \"../structures/INestiaMigrateController\";\nimport { MapUtil } from \"../utils/MapUtil\";\nimport { PathTemplate } from \"../utils/PathTemplate\";\nimport { StringUtil } from \"../utils/StringUtil\";\n\n/**\n * Groups the routes of an application into NestJS controllers.\n *\n * Generated controller locations use portable slash spelling and directoryName\n * applies Windows filename constraints on every host: invalid/control\n * characters and trailing dots/spaces become underscores, and device names,\n * including extension and superscript-digit forms, receive a prefix. Router\n * paths retain their original URL meaning. Directory normalization is\n * intentionally many-to-one; distinct controllers retain their own filenames.\n * Host filesystem case policy is not inferred.\n *\n * @evidence contracts/common.md#principled-implementation Routes are grouped by the controller name from the operation, or by the capitalized accessor prefix, and each controller path is the longest path prefix shared by all of its routes, so one controller covers one resource path.\n * @evidence contracts/common.md#clear-and-simple-design One namespace with the grouping and the path formatting, and small private helpers for the shared-prefix computation.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts Names and paths derive from the document, with no route or controller name special-cased.\n * @evidence contracts/common.md#meaningful-documentation The comment states its purpose.\n */\nexport namespace NestiaMigrateControllerAnalyzer {\n /**\n * Returns the controllers of the routes, each with its name, its path, its\n * source location, and its routes.\n *\n * The name is the `x-samchon-controller` extension of the operation when\n * present, and otherwise the capitalized accessor prefix followed by\n * `Controller`.\n *\n * Generated controller locations use portable slash spelling and\n * directoryName applies Windows filename constraints on every host:\n * invalid/control characters and trailing dots/spaces become underscores, and\n * device names, including extension and superscript-digit forms, receive a\n * prefix. Router paths retain their original URL meaning. Directory\n * normalization is intentionally many-to-one; distinct controllers retain\n * their own filenames. Host filesystem case policy is not inferred.\n *\n * @evidence contracts/common.md#principled-implementation Grouping uses a map keyed by controller name, and the common path prefix and the directory prefix are found by removing every segment after the first difference across the routes, so a controller path is a prefix of every route it owns.\n * @evidence contracts/common.md#clear-and-simple-design One function with two phases: grouping, then prefix computation.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts The extension name is part of the generated document contract; no other name is assumed.\n * @evidence contracts/common.md#meaningful-documentation The comment states how the name and the path are chosen.\n */\n export const analyze = (\n routes: IHttpMigrateRoute[],\n ): INestiaMigrateController[] => {\n const collection: Map<string, INestiaMigrateController> = new Map();\n for (const r of routes) {\n const name: string =\n r.operation()[\"x-samchon-controller\"] ??\n (r.accessor.length <= 1\n ? \"__App\"\n : r.accessor.slice(0, -1).map(StringUtil.capitalize).join(\"\")) +\n \"Controller\";\n MapUtil.take(collection)(name)(() => ({\n name,\n path: \"@lazy\",\n location: \"@lazy\",\n routes: [],\n })).routes.push(r);\n }\n\n const controllers: INestiaMigrateController[] = [...collection.values()];\n for (const col of controllers) {\n const splitPath = (r: IHttpMigrateRoute): string[] =>\n routePath(r).split(\"/\");\n const splitLocation = (r: IHttpMigrateRoute): string[] =>\n splitPath(r)\n .filter((s) => s.length !== 0 && s[0] !== \":\")\n .map(directoryName);\n\n const minPath: string[] = splitPath(col.routes[0]!);\n const minLocation: string[] = splitLocation(col.routes[0]!);\n for (const r of col.routes.slice(1)) {\n minPath.splice(getSplitIndex(minPath, splitPath(r)));\n minLocation.splice(getSplitIndex(minLocation, splitLocation(r)));\n }\n col.path = minPath.join(\"/\");\n col.location = [\"src\", \"controllers\", ...minLocation].join(\"/\");\n }\n return controllers;\n };\n\n /**\n * The route's path as NestJS reads it: each path parameter under the key its\n * handler reads with `@TypedParam()`. The document's name, such as `item-id`,\n * is no path-to-regexp parameter name; it would read as `item` followed by\n * the literal `-id`, and the handler's lookup would miss. Each parameter is\n * found where the document's template writes it, beside literal text in its\n * segment too (`/files/{id}.json`).\n *\n * A literal character the router reserves is escaped, so an AIP custom\n * method's `/items:batchGet` stays a literal rather than a parameter\n * `batchGet`, and `(` or `*` no syntax error.\n *\n * This operation emits router protocol spelling and does not select native\n * filenames or filesystem identities.\n *\n * @evidence contracts/common.md#principled-implementation The path template is split into literal and parameter segments, and every character that path-to-regexp treats specially in a literal is escaped with a backslash, so a literal never changes the route's meaning.\n * @evidence contracts/common.md#clear-and-simple-design One expression over the shared path segmenter.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts The reserved set is the router's syntax and is applied to every literal.\n * @evidence contracts/common.md#meaningful-documentation The comment states the escaping and the parameter form.\n */\n export const routePath = (route: IHttpMigrateRoute): string =>\n PathTemplate.segments(route)\n .map((segment) =>\n segment.type === \"literal\"\n ? segment.value.replace(ROUTER_RESERVED, \"\\\\$&\")\n : `:${segment.parameter.key}`,\n )\n .join(\"\");\n}\n\n/**\n * The characters path-to-regexp 8, Express 5's router, gives a meaning in a\n * route: parameters, wildcards, optional groups, and its own escape.\n */\nconst ROUTER_RESERVED = /[\\\\:*?+!(){}[\\]]/g;\n\n/**\n * Maps a route segment to a portable directory component. Router escapes are\n * removed, Windows-invalid characters and trailing dots/spaces become\n * underscores, and reserved device names receive an underscore prefix. Distinct\n * route segments may share a directory; controller files retain their\n * independently assigned controller names.\n */\nconst directoryName = (segment: string): string => {\n const name: string = segment\n .replace(/\\\\(.)/g, \"$1\")\n .replace(/[<>:\"|?*\\\\\\u0000-\\u001f]/g, \"_\")\n .replace(/[. ]+$/, (suffix) => \"_\".repeat(suffix.length));\n return /^(?:CON|PRN|AUX|NUL|COM[1-9¹²³]|LPT[1-9¹²³])(?:\\.|$)/i.test(name)\n ? `_${name}`\n : name || \"_\";\n};\n\nconst getSplitIndex = (x: string[], y: string[]) => {\n const n: number = Math.min(x.length, y.length);\n for (let i: number = 0; i < n; ++i) if (x[i] !== y[i]) return i;\n return n;\n};\n"],"mappings":";;;;AAuBO,IAAA;;6CAuBH,WAC+B;EAC/B,MAAM,6BAAoD,IAAI,IAAI;EAClE,KAAK,MAAM,KAAK,QAAQ;GACtB,MAAM,OACJ,EAAE,UAAU,CAAC,CAAC,4BACb,EAAE,SAAS,UAAU,IAClB,UACA,EAAE,SAAS,MAAM,GAAG,EAAE,CAAC,CAAC,IAAI,WAAW,UAAU,CAAC,CAAC,KAAK,EAAE,KAC5D;GACJ,QAAQ,KAAK,UAAU,CAAC,CAAC,IAAI,CAAC,QAAQ;IACpC;IACA,MAAM;IACN,UAAU;IACV,QAAQ,CAAC;GACX,EAAE,CAAC,CAAC,OAAO,KAAK,CAAC;EACnB;EAEA,MAAM,cAA0C,CAAC,GAAG,WAAW,OAAO,CAAC;EACvE,KAAK,MAAM,OAAO,aAAa;GAC7B,MAAM,aAAa,MACjB,UAAU,CAAC,CAAC,CAAC,MAAM,GAAG;GACxB,MAAM,iBAAiB,MACrB,UAAU,CAAC,CAAC,CACT,QAAQ,MAAM,EAAE,WAAW,KAAK,EAAE,OAAO,GAAG,CAAC,CAC7C,IAAI,aAAa;GAEtB,MAAM,UAAoB,UAAU,IAAI,OAAO,EAAG;GAClD,MAAM,cAAwB,cAAc,IAAI,OAAO,EAAG;GAC1D,KAAK,MAAM,KAAK,IAAI,OAAO,MAAM,CAAC,GAAG;IACnC,QAAQ,OAAO,cAAc,SAAS,UAAU,CAAC,CAAC,CAAC;IACnD,YAAY,OAAO,cAAc,aAAa,cAAc,CAAC,CAAC,CAAC;GACjE;GACA,IAAI,OAAO,QAAQ,KAAK,GAAG;GAC3B,IAAI,WAAW;IAAC;IAAO;IAAe,GAAG;GAAW,CAAC,CAAC,KAAK,GAAG;EAChE;EACA,OAAO;CACT;CAsBO,MAAM,YAAA,iCAAA,aAAa,UACxB,aAAa,SAAS,KAAK,CAAC,CACzB,KAAK,YACJ,QAAQ,SAAS,YACb,QAAQ,MAAM,QAAQ,iBAAiB,MAAM,IAC7C,IAAI,QAAQ,UAAU,KAC5B,CAAC,CACA,KAAK,EAAE;GACb,oCAAA,kCAAA,CAAA,EAAD;;;;;AAMA,MAAM,kBAAkB;;;;;;;;AASxB,MAAM,iBAAiB,YAA4B;CACjD,MAAM,OAAe,QAClB,QAAQ,UAAU,IAAI,CAAC,CACvB,QAAQ,6BAA6B,GAAG,CAAC,CACzC,QAAQ,WAAW,WAAW,IAAI,OAAO,OAAO,MAAM,CAAC;CAC1D,OAAO,wDAAwD,KAAK,IAAI,IACpE,IAAI,SACJ,QAAQ;AACd;AAEA,MAAM,iBAAiB,GAAa,MAAgB;CAClD,MAAM,IAAY,KAAK,IAAI,EAAE,QAAQ,EAAE,MAAM;CAC7C,KAAK,IAAI,IAAY,GAAG,IAAI,GAAG,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,IAAI,OAAO;CAC9D,OAAO;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"NestiaMigrateFileArchiver.mjs","names":[],"sources":[],"mappings":""}
1
+ {"version":3,"file":"NestiaMigrateFileArchiver.mjs","names":[],"sources":["../../src/archivers/NestiaMigrateFileArchiver.ts"],"sourcesContent":["import { VariadicSingleton } from \"tstl\";\n\n/**\n * Writes a file map into a directory through injected file-system functions.\n *\n * Each path is the root, a `/` and the key's `/`-separated segments, a spelling\n * the filesystem calls of every supported platform accept, and creation and\n * writing are delegated to injected functions, so the caller's filesystem\n * decides existence, case policy and permissions. Directories are created one\n * segment at a time because the injected creator is not recursive. Remaining\n * assumptions: keys are trusted generated names, since a `..` or absolute\n * segment would leave the root, and on a case-insensitive volume two keys that\n * differ only in case write to the same file.\n *\n * @evidence contracts/common.md#principled-implementation Directories are created one path prefix at a time, each once, through a memoized creator, and the files are then written in the order of the map; injecting the functions keeps the archiver independent of Node and of the browser.\n * @evidence contracts/common.md#clear-and-simple-design One function with one memoized directory creator.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts It writes exactly the given files, and injection is the supported boundary for the platform.\n * @evidence contracts/common.md#meaningful-documentation The comment states its purpose.\n */\nexport namespace NestiaMigrateFileArchiver {\n /**\n * Writes every file of `files` below `root`, creating the directories on the\n * way.\n *\n * A directory that cannot be created is not reported, because the creator is\n * also called for a directory that already exists; the failure surfaces when\n * the file is written.\n *\n * The memo of created directories is keyed by the spelled path, so on a\n * case-insensitive volume a second spelling attempts the creation again and\n * receives the already-exists error, which is the swallowed outcome.\n *\n * @evidence contracts/common.md#principled-implementation The root and each prefix of each file's directory are created once, in order, before the file is written, and a creation failure is deferred to the write that needs the directory, since the injected creator is not recursive and reports an existing directory as an error.\n * @evidence contracts/common.md#clear-and-simple-design One function; the memoized creator makes a repeated directory a no-op.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts The dropped creation error is a stated consequence of the non-recursive creator, and the write still fails loudly when the directory is missing.\n * @evidence contracts/common.md#meaningful-documentation The comment states the order of creation and the deferred error.\n */\n export const archive = async (props: {\n mkdir: (path: string) => Promise<void>;\n writeFile: (path: string, content: string) => Promise<void>;\n root: string;\n files: Record<string, string>;\n }): Promise<void> => {\n const mkdir = new VariadicSingleton(\n async (location: string): Promise<void> => {\n try {\n await props.mkdir(`${props.root}/${location}`);\n } catch {}\n },\n );\n const iterate = async (location: string): Promise<void> => {\n const sequence: string[] = location\n .split(\"/\")\n .map((_str, i, entire) => entire.slice(0, i + 1).join(\"/\"));\n for (const s of sequence) await mkdir.get(s);\n };\n // The file set may lead with a nested path (the monorepo template's\n // first key is `.github/workflows/build.yml`), so the archive root must\n // exist before the per-directory mkdir walk below it.\n await mkdir.get(\"\");\n for (const [key, value] of Object.entries(props.files)) {\n await iterate(key.split(\"/\").slice(0, -1).join(\"/\"));\n await props.writeFile(`${props.root}/${key}`, value);\n }\n };\n}\n"],"mappings":";;AAmBO,IAAA;;sCAkBkB,OAAO,UAKT;EACnB,MAAM,QAAQ,IAAI,kBAChB,OAAO,aAAoC;GACzC,IAAI;IACF,MAAM,MAAM,MAAM,GAAG,MAAM,KAAK,GAAG,UAAU;GAC/C,QAAQ,CAAC;EACX,CACF;EACA,MAAM,UAAU,OAAO,aAAoC;GACzD,MAAM,WAAqB,SACxB,MAAM,GAAG,CAAC,CACV,KAAK,MAAM,GAAG,WAAW,OAAO,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC;GAC5D,KAAK,MAAM,KAAK,UAAU,MAAM,MAAM,IAAI,CAAC;EAC7C;EAIA,MAAM,MAAM,IAAI,EAAE;EAClB,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,MAAM,KAAK,GAAG;GACtD,MAAM,QAAQ,IAAI,MAAM,GAAG,CAAC,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC;GACnD,MAAM,MAAM,UAAU,GAAG,MAAM,KAAK,GAAG,OAAO,KAAK;EACrD;CACF;GACD,8BAAA,4BAAA,CAAA,EAAD"}
@@ -52,7 +52,7 @@ exports.NEST_TEMPLATE = {
52
52
  "packages/backend/test/webpack.ts": "import { DynamicExecutor } from \"@nestia/e2e\";\nimport cp from \"node:child_process\";\nimport { sleep_for } from \"tstl\";\n\nimport { MyConfiguration } from \"../src/MyConfiguration\";\nimport { MyGlobal } from \"../src/MyGlobal\";\nimport { TestAutomation } from \"./helpers/TestAutomation\";\nimport { TestAutomationStdio } from \"./helpers/TestAutomationStdio\";\n\nconst wait = async (): Promise<void> => {\n while (true)\n try {\n await fetch(`http://localhost:${MyConfiguration.API_PORT()}/dsafdsafsd`);\n return;\n } catch (exp) {\n await sleep_for(100);\n }\n};\n\nconst main = async (): Promise<void> => {\n MyGlobal.testing = true;\n\n const report: DynamicExecutor.IReport = await TestAutomation.execute({\n open: async () => {\n const backend: cp.ChildProcess = cp.fork(\n `${MyConfiguration.ROOT}/dist/server.js`,\n {\n cwd: `${MyConfiguration.ROOT}/dist`,\n },\n );\n await wait();\n return backend;\n },\n close: async (backend) => {\n backend.kill();\n },\n options: await TestAutomationStdio.getOptions(),\n onComplete: TestAutomationStdio.onComplete,\n });\n TestAutomationStdio.report(report);\n};\nmain().catch((exp: unknown) => {\n console.log(exp);\n process.exit(-1);\n});\n",
53
53
  "packages/backend/tsconfig.json": "{\n \"extends\": \"../../config/tsconfig.json\",\n \"compilerOptions\": {\n \"outDir\": \"lib\",\n \"rootDir\": \"src\",\n \"experimentalDecorators\": true,\n \"emitDecoratorMetadata\": true\n },\n \"include\": [\"src\"]\n}\n",
54
54
  "packages/backend/webpack.config.js": "const path = require(\"path\");\n\nconst CopyWebpackPlugin = require(\"copy-webpack-plugin\");\nconst WriteFilePlugin = require(\"write-file-webpack-plugin\");\nconst { IgnorePlugin } = require(\"webpack\");\n\nconst lazyImports = [\n \"@modelcontextprotocol/sdk\",\n \"@fastify/static\",\n \"@fastify/view\",\n \"@nestjs/microservices\",\n \"@nestjs/websockets\",\n \"class-transformer\",\n \"class-validator\",\n];\n\n// @reference https://tech-blog.s-yoshiki.com/entry/297\nmodule.exports = {\n // CUSTOMIZE HERE\n entry: {\n server: \"./lib/executable/server.js\",\n },\n output: {\n path: path.join(__dirname, \"dist\"),\n filename: \"[name].js\",\n },\n optimization: {\n minimize: true,\n },\n\n // JUST KEEP THEM\n mode: \"production\",\n target: \"node\",\n plugins: [\n new CopyWebpackPlugin({\n patterns: [\n {\n from: \".env\",\n to: \"[name][ext]\",\n },\n ],\n }),\n new WriteFilePlugin(),\n new IgnorePlugin({\n checkResource: (resource) => {\n if (lazyImports.some((modulo) => resource.startsWith(modulo))) {\n try {\n require.resolve(resource);\n } catch (err) {\n return true;\n }\n }\n return false;\n },\n }),\n ],\n};\n",
55
- "pnpm-workspace.yaml": "packages:\n - \"config\"\n - \"packages/*\"\ncatalogs:\n samchon:\n \"@nestia/benchmark\": ^14.3.0\n \"@nestia/core\": ^14.3.0\n \"@nestia/e2e\": ^14.3.0\n \"@nestia/fetcher\": ^14.3.0\n \"@nestia/sdk\": ^14.3.0\n nestia: ^14.3.0\n tgrid: ^1.2.1\n tstl: ^3.0.0\n typia: 15.4.0\n rolldown:\n rolldown: ^1.1.5\n utils:\n rimraf: ^6.1.3\n uuid: ^13.0.0\n typescript:\n \"@ttsc/lint\": ^0.37.0\n \"@ttsc/paths\": ^0.18.2\n \"@ttsc/unplugin\": ^0.37.0\n ttsc: ^0.37.0\n typescript: ^7.0.2\n",
55
+ "pnpm-workspace.yaml": "packages:\n - \"config\"\n - \"packages/*\"\ncatalogs:\n samchon:\n \"@nestia/benchmark\": ^14.4.0\n \"@nestia/core\": ^14.4.0\n \"@nestia/e2e\": ^14.4.0\n \"@nestia/fetcher\": ^14.4.0\n \"@nestia/sdk\": ^14.4.0\n nestia: ^14.4.0\n tgrid: ^1.2.1\n tstl: ^3.0.0\n typia: 15.5.0\n rolldown:\n rolldown: ^1.1.5\n utils:\n rimraf: ^6.1.3\n uuid: ^13.0.0\n typescript:\n \"@ttsc/lint\": ^0.38.1\n \"@ttsc/paths\": ^0.18.2\n \"@ttsc/unplugin\": ^0.38.1\n ttsc: ^0.38.1\n typescript: ^7.0.2\n",
56
56
  "typos.toml": "[default]\nlocale = 'en-us'\nextend-ignore-re = [\n \"(?Rm)^.*(<!--|#|//)\\\\s*spellchecker:disable-line(-->|\\n)?$\",\n \"(?s)(<!--|#|//)\\\\s*spellchecker:off\\\\s*(-->|\\n).*?(<!--|#|//)\\\\s*spellchecker:on\",\n]\n\n[default.extend-words]\nJeongho = \"Jeongho\"\nNam = \"Nam\"\ntypia = \"typia\"\n\n[files]\nextend-exclude = [\"*.json\"]"
57
57
  };
58
58
  //# sourceMappingURL=NEST_TEMPLATE.js.map
@@ -50,7 +50,7 @@ const NEST_TEMPLATE = {
50
50
  "packages/backend/test/webpack.ts": "import { DynamicExecutor } from \"@nestia/e2e\";\nimport cp from \"node:child_process\";\nimport { sleep_for } from \"tstl\";\n\nimport { MyConfiguration } from \"../src/MyConfiguration\";\nimport { MyGlobal } from \"../src/MyGlobal\";\nimport { TestAutomation } from \"./helpers/TestAutomation\";\nimport { TestAutomationStdio } from \"./helpers/TestAutomationStdio\";\n\nconst wait = async (): Promise<void> => {\n while (true)\n try {\n await fetch(`http://localhost:${MyConfiguration.API_PORT()}/dsafdsafsd`);\n return;\n } catch (exp) {\n await sleep_for(100);\n }\n};\n\nconst main = async (): Promise<void> => {\n MyGlobal.testing = true;\n\n const report: DynamicExecutor.IReport = await TestAutomation.execute({\n open: async () => {\n const backend: cp.ChildProcess = cp.fork(\n `${MyConfiguration.ROOT}/dist/server.js`,\n {\n cwd: `${MyConfiguration.ROOT}/dist`,\n },\n );\n await wait();\n return backend;\n },\n close: async (backend) => {\n backend.kill();\n },\n options: await TestAutomationStdio.getOptions(),\n onComplete: TestAutomationStdio.onComplete,\n });\n TestAutomationStdio.report(report);\n};\nmain().catch((exp: unknown) => {\n console.log(exp);\n process.exit(-1);\n});\n",
51
51
  "packages/backend/tsconfig.json": "{\n \"extends\": \"../../config/tsconfig.json\",\n \"compilerOptions\": {\n \"outDir\": \"lib\",\n \"rootDir\": \"src\",\n \"experimentalDecorators\": true,\n \"emitDecoratorMetadata\": true\n },\n \"include\": [\"src\"]\n}\n",
52
52
  "packages/backend/webpack.config.js": "const path = require(\"path\");\n\nconst CopyWebpackPlugin = require(\"copy-webpack-plugin\");\nconst WriteFilePlugin = require(\"write-file-webpack-plugin\");\nconst { IgnorePlugin } = require(\"webpack\");\n\nconst lazyImports = [\n \"@modelcontextprotocol/sdk\",\n \"@fastify/static\",\n \"@fastify/view\",\n \"@nestjs/microservices\",\n \"@nestjs/websockets\",\n \"class-transformer\",\n \"class-validator\",\n];\n\n// @reference https://tech-blog.s-yoshiki.com/entry/297\nmodule.exports = {\n // CUSTOMIZE HERE\n entry: {\n server: \"./lib/executable/server.js\",\n },\n output: {\n path: path.join(__dirname, \"dist\"),\n filename: \"[name].js\",\n },\n optimization: {\n minimize: true,\n },\n\n // JUST KEEP THEM\n mode: \"production\",\n target: \"node\",\n plugins: [\n new CopyWebpackPlugin({\n patterns: [\n {\n from: \".env\",\n to: \"[name][ext]\",\n },\n ],\n }),\n new WriteFilePlugin(),\n new IgnorePlugin({\n checkResource: (resource) => {\n if (lazyImports.some((modulo) => resource.startsWith(modulo))) {\n try {\n require.resolve(resource);\n } catch (err) {\n return true;\n }\n }\n return false;\n },\n }),\n ],\n};\n",
53
- "pnpm-workspace.yaml": "packages:\n - \"config\"\n - \"packages/*\"\ncatalogs:\n samchon:\n \"@nestia/benchmark\": ^14.3.0\n \"@nestia/core\": ^14.3.0\n \"@nestia/e2e\": ^14.3.0\n \"@nestia/fetcher\": ^14.3.0\n \"@nestia/sdk\": ^14.3.0\n nestia: ^14.3.0\n tgrid: ^1.2.1\n tstl: ^3.0.0\n typia: 15.4.0\n rolldown:\n rolldown: ^1.1.5\n utils:\n rimraf: ^6.1.3\n uuid: ^13.0.0\n typescript:\n \"@ttsc/lint\": ^0.37.0\n \"@ttsc/paths\": ^0.18.2\n \"@ttsc/unplugin\": ^0.37.0\n ttsc: ^0.37.0\n typescript: ^7.0.2\n",
53
+ "pnpm-workspace.yaml": "packages:\n - \"config\"\n - \"packages/*\"\ncatalogs:\n samchon:\n \"@nestia/benchmark\": ^14.4.0\n \"@nestia/core\": ^14.4.0\n \"@nestia/e2e\": ^14.4.0\n \"@nestia/fetcher\": ^14.4.0\n \"@nestia/sdk\": ^14.4.0\n nestia: ^14.4.0\n tgrid: ^1.2.1\n tstl: ^3.0.0\n typia: 15.5.0\n rolldown:\n rolldown: ^1.1.5\n utils:\n rimraf: ^6.1.3\n uuid: ^13.0.0\n typescript:\n \"@ttsc/lint\": ^0.38.1\n \"@ttsc/paths\": ^0.18.2\n \"@ttsc/unplugin\": ^0.38.1\n ttsc: ^0.38.1\n typescript: ^7.0.2\n",
54
54
  "typos.toml": "[default]\nlocale = 'en-us'\nextend-ignore-re = [\n \"(?Rm)^.*(<!--|#|//)\\\\s*spellchecker:disable-line(-->|\\n)?$\",\n \"(?s)(<!--|#|//)\\\\s*spellchecker:off\\\\s*(-->|\\n).*?(<!--|#|//)\\\\s*spellchecker:on\",\n]\n\n[default.extend-words]\nJeongho = \"Jeongho\"\nNam = \"Nam\"\ntypia = \"typia\"\n\n[files]\nextend-exclude = [\"*.json\"]"
55
55
  };
56
56
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"NEST_TEMPLATE.mjs","names":[],"sources":[],"mappings":""}
1
+ {"version":3,"file":"NEST_TEMPLATE.mjs","names":[],"sources":["../../src/bundles/NEST_TEMPLATE.ts"],"sourcesContent":["export const NEST_TEMPLATE: Record<string, string> = {\n \".github/workflows/build.yml\": \"name: build\\non:\\n pull_request:\\n push:\\n branches:\\n - master\\n\\njobs:\\n Ubuntu:\\n runs-on: ubuntu-latest\\n steps:\\n - uses: actions/checkout@v4\\n - uses: actions/setup-node@v4\\n - uses: pnpm/action-setup@v4\\n\\n - name: Install\\n run: pnpm install\\n\\n - name: Build\\n run: pnpm build\\n\\n - name: Test\\n working-directory: packages/backend\\n run: pnpm test --simultaneous 16\\n\",\n \".github/workflows/typos.yml\": \"name: typos\\non:\\n pull_request:\\n\\njobs:\\n typos:\\n runs-on: ubuntu-latest\\n steps:\\n - name: Checkout Actions Repository\\n uses: actions/checkout@v4\\n\\n - uses: crate-ci/typos@master\\n with:\\n config: ./typos.toml\\n\",\n \".gitignore\": \"bin/\\ndist/\\nlib/\\nnode_modules/\\n\\n.env\\n.npmrc\\npackage-lock.json\\n*.log\\n\",\n \".vscode/launch.json\": \"{\\n // Use IntelliSense to learn about possible Node.js debug attributes.\\n // Hover to view descriptions of existing attributes.\\n // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387\\n \\\"version\\\": \\\"0.2.0\\\",\\n \\\"configurations\\\": [\\n {\\n \\\"type\\\": \\\"node\\\",\\n \\\"request\\\": \\\"launch\\\",\\n \\\"name\\\": \\\"Backend Test\\\",\\n \\\"runtimeExecutable\\\": \\\"pnpm\\\",\\n \\\"runtimeArgs\\\": [\\\"ttsx\\\", \\\"--project\\\", \\\"test/tsconfig.json\\\", \\\"test/index.ts\\\"],\\n \\\"cwd\\\": \\\"${workspaceRoot}/packages/backend\\\",\\n \\\"args\\\": [\\n //----\\n // You can run specific test functions\\n //\\n // If you want to include or exclude multiple words,\\n // then separate them with space character\\n //----\\n // \\\"--include\\\", \\\"some-words-to-include\\\",\\n // \\\"--exclude\\\", \\\"some-word another-word\\\",\\n ],\\n }\\n ]\\n}\\n\",\n \".vscode/settings.json\": \"{\\n \\\"editor.tabSize\\\": 2\\n}\\n\",\n \"LICENSE\": \"MIT License\\n\\nCopyright (c) 2022 Jeongho Nam\\n\\nPermission is hereby granted, free of charge, to any person obtaining a copy\\nof this software and associated documentation files (the \\\"Software\\\"), to deal\\nin the Software without restriction, including without limitation the rights\\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\\ncopies of the Software, and to permit persons to whom the Software is\\nfurnished to do so, subject to the following conditions:\\n\\nThe above copyright notice and this permission notice shall be included in all\\ncopies or substantial portions of the Software.\\n\\nTHE SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\\nSOFTWARE.\\n\",\n \"README.md\": \"# Nestia Template\\n## Outline\\n[![Build Status](https://github.com/samchon/nestia-start/workflows/build/badge.svg)](https://github.com/samchon/nestia-start/actions?query=workflow%3Abuild)\\n\\nA template repository for backend projects using [nestia](https://github.com/samchon/nestia).\\n\\nYou can create a new project from this boilerplate by running below command:\\n\\n```bash\\npnpm dlx nestia start <directory>\\n```\\n\\nFor reference, this is a minimal boilerplate project concentrating only on [nestia](https://github.com/samchon/nestia) SDK generation. \\n\\nIf you wanna much detailed boilerplate project, visit [`@samchon/backend`](https://github.com/samchon/backend).\\n\\n\\n\\n\\n## Directories and Files\\nThis template project is a [pnpm](https://pnpm.io) monorepo composed with two packages.\\n\\nBackend source files are placed into the [packages/backend/src](packages/backend/src) directory, and they are compiled by [`ttsc`](https://ttsc.dev) (TypeScript-Go toolchain supporting compiler-powered plugins like [typia](https://github.com/samchon/typia)) into the `lib` directory. Otherwise, client SDK library files generated by [nestia](https://github.com/samchon/nestia) are placed into the [packages/api](packages/api) directory, and they would be published to the npm registry as `@ORGANIZATION/PROJECT-api`.\\n\\n - [packages/api/](packages/api): SDK library published to the `@ORGANIZATION/PROJECT-api`\\n - [**packages/api/src/functional/**](packages/api/src/functional/): API functions generated by the [`nestia`](https://github.com/samchon/nestia)\\n - [**packages/api/src/structures/**](packages/api/src/structures/): DTO structures\\n - [packages/backend/](packages/backend): Backend server package\\n - [packages/backend/src/](packages/backend/src): Backend source directory\\n - [packages/backend/src/controllers/](packages/backend/src/controllers/): Controller classes of the Main Program\\n - [**packages/backend/test/**](packages/backend/test): Test Automation Program\\n - [packages/backend/nestia.config.ts](packages/backend/nestia.config.ts): Configuration file of [`nestia`](https://github.com/samchon/nestia)\\n - [packages/backend/tsconfig.json](packages/backend/tsconfig.json): TypeScript configuration for the main program\\n - [pnpm-workspace.yaml](pnpm-workspace.yaml): Workspace and catalog configuration of [pnpm](https://pnpm.io)\\n - [package.json](package.json): Root workspace configuration\\n\\n\\n\\n\\n## PNPM Run Commands\\nList of the run commands defined in the [packages/backend/package.json](packages/backend/package.json) are like below:\\n\\n - Test\\n - **`test`**: Run test automation program\\n - `benchmark`: Run performance benchmark program\\n - Build\\n - `build`: Build everything (SDK + main program)\\n - `build:main`: Build main program (`src` directory)\\n - `build:test` Type check test automation program (`test` directory)\\n - `build:sdk`: Build SDK into the [packages/api](packages/api) directory\\n - `build:swagger`: Build Swagger Documents\\n - **`dev`**: Incremental type checking for development (test program)\\n - Deploy\\n - `start`: Start the backend server\\n - `start:dev`: Start the backend server with incremental build and reload\\n - `start:prod`: Start the backend server with the compiled `lib` directory\\n - Webpack\\n - `webpack`: Run webpack bundler\\n - `webpack:start`: Start the backend server built by webpack\\n - `webpack:test`: Run test program to the webpack built\\n\\nAlso, in the root directory, you can run below commands:\\n\\n - `build`: Build every package (`pnpm -r build`)\\n - `test`: Run test automation program of the backend\\n - `start`: Start the backend server\\n - `lint`: Type check and lint every package with [`ttsc`](https://ttsc.dev)\\n - `format`: Format every TypeScript file with [`ttsc format`](https://ttsc.dev)\\n\\nFor reference, TypeScript compiler options and [`@ttsc/lint`](https://ttsc.dev) rules are shared from the [config](config) workspace package. Each package extends [config/tsconfig.json](config/tsconfig.json) and spreads [config/lint.config.ts](config/lint.config.ts) in its own `lint.config.ts` file.\\n\\nTo publish the SDK library, run `pnpm publish` in the [packages/api](packages/api) directory. The `prepack` script would build everything before the publishing.\\n\\n\\n\\n\\n## Specialization\\nTransform this template project to be yours.\\n\\nWhen you've created a new backend project through this template project, you can specialize it to be suitable for you by changing some words. Replace below words through IDE specific function like `Edit > Replace in Files` (*Ctrl + Shift + H*), who've been supported by the VSCode.\\n\\n| Before | After\\n|-----------------|----------------------------------------\\n| ORGANIZATION | Your account or corporation name\\n| PROJECT | Your own project name\\n| AUTHOR | Author name\\n| https://github.com/samchon/nestia-start | Your repository URL\\n\\n\\n\\n\\n## Test Driven Development\\nWith [nestia](https://github.com/samchon/nestia) helps to accomplish TDD (Test Driven Development). \\n\\nJust define DTOs and API controllers' methods (only declarations) first. After the definitions, and build SDK (Software Development Kit) through [nestia](https://github.com/samchon/nestia) (`pnpm build:sdk`). After buildling those SDK, develop test automation program using the SDK, following use-case scenarios in the framework of client side.\\n\\nDuring the test automation program development, you can find that which API is miss-designed or which requirement analysis is not exact. Development of the main program must be the last step after such validation process during TDD.\\n\\n> Visit the [samchon/backend](https://github.com/samchon/backend), then you may find much detailed story about this TDD.\\n>\\n> 1. Definitions\\n> 2. SDK\\n> 3. Test Automation Program\\n> 4. Main Program\\n\\n```typescript\\nimport {\\n ArrayUtil,\\n GaffComparator,\\n RandomGenerator,\\n TestValidator,\\n} from \\\"@nestia/e2e\\\";\\n\\nimport api, { IBbsArticle, IPage } from \\\"@ORGANIZATION/PROJECT-api\\\";\\n\\nexport async function test_api_bbs_article_index_sort(\\n connection: api.IConnection,\\n): Promise<void> {\\n // GENERATE 100 ARTICLES\\n const section: string = \\\"general\\\";\\n await ArrayUtil.asyncRepeat(100, () =>\\n api.functional.bbs.articles.create(connection, {\\n section,\\n body: {\\n writer: RandomGenerator.name(),\\n title: RandomGenerator.paragraph(),\\n body: RandomGenerator.content(),\\n format: \\\"txt\\\",\\n files: [],\\n password: RandomGenerator.alphabets(8),\\n },\\n }),\\n );\\n\\n // PREPARE VALIDATOR\\n const validator = TestValidator.sort(\\n \\\"BbsArticleProvider.index()\\\",\\n async (sort: IPage.Sort<IBbsArticle.IRequest.SortableColumns>) => {\\n const page: IPage<IBbsArticle.ISummary> =\\n await api.functional.bbs.articles.index(connection, {\\n section,\\n body: {\\n limit: 100,\\n sort,\\n },\\n });\\n return page.data;\\n },\\n );\\n\\n // DO VALIDATE\\n const components = [\\n validator(\\\"created_at\\\")(GaffComparator.dates((x) => x.created_at)),\\n validator(\\\"updated_at\\\")(GaffComparator.dates((x) => x.updated_at)),\\n validator(\\\"title\\\")(GaffComparator.strings((x) => x.title)),\\n validator(\\\"writer\\\")(GaffComparator.strings((x) => x.writer)),\\n validator(\\n \\\"writer\\\",\\n \\\"title\\\",\\n )(GaffComparator.strings((x) => [x.writer, x.title])),\\n ];\\n for (const comp of components) {\\n await comp(\\\"+\\\", false);\\n await comp(\\\"-\\\", false);\\n }\\n}\\n```\\n\\nFor reference, if you run `pnpm benchmark` command, your test functions defined in the [packages/backend/test/features/api](packages/backend/test/features/api) directory would be utilized for performance benchmarking. If you want to see the performance bench result earlier, visit below link please:\\n\\n - [packages/backend/docs/benchmarks/AMD Ryzen 9 7940HS w Radeon 780M Graphics.md](https://github.com/samchon/nestia-start/blob/master/packages/backend/docs/benchmarks/AMD%20Ryzen%209%207940HS%20w%20Radeon%20780M%20Graphics.md)\\n\",\n \"config/lint.config.ts\": \"import type { ITtscLintConfig } from \\\"@ttsc/lint\\\";\\n\\nconst config = {\\n format: {\\n // Keep @ttsc/lint formatting aligned with the repository import groups.\\n severity: \\\"off\\\",\\n semi: true,\\n singleQuote: false,\\n arrowParens: \\\"always\\\",\\n bracketSpacing: true,\\n quoteProps: \\\"as-needed\\\",\\n trailingComma: \\\"all\\\",\\n printWidth: 80,\\n tabWidth: 2,\\n useTabs: false,\\n endOfLine: \\\"lf\\\",\\n sortImports: {\\n order: [\\n \\\"^@ORGANIZATION/PROJECT-api(.*)$\\\",\\n \\\"^@/(.*)$\\\",\\n \\\"<THIRD_PARTY_MODULES>\\\",\\n \\\"^[./]\\\",\\n ],\\n },\\n jsDoc: true,\\n },\\n rules: {\\n // ESLint core: runtime correctness and low-noise modern JavaScript.\\n \\\"default-param-last\\\": \\\"error\\\",\\n eqeqeq: \\\"error\\\",\\n \\\"for-direction\\\": \\\"error\\\",\\n \\\"getter-return\\\": \\\"error\\\",\\n \\\"grouped-accessor-pairs\\\": \\\"error\\\",\\n \\\"guard-for-in\\\": \\\"error\\\",\\n \\\"no-array-constructor\\\": \\\"error\\\",\\n \\\"no-async-promise-executor\\\": \\\"error\\\",\\n \\\"no-caller\\\": \\\"error\\\",\\n \\\"no-case-declarations\\\": \\\"error\\\",\\n \\\"no-class-assign\\\": \\\"error\\\",\\n \\\"no-compare-neg-zero\\\": \\\"error\\\",\\n \\\"no-cond-assign\\\": \\\"error\\\",\\n \\\"no-constructor-return\\\": \\\"error\\\",\\n \\\"no-debugger\\\": \\\"error\\\",\\n \\\"no-delete-var\\\": \\\"error\\\",\\n \\\"no-dupe-args\\\": \\\"error\\\",\\n \\\"no-dupe-class-members\\\": \\\"error\\\",\\n \\\"no-dupe-else-if\\\": \\\"error\\\",\\n \\\"no-dupe-keys\\\": \\\"error\\\",\\n \\\"no-duplicate-case\\\": \\\"error\\\",\\n \\\"no-duplicate-imports\\\": \\\"error\\\",\\n \\\"no-empty-character-class\\\": \\\"error\\\",\\n \\\"no-empty-pattern\\\": \\\"error\\\",\\n \\\"no-empty-static-block\\\": \\\"error\\\",\\n \\\"no-eval\\\": \\\"error\\\",\\n \\\"no-ex-assign\\\": \\\"error\\\",\\n \\\"no-extend-native\\\": \\\"error\\\",\\n \\\"no-extra-bind\\\": \\\"error\\\",\\n \\\"no-extra-boolean-cast\\\": \\\"error\\\",\\n \\\"no-fallthrough\\\": \\\"error\\\",\\n \\\"no-func-assign\\\": \\\"error\\\",\\n \\\"no-import-assign\\\": \\\"error\\\",\\n \\\"no-inner-declarations\\\": \\\"error\\\",\\n \\\"no-invalid-this\\\": \\\"error\\\",\\n \\\"no-irregular-whitespace\\\": \\\"error\\\",\\n \\\"no-iterator\\\": \\\"error\\\",\\n \\\"no-loss-of-precision\\\": \\\"error\\\",\\n \\\"no-multi-assign\\\": \\\"error\\\",\\n \\\"no-multi-str\\\": \\\"error\\\",\\n \\\"no-new-func\\\": \\\"error\\\",\\n \\\"no-new-symbol\\\": \\\"error\\\",\\n \\\"no-new-wrappers\\\": \\\"error\\\",\\n \\\"no-obj-calls\\\": \\\"error\\\",\\n \\\"no-object-constructor\\\": \\\"error\\\",\\n \\\"no-octal\\\": \\\"error\\\",\\n \\\"no-octal-escape\\\": \\\"error\\\",\\n \\\"no-promise-executor-return\\\": \\\"error\\\",\\n \\\"no-proto\\\": \\\"error\\\",\\n \\\"no-prototype-builtins\\\": \\\"error\\\",\\n \\\"no-redeclare\\\": \\\"error\\\",\\n \\\"no-regex-spaces\\\": \\\"error\\\",\\n \\\"no-return-assign\\\": \\\"error\\\",\\n \\\"no-script-url\\\": \\\"error\\\",\\n \\\"no-self-assign\\\": \\\"error\\\",\\n \\\"no-self-compare\\\": \\\"error\\\",\\n \\\"no-sequences\\\": \\\"error\\\",\\n \\\"no-setter-return\\\": \\\"error\\\",\\n \\\"no-shadow-restricted-names\\\": \\\"error\\\",\\n \\\"no-sparse-arrays\\\": \\\"error\\\",\\n \\\"no-template-curly-in-string\\\": \\\"error\\\",\\n \\\"no-this-before-super\\\": \\\"error\\\",\\n \\\"no-unreachable\\\": \\\"error\\\",\\n \\\"no-unsafe-finally\\\": \\\"error\\\",\\n \\\"no-unsafe-negation\\\": \\\"error\\\",\\n \\\"no-unused-labels\\\": \\\"error\\\",\\n \\\"no-useless-assignment\\\": \\\"error\\\",\\n \\\"no-useless-call\\\": \\\"error\\\",\\n \\\"no-useless-catch\\\": \\\"error\\\",\\n \\\"no-useless-computed-key\\\": \\\"error\\\",\\n \\\"no-useless-escape\\\": \\\"error\\\",\\n \\\"no-useless-rename\\\": \\\"error\\\",\\n \\\"no-var\\\": \\\"error\\\",\\n \\\"no-with\\\": \\\"error\\\",\\n \\\"prefer-const\\\": \\\"error\\\",\\n radix: \\\"error\\\",\\n \\\"use-isnan\\\": \\\"error\\\",\\n \\\"valid-typeof\\\": \\\"error\\\",\\n\\n // RegExp: invalid, empty, or misleading regular-expression structure.\\n \\\"regexp/no-dupe-characters-character-class\\\": \\\"error\\\",\\n \\\"regexp/no-empty-alternative\\\": \\\"error\\\",\\n \\\"regexp/no-empty-capturing-group\\\": \\\"error\\\",\\n \\\"regexp/no-empty-group\\\": \\\"error\\\",\\n \\\"regexp/no-empty-lookarounds-assertion\\\": \\\"error\\\",\\n \\\"regexp/no-useless-character-class\\\": \\\"error\\\",\\n \\\"regexp/no-useless-escape\\\": \\\"error\\\",\\n \\\"regexp/no-useless-flag\\\": \\\"error\\\",\\n \\\"regexp/no-useless-quantifier\\\": \\\"error\\\",\\n \\\"regexp/no-useless-two-nums-quantifier\\\": \\\"error\\\",\\n \\\"regexp/no-zero-quantifier\\\": \\\"error\\\",\\n \\\"regexp/sort-flags\\\": \\\"error\\\",\\n\\n // Promise: chain shapes that can swallow or misroute async errors.\\n \\\"promise/no-multiple-resolved\\\": \\\"error\\\",\\n \\\"promise/no-new-statics\\\": \\\"error\\\",\\n \\\"promise/no-return-in-finally\\\": \\\"error\\\",\\n \\\"promise/no-return-wrap\\\": \\\"error\\\",\\n \\\"promise/param-names\\\": \\\"error\\\",\\n \\\"promise/prefer-catch\\\": \\\"error\\\",\\n \\\"promise/spec-only\\\": \\\"error\\\",\\n\\n // Security: concrete sink patterns with a low false-positive rate here.\\n \\\"security/detect-bidi-characters\\\": \\\"error\\\",\\n \\\"security/detect-buffer-noassert\\\": \\\"error\\\",\\n \\\"security/detect-eval-with-expression\\\": \\\"error\\\",\\n \\\"security/detect-new-buffer\\\": \\\"error\\\",\\n \\\"security/detect-pseudoRandomBytes\\\": \\\"error\\\",\\n \\\"security/detect-unsafe-regex\\\": \\\"error\\\",\\n\\n // TypeScript: type-aware correctness rules.\\n \\\"typescript/adjacent-overload-signatures\\\": \\\"error\\\",\\n \\\"typescript/await-thenable\\\": \\\"error\\\",\\n \\\"typescript/ban-ts-comment\\\": \\\"error\\\",\\n \\\"typescript/ban-tslint-comment\\\": \\\"error\\\",\\n \\\"typescript/no-array-delete\\\": \\\"error\\\",\\n \\\"typescript/no-confusing-non-null-assertion\\\": \\\"error\\\",\\n \\\"typescript/no-duplicate-enum-values\\\": \\\"error\\\",\\n \\\"typescript/no-extra-non-null-assertion\\\": \\\"error\\\",\\n \\\"typescript/no-floating-promises\\\": \\\"error\\\",\\n \\\"typescript/no-for-in-array\\\": \\\"error\\\",\\n \\\"typescript/no-invalid-void-type\\\": \\\"error\\\",\\n \\\"typescript/no-misused-new\\\": \\\"error\\\",\\n \\\"typescript/no-misused-promises\\\": \\\"error\\\",\\n \\\"typescript/no-misused-spread\\\": \\\"error\\\",\\n \\\"typescript/no-mixed-enums\\\": \\\"error\\\",\\n \\\"typescript/no-non-null-asserted-nullish-coalescing\\\": \\\"error\\\",\\n \\\"typescript/no-non-null-asserted-optional-chain\\\": \\\"error\\\",\\n \\\"typescript/no-redundant-type-constituents\\\": \\\"error\\\",\\n \\\"typescript/no-unnecessary-type-constraint\\\": \\\"error\\\",\\n \\\"typescript/no-unsafe-declaration-merging\\\": \\\"error\\\",\\n \\\"typescript/no-unsafe-function-type\\\": \\\"error\\\",\\n \\\"typescript/no-unsafe-unary-minus\\\": \\\"error\\\",\\n \\\"typescript/no-wrapper-object-types\\\": \\\"error\\\",\\n \\\"typescript/only-throw-error\\\": \\\"error\\\",\\n \\\"typescript/prefer-as-const\\\": \\\"error\\\",\\n \\\"typescript/prefer-promise-reject-errors\\\": \\\"error\\\",\\n \\\"typescript/require-array-sort-compare\\\": \\\"error\\\",\\n \\\"typescript/switch-exhaustiveness-check\\\": \\\"error\\\",\\n \\\"typescript/triple-slash-reference\\\": \\\"error\\\",\\n \\\"typescript/use-unknown-in-catch-callback-variable\\\": \\\"error\\\",\\n\\n // Unicorn: correctness-oriented runtime/API traps, not broad style policy.\\n \\\"unicorn/error-message\\\": \\\"error\\\",\\n \\\"unicorn/new-for-builtins\\\": \\\"error\\\",\\n \\\"unicorn/no-accessor-recursion\\\": \\\"error\\\",\\n \\\"unicorn/no-await-in-promise-methods\\\": \\\"error\\\",\\n \\\"unicorn/no-empty-file\\\": \\\"error\\\",\\n \\\"unicorn/no-invalid-fetch-options\\\": \\\"error\\\",\\n \\\"unicorn/no-invalid-remove-event-listener\\\": \\\"error\\\",\\n \\\"unicorn/no-new-buffer\\\": \\\"error\\\",\\n \\\"unicorn/no-thenable\\\": \\\"error\\\",\\n \\\"unicorn/no-useless-promise-resolve-reject\\\": \\\"error\\\",\\n \\\"unicorn/prefer-node-protocol\\\": \\\"error\\\",\\n },\\n} satisfies ITtscLintConfig;\\n\\nexport default config;\\n\",\n \"config/package.json\": \"{\\n \\\"private\\\": true,\\n \\\"name\\\": \\\"@ORGANIZATION/PROJECT-config\\\",\\n \\\"version\\\": \\\"0.1.0\\\",\\n \\\"description\\\": \\\"Shared TypeScript and @ttsc/lint configuration for the workspace\\\",\\n \\\"files\\\": [\\n \\\"lint.config.ts\\\",\\n \\\"rolldown.config.mjs\\\",\\n \\\"tsconfig.json\\\"\\n ],\\n \\\"devDependencies\\\": {\\n \\\"@ttsc/lint\\\": \\\"catalog:typescript\\\",\\n \\\"@ttsc/unplugin\\\": \\\"catalog:typescript\\\",\\n \\\"tinyglobby\\\": \\\"^0.2.12\\\",\\n \\\"typescript\\\": \\\"catalog:typescript\\\"\\n }\\n}\",\n \"config/rolldown.config.mjs\": \"import ttsc from \\\"@ttsc/unplugin/rolldown\\\";\\nimport path from \\\"node:path\\\";\\nimport { globSync } from \\\"tinyglobby\\\";\\n\\n// The `.mjs` build feeds the TypeScript sources straight to rolldown, which\\n// transpiles them natively; `@ttsc/unplugin` applies the project's ttsc\\n// plugins on the way in. `preserveModules` keeps the 1:1 module layout, so\\n// every `lib/<path>.js` from the main ttsc build gets a genuine ESM twin at\\n// `lib/<path>.mjs` — named exports intact, no facade chunks, no CommonJS\\n// transcoding. Everything outside `src/` is an external module.\\nexport default {\\n input: globSync(\\\"./src/**/*.ts\\\"),\\n external: (id) => !id.startsWith(\\\".\\\") && !path.isAbsolute(id),\\n output: {\\n dir: \\\"./lib\\\",\\n format: \\\"esm\\\",\\n sourcemap: true,\\n entryFileNames: \\\"[name].mjs\\\",\\n preserveModules: true,\\n preserveModulesRoot: \\\"src\\\",\\n },\\n plugins: [ttsc()],\\n};\\n\",\n \"config/tsconfig.json\": \"{\\n \\\"compilerOptions\\\": {\\n \\\"target\\\": \\\"esnext\\\",\\n \\\"lib\\\": [\\\"DOM\\\", \\\"ESNext\\\"],\\n \\\"module\\\": \\\"nodenext\\\",\\n \\\"moduleResolution\\\": \\\"nodenext\\\",\\n \\\"types\\\": [\\\"*\\\"],\\n \\\"resolveJsonModule\\\": true,\\n \\\"sourceMap\\\": true,\\n \\\"newLine\\\": \\\"lf\\\",\\n \\\"esModuleInterop\\\": true,\\n \\\"forceConsistentCasingInFileNames\\\": true,\\n \\\"strict\\\": true,\\n \\\"noImplicitReturns\\\": true,\\n \\\"noUncheckedIndexedAccess\\\": true,\\n \\\"skipLibCheck\\\": true,\\n }\\n}\\n\",\n \"package.json\": \"{\\n \\\"private\\\": true,\\n \\\"name\\\": \\\"@ORGANIZATION/PROJECT\\\",\\n \\\"version\\\": \\\"0.1.0\\\",\\n \\\"description\\\": \\\"Starter kit of Nestia\\\",\\n \\\"scripts\\\": {\\n \\\"build\\\": \\\"pnpm -r --if-present build\\\",\\n \\\"dev\\\": \\\"pnpm -C packages/backend dev\\\",\\n \\\"format\\\": \\\"pnpm -r --if-present format\\\",\\n \\\"lint\\\": \\\"pnpm -r --if-present lint\\\",\\n \\\"start\\\": \\\"pnpm -C packages/backend start\\\",\\n \\\"test\\\": \\\"pnpm -C packages/backend test\\\"\\n },\\n \\\"repository\\\": {\\n \\\"type\\\": \\\"git\\\",\\n \\\"url\\\": \\\"https://github.com/samchon/nestia-start\\\"\\n },\\n \\\"keywords\\\": [\\n \\\"nestia\\\",\\n \\\"template\\\",\\n \\\"boilerplate\\\"\\n ],\\n \\\"author\\\": \\\"AUTHOR\\\",\\n \\\"license\\\": \\\"MIT\\\",\\n \\\"bugs\\\": {\\n \\\"url\\\": \\\"https://github.com/samchon/nestia-start/issues\\\"\\n },\\n \\\"homepage\\\": \\\"https://github.com/samchon/nestia-start#readme\\\",\\n \\\"packageManager\\\": \\\"pnpm@10.10.0\\\",\\n \\\"stackblitz\\\": {\\n \\\"startCommand\\\": \\\"pnpm install && pnpm test -- --simultaneous 1\\\"\\n }\\n}\",\n \"packages/api/.gitignore\": \"lib/\\nnode_modules/\\n\\nswagger.json\\nopenai.json\",\n \"packages/api/LICENSE\": \"MIT License\\n\\nCopyright (c) 2021 ORGANIZATION\\n\\nPermission is hereby granted, free of charge, to any person obtaining a copy\\nof this software and associated documentation files (the \\\"Software\\\"), to deal\\nin the Software without restriction, including without limitation the rights\\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\\ncopies of the Software, and to permit persons to whom the Software is\\nfurnished to do so, subject to the following conditions:\\n\\nThe above copyright notice and this permission notice shall be included in all\\ncopies or substantial portions of the Software.\\n\\nTHE SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\\nSOFTWARE.\",\n \"packages/api/README.md\": \"# SDK Library\\nThis is a SDK library generated by [`nestia`](https://nestia.io).\\n\\nWith this SDK library, you can easily and safely interact with backend server.\\n\\nJust import and call some API functions like gif image below:\\n\\n![nestia-sdk-demo](https://user-images.githubusercontent.com/13158709/215004990-368c589d-7101-404e-b81b-fbc936382f05.gif)\\n\\n> Left is server code, and right is client code utilizing the SDK\\n\\n\\n\\n\\n# What [`Nestia`](https://nestia.io) is:\\n![Nestia Logo](https://nestia.io/logo.png)\\n\\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/samchon/nestia/blob/master/LICENSE)\\n[![npm version](https://img.shields.io/npm/v/@nestia/core.svg)](https://www.npmjs.com/package/@nestia/core)\\n[![Downloads](https://img.shields.io/npm/dm/@nestia/core.svg)](https://www.npmjs.com/package/@nestia/core)\\n[![Build Status](https://github.com/samchon/nestia/workflows/build/badge.svg)](https://github.com/samchon/nestia/actions?query=workflow%3Abuild)\\n[![Guide Documents](https://img.shields.io/badge/guide-documents-forestgreen)](https://nestia.io/docs/)\\n\\nNestia is a set of helper libraries for NestJS, supporting below features:\\n\\n - `@nestia/core`: super-fast decorators\\n - `@nestia/sdk`:\\n - Swagger generator evolved than ever\\n - SDK library generator for clients\\n - Mockup Simulator for client applications\\n - Automatic E2E test functions generator\\n - `@nestia/migrate`: migration from Swagger to NestJS\\n - `nestia`: just CLI (command line interface) tool\\n\\n> **Note**\\n> \\n> - **Only one line** required, with pure TypeScript type\\n> - Enhance performance **30x** up\\n> - Runtime validator is **20,000x faster** than `class-validator`\\n> - JSON serialization is **200x faster** than `class-transformer`\\n> - Software Development Kit\\n> - SDK is a collection of `fetch` functions with type definitions like [tRPC](https://trpc.io/)\\n> - Mockup simulator means embedded backend simulator in SDK\\n> - similar with [msw](https://mswjs.io/), but fully automated\",\n \"packages/api/lint.config.ts\": \"import type { ITtscLintConfig } from \\\"@ttsc/lint\\\";\\n\\nexport default {\\n extends: \\\"../../config/lint.config.ts\\\",\\n ignores: [\\\"src/functional/**/*.ts\\\"],\\n} satisfies ITtscLintConfig;\\n\",\n \"packages/api/package.json\": \"{\\n \\\"name\\\": \\\"@ORGANIZATION/PROJECT-api\\\",\\n \\\"version\\\": \\\"0.1.0\\\",\\n \\\"description\\\": \\\"SDK library generated by Nestia\\\",\\n \\\"main\\\": \\\"src/index.ts\\\",\\n \\\"exports\\\": {\\n \\\".\\\": \\\"./src/index.ts\\\"\\n },\\n \\\"scripts\\\": {\\n \\\"build\\\": \\\"pnpm build:sdk && pnpm build:ttsc && pnpm build:rolldown\\\",\\n \\\"build:sdk\\\": \\\"cd ../backend && pnpm build:sdk\\\",\\n \\\"build:ttsc\\\": \\\"ttsc -p tsconfig.json\\\",\\n \\\"build:rolldown\\\": \\\"rolldown -c\\\",\\n \\\"format\\\": \\\"ttsc format -p tsconfig.json\\\",\\n \\\"lint\\\": \\\"ttsc -p tsconfig.json --noEmit\\\",\\n \\\"prepack\\\": \\\"pnpm build\\\"\\n },\\n \\\"repository\\\": {\\n \\\"type\\\": \\\"git\\\",\\n \\\"url\\\": \\\"https://github.com/samchon/nestia-start\\\"\\n },\\n \\\"author\\\": \\\"AUTHOR\\\",\\n \\\"license\\\": \\\"MIT\\\",\\n \\\"bugs\\\": {\\n \\\"url\\\": \\\"https://github.com/samchon/nestia-start/issues\\\"\\n },\\n \\\"homepage\\\": \\\"https://github.com/samchon/nestia-start#readme\\\",\\n \\\"files\\\": [\\n \\\"lib\\\",\\n \\\"package.json\\\",\\n \\\"swagger.json\\\",\\n \\\"README.md\\\"\\n ],\\n \\\"dependencies\\\": {\\n \\\"@nestia/fetcher\\\": \\\"catalog:samchon\\\",\\n \\\"tgrid\\\": \\\"catalog:samchon\\\",\\n \\\"typia\\\": \\\"catalog:samchon\\\"\\n },\\n \\\"devDependencies\\\": {\\n \\\"@ORGANIZATION/PROJECT-api\\\": \\\"workspace:*\\\",\\n \\\"@ttsc/lint\\\": \\\"catalog:typescript\\\",\\n \\\"rolldown\\\": \\\"catalog:rolldown\\\",\\n \\\"ttsc\\\": \\\"catalog:typescript\\\",\\n \\\"typescript\\\": \\\"catalog:typescript\\\"\\n },\\n \\\"publishConfig\\\": {\\n \\\"main\\\": \\\"./lib/index.js\\\",\\n \\\"module\\\": \\\"./lib/index.mjs\\\",\\n \\\"types\\\": \\\"./lib/index.d.ts\\\",\\n \\\"exports\\\": {\\n \\\".\\\": {\\n \\\"types\\\": \\\"./lib/index.d.ts\\\",\\n \\\"import\\\": \\\"./lib/index.mjs\\\",\\n \\\"default\\\": \\\"./lib/index.js\\\"\\n }\\n }\\n }\\n}\",\n \"packages/api/rolldown.config.mjs\": \"export { default } from \\\"../../config/rolldown.config.mjs\\\";\\n\",\n \"packages/api/scripts/ensure-nestia-exports.cjs\": \"const fs = require(\\\"fs\\\");\\nconst path = require(\\\"path\\\");\\n\\nconst root = path.resolve(__dirname, \\\"..\\\");\\n\\nconst files = {\\n \\\"src/index.ts\\\": `import * as api from \\\"./module\\\";\\n\\nexport type * from \\\"./IConnection\\\";\\nexport type * from \\\"./Primitive\\\";\\nexport type * from \\\"./Resolved\\\";\\nexport * from \\\"./HttpError\\\";\\n\\nexport * from \\\"./structures\\\";\\n\\nexport * as functional from \\\"./functional/index\\\";\\n\\nexport default api;\\n`,\\n \\\"src/module.ts\\\": `export type * from \\\"./IConnection\\\";\\nexport type * from \\\"./Primitive\\\";\\nexport type * from \\\"./Resolved\\\";\\nexport * from \\\"./HttpError\\\";\\n\\nexport * from \\\"./structures\\\";\\n\\nexport * as functional from \\\"./functional/index\\\";\\n`,\\n};\\n\\nfor (const [relative, content] of Object.entries(files)) {\\n const file = path.join(root, relative);\\n fs.mkdirSync(path.dirname(file), { recursive: true });\\n if (fs.existsSync(file) && fs.readFileSync(file, \\\"utf8\\\") === content) continue;\\n fs.writeFileSync(file, content, \\\"utf8\\\");\\n}\\n\\nconst functional = path.join(root, \\\"src\\\", \\\"functional\\\", \\\"index.ts\\\");\\nif (!fs.existsSync(functional)) {\\n fs.mkdirSync(path.dirname(functional), { recursive: true });\\n fs.writeFileSync(functional, \\\"export {};\\\\n\\\", \\\"utf8\\\");\\n}\\n\",\n \"packages/api/src/HttpError.ts\": \"export { HttpError } from \\\"@nestia/fetcher\\\";\\n\",\n \"packages/api/src/IConnection.ts\": \"export type { IConnection } from \\\"@nestia/fetcher\\\";\\n\",\n \"packages/api/src/Primitive.ts\": \"export type { Primitive } from \\\"typia\\\";\\n\",\n \"packages/api/src/Resolved.ts\": \"export type { Resolved } from \\\"typia\\\";\\n\",\n \"packages/api/src/index.ts\": \"import * as api from \\\"./module\\\";\\nexport * from \\\"./module\\\";\\n\\nexport default api;\\n\",\n \"packages/api/src/module.ts\": \"export type * from \\\"./IConnection\\\";\\nexport type * from \\\"./Primitive\\\";\\nexport type * from \\\"./Resolved\\\";\\nexport * from \\\"./HttpError\\\";\\n\\nexport * from \\\"./structures\\\";\\n\\nexport * as functional from \\\"./functional/index\\\";\\n\",\n \"packages/api/tsconfig.json\": \"{\\n \\\"extends\\\": \\\"../../config/tsconfig.json\\\",\\n \\\"compilerOptions\\\": {\\n \\\"declaration\\\": true,\\n \\\"stripInternal\\\": true,\\n \\\"outDir\\\": \\\"lib\\\",\\n \\\"rootDir\\\": \\\"src\\\",\\n \\\"experimentalDecorators\\\": true,\\n \\\"emitDecoratorMetadata\\\": true\\n },\\n \\\"include\\\": [\\\"src\\\"]\\n}\\n\",\n \"packages/backend/.env.local\": \"API_PORT=37001\",\n \"packages/backend/build/env.js\": \"const fs = require(\\\"fs\\\");\\nconst path = require(\\\"path\\\");\\n\\nconst env = path.join(__dirname, \\\"../.env\\\");\\nconst local = path.join(__dirname, \\\"../.env.local\\\");\\n\\nif (fs.existsSync(env) === false) fs.copyFileSync(local, env);\\n\",\n \"packages/backend/docs/benchmarks/AMD Ryzen 9 7940HS w Radeon 780M Graphics.md\": \"# Benchmark Report\\n> Generated by [`@nestia/benchmark`](https://github.com/samchon/nestia)\\n\\n - Specifications\\n - CPU: AMD Ryzen 9 7940HS w/ Radeon 780M Graphics \\n - RAM: 31 GB\\n - NodeJS Version: v20.10.0\\n - Backend Server: 1 core / 1 thread\\n - Arguments\\n - Count: 40,000\\n - Threads: 4\\n - Simultaneous: 32\\n - Time\\n - Start: 2024-10-29T19:14:35.941Z\\n - Complete: 2024-10-29T19:16:11.418Z\\n - Elapsed: 95,477 ms\\n\\nType | Count | Success | Mean. | Stdev. | Minimum | Maximum\\n----|----|----|----|----|----|----\\nTotal | 41,586 | 41,586 | 69.24 | 73.05 | 5 | 546\\n\\n> Unit: milliseconds\\n\\n## Memory Consumptions\\n```mermaid\\nxychart-beta\\n x-axis \\\"Time (second)\\\"\\n y-axis \\\"Memory (MB)\\\"\\n line \\\"Resident Set Size\\\" [122, 156, 159, 142, 154, 165, 184, 185, 187, 189, 200, 205, 209, 217, 221, 225, 229, 224, 230, 235, 242, 250, 256, 262, 267, 272, 234, 237, 249, 259, 266, 273, 285, 292, 291, 216, 225, 235, 243, 200, 208, 214, 186, 186, 171, 177, 187, 199, 185, 192, 205, 171, 180, 158, 170, 179, 163, 163, 176, 188, 193, 202, 213, 219, 230, 239, 256, 265, 283, 301, 240, 249, 257, 267, 284, 282, 290, 202, 213, 166, 178, 188, 200, 203, 208, 180, 191, 199, 175]\\n line \\\"Heap Total\\\" [85, 116, 120, 103, 114, 124, 146, 146, 147, 148, 158, 166, 170, 176, 180, 184, 187, 185, 190, 195, 203, 211, 217, 222, 225, 229, 194, 197, 209, 218, 225, 232, 241, 249, 247, 176, 185, 194, 202, 160, 168, 173, 146, 146, 130, 136, 146, 158, 145, 151, 165, 129, 139, 116, 128, 137, 120, 123, 136, 148, 152, 161, 172, 179, 189, 198, 215, 223, 241, 257, 200, 209, 216, 227, 244, 242, 249, 163, 174, 127, 136, 147, 159, 162, 166, 138, 150, 158, 132]\\n line \\\"Heap Used + External\\\" [69, 94, 62, 82, 88, 107, 71, 83, 93, 107, 136, 72, 76, 85, 92, 106, 139, 48, 68, 69, 86, 95, 108, 116, 140, 175, 67, 74, 88, 112, 125, 136, 142, 169, 180, 91, 104, 105, 121, 60, 71, 91, 64, 74, 86, 110, 121, 135, 76, 82, 103, 70, 93, 66, 91, 107, 76, 75, 95, 101, 115, 127, 136, 154, 165, 168, 196, 193, 214, 232, 84, 94, 101, 118, 145, 147, 149, 86, 96, 72, 90, 112, 126, 133, 132, 78, 87, 107, 88]\\n line \\\"Heap Used Only\\\" [66, 89, 59, 78, 83, 100, 68, 79, 88, 101, 129, 68, 72, 80, 86, 100, 131, 45, 64, 65, 81, 90, 103, 110, 133, 168, 64, 71, 84, 108, 120, 130, 136, 162, 173, 88, 100, 101, 117, 58, 68, 87, 61, 71, 83, 107, 118, 130, 73, 79, 99, 67, 89, 63, 88, 103, 74, 72, 91, 98, 111, 123, 132, 149, 160, 163, 190, 187, 208, 225, 81, 90, 97, 114, 140, 143, 145, 83, 93, 70, 87, 108, 122, 130, 128, 76, 84, 104, 85]\\n```\\n\\n> - 🟦 Resident Set Size\\n> - 🟢 Heap Total\\n> - 🔴 Heap Used + External\\n> - 🟡 Heap Used Only\\n\\n## Endpoints\\nType | Count | Success | Mean. | Stdev. | Minimum | Maximum\\n----|----|----|----|----|----|----\\nPATCH /bbs/articles/:section | 6,439 | 6,439 | 108.37 | 76.56 | 6 | 546\\nPUT /bbs/articles/:section/:id | 380 | 380 | 78.52 | 69.03 | 6 | 296\\nGET /bbs/articles/:section/:id | 917 | 917 | 77.65 | 69.84 | 6 | 463\\nDELETE /bbs/articles/:section/:id | 201 | 201 | 73.89 | 63.55 | 7 | 307\\nPOST /bbs/articles/:section | 33,649 | 33,649 | 61.39 | 70.04 | 5 | 546\\n\\n> Unit: milliseconds\\n\\n## Failures\\nMethod | Path | Count | Failures\\n-------|------|-------|----------\",\n \"packages/backend/lint.config.ts\": \"import type { ITtscLintConfig } from \\\"@ttsc/lint\\\";\\n\\nexport default {\\n extends: \\\"../../config/lint.config.ts\\\",\\n} satisfies ITtscLintConfig;\\n\",\n \"packages/backend/nest-cli.json\": \"{\\n \\\"$schema\\\": \\\"https://json.schemastore.org/nest-cli\\\",\\n \\\"collection\\\": \\\"@nestjs/schematics\\\",\\n \\\"sourceRoot\\\": \\\"src\\\",\\n \\\"entryFile\\\": \\\"executable/server\\\",\\n \\\"compilerOptions\\\": {\\n \\\"deleteOutDir\\\": true\\n }\\n}\\n\",\n \"packages/backend/nestia.config.ts\": \"// nestia configuration file\\nimport { INestiaConfig } from \\\"@nestia/sdk\\\";\\nimport { NestFactory } from \\\"@nestjs/core\\\";\\n\\nimport { MyModule } from \\\"./src/MyModule\\\";\\n\\nexport default {\\n input: () => NestFactory.create(MyModule),\\n output: \\\"../api/src\\\",\\n swagger: {\\n output: \\\"../api/swagger.json\\\",\\n servers: [\\n {\\n url: \\\"http://localhost:37001\\\",\\n description: \\\"Local Server\\\",\\n },\\n ],\\n beautify: true,\\n },\\n keyword: true,\\n simulate: true,\\n primitive: false,\\n} satisfies INestiaConfig;\\n\",\n \"packages/backend/package.json\": \"{\\n \\\"private\\\": true,\\n \\\"name\\\": \\\"@ORGANIZATION/PROJECT-backend\\\",\\n \\\"version\\\": \\\"0.1.0\\\",\\n \\\"description\\\": \\\"Starter kit of Nestia\\\",\\n \\\"main\\\": \\\"lib/index.js\\\",\\n \\\"scripts\\\": {\\n \\\"benchmark\\\": \\\"ttsx --project test/tsconfig.json test/benchmark/index.ts\\\",\\n \\\"test\\\": \\\"ttsx --project test/tsconfig.json test/index.ts\\\",\\n \\\"------------------------BUILDS------------------------\\\": \\\"\\\",\\n \\\"build\\\": \\\"pnpm build:sdk && pnpm build:main\\\",\\n \\\"build:main\\\": \\\"rimraf lib && ttsc -p tsconfig.json\\\",\\n \\\"build:sdk\\\": \\\"rimraf ../api/src/functional && node ../api/scripts/ensure-nestia-exports.cjs && nestia all && node ../api/scripts/ensure-nestia-exports.cjs\\\",\\n \\\"build:swagger\\\": \\\"nestia swagger\\\",\\n \\\"build:test\\\": \\\"ttsc -p test/tsconfig.json\\\",\\n \\\"dev\\\": \\\"ttsc -p test/tsconfig.json --watch\\\",\\n \\\"format\\\": \\\"ttsc format -p tsconfig.json\\\",\\n \\\"lint\\\": \\\"ttsc -p tsconfig.json --noEmit\\\",\\n \\\"prepare\\\": \\\"node build/env.js\\\",\\n \\\"------------------------WEBPACK------------------------\\\": \\\"\\\",\\n \\\"webpack\\\": \\\"rimraf dist && pnpm build:main && webpack\\\",\\n \\\"webpack:start\\\": \\\"cd dist && node server\\\",\\n \\\"webpack:test\\\": \\\"pnpm webpack && ttsx --project test/tsconfig.json test/webpack.ts\\\",\\n \\\"------------------------DEPLOYS------------------------\\\": \\\"\\\",\\n \\\"start\\\": \\\"ttsx src/executable/server.ts\\\",\\n \\\"start:prod\\\": \\\"node lib/executable/server\\\",\\n \\\"start:dev\\\": \\\"nest start --watch\\\",\\n \\\"start:swagger\\\": \\\"ttsx src/executable/swagger.ts\\\"\\n },\\n \\\"repository\\\": {\\n \\\"type\\\": \\\"git\\\",\\n \\\"url\\\": \\\"https://github.com/samchon/nestia-start\\\"\\n },\\n \\\"keywords\\\": [\\n \\\"nestia\\\",\\n \\\"template\\\",\\n \\\"boilerplate\\\"\\n ],\\n \\\"author\\\": \\\"AUTHOR\\\",\\n \\\"license\\\": \\\"MIT\\\",\\n \\\"bugs\\\": {\\n \\\"url\\\": \\\"https://github.com/samchon/nestia-start/issues\\\"\\n },\\n \\\"homepage\\\": \\\"https://github.com/samchon/nestia-start#readme\\\",\\n \\\"devDependencies\\\": {\\n \\\"@nestia/benchmark\\\": \\\"catalog:samchon\\\",\\n \\\"@nestia/e2e\\\": \\\"catalog:samchon\\\",\\n \\\"@nestjs/cli\\\": \\\"^11.0.16\\\",\\n \\\"@ttsc/lint\\\": \\\"catalog:typescript\\\",\\n \\\"@ttsc/paths\\\": \\\"catalog:typescript\\\",\\n \\\"@types/cli-progress\\\": \\\"^3.11.5\\\",\\n \\\"@types/express\\\": \\\"^4.17.21\\\",\\n \\\"@types/node\\\": \\\"^24.0.0\\\",\\n \\\"chalk\\\": \\\"^4.1.2\\\",\\n \\\"cli-progress\\\": \\\"^3.12.0\\\",\\n \\\"copy-webpack-plugin\\\": \\\"^11.0.0\\\",\\n \\\"express\\\": \\\"^4.18.2\\\",\\n \\\"nestia\\\": \\\"catalog:samchon\\\",\\n \\\"rimraf\\\": \\\"catalog:utils\\\",\\n \\\"swagger-ui-express\\\": \\\"^5.0.0\\\",\\n \\\"ttsc\\\": \\\"catalog:typescript\\\",\\n \\\"typescript\\\": \\\"catalog:typescript\\\",\\n \\\"webpack\\\": \\\"^5.89.0\\\",\\n \\\"webpack-cli\\\": \\\"^5.1.4\\\",\\n \\\"write-file-webpack-plugin\\\": \\\"^4.5.1\\\"\\n },\\n \\\"dependencies\\\": {\\n \\\"@nestia/core\\\": \\\"catalog:samchon\\\",\\n \\\"@nestia/fetcher\\\": \\\"catalog:samchon\\\",\\n \\\"@nestia/sdk\\\": \\\"catalog:samchon\\\",\\n \\\"@nestjs/common\\\": \\\"^11.1.16\\\",\\n \\\"@nestjs/core\\\": \\\"^11.1.16\\\",\\n \\\"@nestjs/platform-express\\\": \\\"^11.1.16\\\",\\n \\\"@ORGANIZATION/PROJECT-api\\\": \\\"workspace:^\\\",\\n \\\"dotenv\\\": \\\"^16.3.1\\\",\\n \\\"dotenv-expand\\\": \\\"^10.0.0\\\",\\n \\\"serialize-error\\\": \\\"^4.1.0\\\",\\n \\\"source-map-support\\\": \\\"^0.5.21\\\",\\n \\\"tgrid\\\": \\\"catalog:samchon\\\",\\n \\\"tstl\\\": \\\"catalog:samchon\\\",\\n \\\"typia\\\": \\\"catalog:samchon\\\",\\n \\\"uuid\\\": \\\"catalog:utils\\\"\\n }\\n}\",\n \"packages/backend/src/MyBackend.ts\": \"import { WebSocketAdaptor } from \\\"@nestia/core\\\";\\nimport { INestApplication } from \\\"@nestjs/common\\\";\\nimport { NestFactory } from \\\"@nestjs/core\\\";\\nimport { MyConfiguration } from \\\"./MyConfiguration\\\";\\nimport { MyModule } from \\\"./MyModule\\\";\\n\\nexport class MyBackend {\\n private application_?: INestApplication;\\n\\n public async open(): Promise<void> {\\n //----\\n // OPEN THE BACKEND SERVER\\n //----\\n // MOUNT CONTROLLERS\\n this.application_ = await NestFactory.create(MyModule, { logger: false });\\n await WebSocketAdaptor.upgrade(this.application_);\\n\\n // DO OPEN\\n this.application_.enableCors();\\n await this.application_.listen(MyConfiguration.API_PORT(), \\\"0.0.0.0\\\");\\n\\n //----\\n // POST-PROCESSES\\n //----\\n // INFORM TO THE PM2\\n if (process.send) process.send(\\\"ready\\\");\\n\\n // WHEN KILL COMMAND COMES\\n process.on(\\\"SIGINT\\\", async () => {\\n await this.close();\\n process.exit(0);\\n });\\n }\\n\\n public async close(): Promise<void> {\\n if (this.application_ === undefined) return;\\n\\n // DO CLOSE\\n await this.application_.close();\\n delete this.application_;\\n }\\n}\\n\",\n \"packages/backend/src/MyConfiguration.ts\": \"import fs from \\\"node:fs\\\";\\nimport path from \\\"node:path\\\";\\nimport { MyGlobal } from \\\"./MyGlobal\\\";\\n\\nexport namespace MyConfiguration {\\n export const API_PORT = () => Number(MyGlobal.env.API_PORT);\\n\\n export const ROOT = (() => {\\n const split: string[] = __dirname.split(path.sep);\\n return split.at(-1) === \\\"src\\\" && split.at(-2) === \\\"bin\\\"\\n ? path.resolve(__dirname + \\\"/../..\\\")\\n : fs.existsSync(__dirname + \\\"/.env\\\")\\n ? __dirname\\n : path.resolve(__dirname + \\\"/..\\\");\\n })();\\n}\\n\",\n \"packages/backend/src/MyGlobal.ts\": \"import dotenv from \\\"dotenv\\\";\\nimport dotenvExpand from \\\"dotenv-expand\\\";\\nimport { Singleton } from \\\"tstl\\\";\\nimport typia from \\\"typia\\\";\\n\\n/* eslint-disable */\\nexport class MyGlobal {\\n public static testing: boolean = false;\\n public static get env(): MyGlobal.IEnvironments {\\n return environments.get();\\n }\\n}\\nexport namespace MyGlobal {\\n export interface IEnvironments {\\n API_PORT: `${number}`;\\n }\\n}\\n\\nconst environments = new Singleton(() => {\\n const env = dotenv.config();\\n dotenvExpand.expand(env);\\n return typia.assert<MyGlobal.IEnvironments>(process.env);\\n});\\n\",\n \"packages/backend/src/executable/server.ts\": \"import { MyBackend } from \\\"../MyBackend\\\";\\n\\nconst EXTENSION = __filename.substring(__filename.length - 2);\\nif (EXTENSION === \\\"js\\\") require(\\\"source-map-support/register\\\");\\n\\nasync function main(): Promise<void> {\\n // BACKEND SEVER\\n const backend: MyBackend = new MyBackend();\\n await backend.open();\\n\\n // UNEXPECTED ERRORS\\n global.process.on(\\\"uncaughtException\\\", console.error);\\n global.process.on(\\\"unhandledRejection\\\", console.error);\\n}\\nmain().catch((exp: unknown) => {\\n console.log(exp);\\n process.exit(-1);\\n});\\n\",\n \"packages/backend/src/executable/swagger.ts\": \"import express from \\\"express\\\";\\nimport cp from \\\"node:child_process\\\";\\n\\nconst execute = (command: string): void => {\\n console.log(`\\\\n$ ${command}\\\\n`);\\n cp.execSync(command, { stdio: \\\"inherit\\\" });\\n};\\n\\nconst main = async (): Promise<void> => {\\n if (!process.argv.some((str) => str === \\\"--skipBuild\\\"))\\n execute(\\\"pnpm build:swagger\\\");\\n\\n const docs = await import(\\\"../../../api/swagger.json\\\" as any);\\n\\n const app = express();\\n const swaggerUi = require(\\\"swagger-ui-express\\\");\\n app.use(\\\"/api-docs\\\", swaggerUi.serve, swaggerUi.setup(docs));\\n app.listen(37810);\\n\\n console.log(\\\"\\\\n\\\");\\n console.log(\\\"-----------------------------------------------------------\\\");\\n console.log(\\\"\\\\n Swagger UI Address: http://127.0.0.1:37810/api-docs \\\\n\\\");\\n console.log(\\\"-----------------------------------------------------------\\\");\\n};\\nmain().catch((exp: unknown) => {\\n console.log(exp);\\n process.exit(-1);\\n});\\n\",\n \"packages/backend/src/utils/ErrorUtil.ts\": \"import serializeError = require(\\\"serialize-error\\\");\\n\\nexport namespace ErrorUtil {\\n export const toJSON = (err: any): object =>\\n err instanceof Object && err.toJSON instanceof Function\\n ? err.toJSON()\\n : serializeError(err);\\n}\\n\",\n \"packages/backend/src/utils/MapUtil.ts\": \"export namespace MapUtil {\\n export function take<Key, T>(\\n dict: Map<Key, T>,\\n key: Key,\\n generator: () => T,\\n ): T {\\n const oldbie: T | undefined = dict.get(key);\\n if (oldbie) return oldbie;\\n\\n const value: T = generator();\\n dict.set(key, value);\\n return value;\\n }\\n}\\n\",\n \"packages/backend/test/benchmark/index.ts\": \"import { DynamicBenchmarker } from \\\"@nestia/benchmark\\\";\\nimport cliProgress from \\\"cli-progress\\\";\\nimport fs from \\\"node:fs\\\";\\nimport os from \\\"node:os\\\";\\nimport { IPointer } from \\\"tstl\\\";\\n\\nimport { MyBackend } from \\\"../../src/MyBackend\\\";\\nimport { MyConfiguration } from \\\"../../src/MyConfiguration\\\";\\nimport { MyGlobal } from \\\"../../src/MyGlobal\\\";\\nimport { ArgumentParser } from \\\"../helpers/ArgumentParser\\\";\\n\\ninterface IOptions {\\n include?: string[];\\n exclude?: string[];\\n count: number;\\n threads: number;\\n simultaneous: number;\\n}\\n\\nconst getOptions = () =>\\n ArgumentParser.parse<IOptions>(async (command, prompt, action) => {\\n // command.option(\\\"--mode <string>\\\", \\\"target mode\\\");\\n // command.option(\\\"--reset <true|false>\\\", \\\"reset local DB or not\\\");\\n command.option(\\\"--include <string...>\\\", \\\"include feature files\\\");\\n command.option(\\\"--exclude <string...>\\\", \\\"exclude feature files\\\");\\n command.option(\\\"--count <number>\\\", \\\"number of requests to make\\\");\\n command.option(\\\"--threads <number>\\\", \\\"number of threads to use\\\");\\n command.option(\\n \\\"--simultaneous <number>\\\",\\n \\\"number of simultaneous requests to make\\\",\\n );\\n return action(async (options) => {\\n // if (typeof options.reset === \\\"string\\\")\\n // options.reset = options.reset === \\\"true\\\";\\n // options.mode ??= await prompt.select(\\\"mode\\\")(\\\"Select mode\\\")([\\n // \\\"LOCAL\\\",\\n // \\\"DEV\\\",\\n // \\\"REAL\\\",\\n // ]);\\n // options.reset ??= await prompt.boolean(\\\"reset\\\")(\\\"Reset local DB\\\");\\n options.count = Number(\\n options.count ??\\n (await prompt.number(\\\"count\\\")(\\\"Number of requests to make\\\")),\\n );\\n options.threads = Number(\\n options.threads ??\\n (await prompt.number(\\\"threads\\\")(\\\"Number of threads to use\\\")),\\n );\\n options.simultaneous = Number(\\n options.simultaneous ??\\n (await prompt.number(\\\"simultaneous\\\")(\\n \\\"Number of simultaneous requests to make\\\",\\n )),\\n );\\n return options as IOptions;\\n });\\n });\\n\\nconst main = async (): Promise<void> => {\\n // CONFIGURATIONS\\n const options: IOptions = await getOptions();\\n MyGlobal.testing = true;\\n\\n // BACKEND SERVER\\n const backend: MyBackend = new MyBackend();\\n await backend.open();\\n\\n // DO BENCHMARK\\n const prev: IPointer<number> = { value: 0 };\\n const bar: cliProgress.SingleBar = new cliProgress.SingleBar(\\n {},\\n cliProgress.Presets.shades_classic,\\n );\\n bar.start(options.count, 0);\\n\\n const report: DynamicBenchmarker.IReport = await DynamicBenchmarker.master({\\n servant: `${__dirname}/servant.js`,\\n count: options.count,\\n threads: options.threads,\\n simultaneous: options.simultaneous,\\n filter: (func) =>\\n (!options.include?.length ||\\n (options.include ?? []).some((str) => func.includes(str))) &&\\n (!options.exclude?.length ||\\n (options.exclude ?? []).every((str) => !func.includes(str))),\\n progress: (value: number) => {\\n if (value >= 100 + prev.value) {\\n bar.update(value);\\n prev.value = value;\\n }\\n },\\n stdio: \\\"ignore\\\",\\n });\\n bar.stop();\\n\\n // DOCUMENTATION\\n try {\\n await fs.promises.mkdir(`${MyConfiguration.ROOT}/docs/benchmarks`, {\\n recursive: true,\\n });\\n } catch {}\\n await fs.promises.writeFile(\\n `${MyConfiguration.ROOT}/docs/benchmarks/${(os.cpus()[0]?.model ?? \\\"unknown\\\")\\n .trim()\\n .split(\\\"\\\\\\\\\\\")\\n .join(\\\"\\\")\\n .split(\\\"/\\\")\\n .join(\\\"\\\")}.md`,\\n DynamicBenchmarker.markdown(report),\\n \\\"utf8\\\",\\n );\\n\\n // CLOSE\\n await backend.close();\\n};\\nmain().catch((exp: unknown) => {\\n console.error(exp);\\n process.exit(-1);\\n});\\n\",\n \"packages/backend/test/benchmark/servant.ts\": \"import { DynamicBenchmarker } from \\\"@nestia/benchmark\\\";\\n\\nimport { MyConfiguration } from \\\"../../src/MyConfiguration\\\";\\n\\nDynamicBenchmarker.servant({\\n connection: {\\n host: `http://127.0.0.1:${MyConfiguration.API_PORT()}`,\\n },\\n location: `${__dirname}/../features`,\\n parameters: (connection) => [connection],\\n prefix: \\\"test_api_\\\",\\n}).catch((exp: unknown) => {\\n console.error(exp);\\n process.exit(-1);\\n});\\n\",\n \"packages/backend/test/helpers/ArgumentParser.ts\": \"import { createInterface } from \\\"node:readline/promises\\\";\\n\\nexport namespace ArgumentParser {\\n export interface Command {\\n option: (flags: string, description?: string) => Command;\\n }\\n\\n export interface Prompt {\\n select: (\\n name: string,\\n ) => (\\n message: string,\\n ) => <Choice extends string>(choices: Choice[]) => Promise<Choice>;\\n boolean: (name: string) => (message: string) => Promise<boolean>;\\n number: (name: string) => (message: string) => Promise<number>;\\n }\\n\\n export const parse = async <T>(\\n inquiry: (\\n command: Command,\\n prompt: Prompt,\\n action: (closure: (options: Partial<T>) => Promise<T>) => Promise<T>,\\n ) => Promise<T>,\\n ): Promise<T> => {\\n const command: Command = {\\n option: (_flags: string, _description?: string): Command => command,\\n };\\n const action = (closure: (options: Partial<T>) => Promise<T>) =>\\n closure(parseArguments() as Partial<T>);\\n return inquiry(\\n command,\\n { select, boolean, number },\\n action,\\n );\\n };\\n\\n const select =\\n (_name: string) =>\\n (message: string) =>\\n async <Choice extends string>(choices: Choice[]): Promise<Choice> => {\\n const answer: string = await ask(`${message} (${choices.join(\\\"/\\\")})`);\\n return (choices.find((choice) => choice === answer) ?? choices[0])!;\\n };\\n\\n const boolean = (_name: string) => async (message: string) =>\\n /^(true|t|yes|y|1)$/i.test(await ask(`${message} [y/N]`));\\n\\n const number = (_name: string) => async (message: string) =>\\n Number(await ask(message));\\n\\n const ask = async (message: string): Promise<string> => {\\n const reader = createInterface({\\n input: process.stdin,\\n output: process.stdout,\\n });\\n try {\\n return (await reader.question(`${message}: `)).trim();\\n } finally {\\n reader.close();\\n }\\n };\\n\\n const parseArguments = (): Record<string, string | string[] | boolean> => {\\n const output: Record<string, string | string[] | boolean> = {};\\n const args: string[] = process.argv.slice(2);\\n for (let i = 0; i < args.length; ++i) {\\n const raw: string = args[i]!;\\n if (raw.startsWith(\\\"--\\\") === false) continue;\\n\\n const equal: number = raw.indexOf(\\\"=\\\");\\n const name: string = toCamelCase(\\n raw.slice(2, equal === -1 ? undefined : equal),\\n );\\n if (equal !== -1) {\\n assign(output, name, raw.slice(equal + 1));\\n continue;\\n }\\n\\n const values: string[] = [];\\n while (i + 1 < args.length && args[i + 1]!.startsWith(\\\"--\\\") === false)\\n values.push(args[++i]!);\\n assign(\\n output,\\n name,\\n values.length === 0 ? true : values.length === 1 ? values[0]! : values,\\n );\\n }\\n return output;\\n };\\n\\n const assign = (\\n output: Record<string, string | string[] | boolean>,\\n name: string,\\n value: string | string[] | boolean,\\n ): void => {\\n const current: string | string[] | boolean | undefined = output[name];\\n if (current === undefined) output[name] = value;\\n else\\n output[name] = [\\n ...(Array.isArray(current) ? current : [String(current)]),\\n ...(Array.isArray(value) ? value : [String(value)]),\\n ];\\n };\\n\\n const toCamelCase = (str: string): string =>\\n str.replace(/-([a-z])/g, (_matched, letter: string) =>\\n letter.toUpperCase(),\\n );\\n}\\n\",\n \"packages/backend/test/helpers/TestAutomation.ts\": \"import { DynamicExecutor } from \\\"@nestia/e2e\\\";\\nimport { sleep_for } from \\\"tstl\\\";\\n\\nimport api from \\\"@ORGANIZATION/PROJECT-api\\\";\\n\\nimport { MyConfiguration } from \\\"../../src/MyConfiguration\\\";\\n\\nexport namespace TestAutomation {\\n export interface IProps<T> {\\n open(options: IOptions): Promise<T>;\\n close(backend: T): Promise<void>;\\n onComplete(exec: DynamicExecutor.IExecution): void;\\n options: IOptions;\\n }\\n\\n export interface IOptions {\\n simultaneous: number;\\n include?: string[];\\n exclude?: string[];\\n }\\n\\n export const execute = async <T>(\\n props: IProps<T>,\\n ): Promise<DynamicExecutor.IReport> => {\\n // OPEN BACKEND\\n const backend: T = await props.open(props.options);\\n\\n // DO TEST\\n const connection: api.IConnection = {\\n host: `http://127.0.0.1:${MyConfiguration.API_PORT()}`,\\n };\\n const report: DynamicExecutor.IReport = await DynamicExecutor.validate({\\n prefix: \\\"test\\\",\\n location: __dirname + \\\"/../features\\\",\\n parameters: () => [\\n {\\n host: connection.host,\\n encryption: connection.encryption,\\n },\\n ],\\n filter: (func) =>\\n (!props.options.include?.length ||\\n (props.options.include ?? []).some((str) => func.includes(str))) &&\\n (!props.options.exclude?.length ||\\n (props.options.exclude ?? []).every((str) => !func.includes(str))),\\n onComplete: props.onComplete,\\n simultaneous: props.options.simultaneous,\\n extension: __filename.endsWith(\\\".ts\\\") ? \\\"ts\\\" : \\\"js\\\",\\n });\\n\\n // TERMINATE - WAIT FOR BACKGROUND EVENTS\\n await sleep_for(2500);\\n await props.close(backend);\\n return report;\\n };\\n}\\n\",\n \"packages/backend/test/helpers/TestAutomationStdio.ts\": \"import { DynamicExecutor } from \\\"@nestia/e2e\\\";\\nimport chalk from \\\"chalk\\\";\\n\\nimport { ArgumentParser } from \\\"./ArgumentParser\\\";\\nimport { TestAutomation } from \\\"./TestAutomation\\\";\\n\\nexport namespace TestAutomationStdio {\\n export const getOptions = () =>\\n ArgumentParser.parse<TestAutomation.IOptions>(\\n async (command, prompt, action) => {\\n command.option(\\n \\\"--simultaneous <number>\\\",\\n \\\"number of simultaneous requests\\\",\\n );\\n command.option(\\\"--include <string...>\\\", \\\"include feature files\\\");\\n command.option(\\\"--exclude <string...>\\\", \\\"exclude feature files\\\");\\n\\n return action(async (options) => {\\n options.simultaneous = Number(\\n options.simultaneous ??\\n (await prompt.number(\\\"simultaneous\\\")(\\n \\\"Number of simultaneous requests to make\\\",\\n )),\\n );\\n if (isNaN(options.simultaneous) || options.simultaneous <= 0)\\n options.simultaneous = 1;\\n return options as TestAutomation.IOptions;\\n });\\n },\\n );\\n\\n export const onComplete = (exec: DynamicExecutor.IExecution): void => {\\n const trace = (str: string) =>\\n console.log(` - ${chalk.green(exec.name)}: ${str}`);\\n if (exec.error === null) {\\n const elapsed: number =\\n new Date(exec.completed_at).getTime() -\\n new Date(exec.started_at).getTime();\\n trace(`${chalk.yellow(elapsed.toLocaleString())} ms`);\\n } else trace(chalk.red(exec.error.name));\\n };\\n\\n export const report = (report: DynamicExecutor.IReport): void => {\\n const exceptions: Error[] = report.executions\\n .filter((exec) => exec.error !== null)\\n .map((exec) => exec.error!);\\n if (exceptions.length === 0) {\\n console.log(\\\"Success\\\");\\n console.log(\\\"Elapsed time\\\", report.time.toLocaleString(), `ms`);\\n } else {\\n for (const exp of exceptions) console.log(exp);\\n console.log(\\\"Failed\\\");\\n console.log(\\\"Elapsed time\\\", report.time.toLocaleString(), `ms`);\\n process.exit(-1);\\n }\\n };\\n}\\n\",\n \"packages/backend/test/index.ts\": \"import { DynamicExecutor } from \\\"@nestia/e2e\\\";\\n\\nimport { MyBackend } from \\\"../src/MyBackend\\\";\\nimport { MyGlobal } from \\\"../src/MyGlobal\\\";\\nimport { TestAutomation } from \\\"./helpers/TestAutomation\\\";\\nimport { TestAutomationStdio } from \\\"./helpers/TestAutomationStdio\\\";\\n\\nconst main = async (): Promise<void> => {\\n MyGlobal.testing = true;\\n\\n const report: DynamicExecutor.IReport = await TestAutomation.execute({\\n open: async () => {\\n const backend: MyBackend = new MyBackend();\\n await backend.open();\\n return backend;\\n },\\n close: (backend) => backend.close(),\\n options: await TestAutomationStdio.getOptions(),\\n onComplete: TestAutomationStdio.onComplete,\\n });\\n TestAutomationStdio.report(report);\\n};\\nmain().catch((exp: unknown) => {\\n console.log(exp);\\n process.exit(-1);\\n});\\n\",\n \"packages/backend/test/tsconfig.json\": \"{\\n \\\"extends\\\": \\\"../tsconfig.json\\\",\\n \\\"compilerOptions\\\": {\\n \\\"rootDir\\\": \\\"..\\\",\\n \\\"noEmit\\\": true,\\n },\\n \\\"include\\\": [\\\".\\\", \\\"../src\\\"]\\n}\",\n \"packages/backend/test/webpack.ts\": \"import { DynamicExecutor } from \\\"@nestia/e2e\\\";\\nimport cp from \\\"node:child_process\\\";\\nimport { sleep_for } from \\\"tstl\\\";\\n\\nimport { MyConfiguration } from \\\"../src/MyConfiguration\\\";\\nimport { MyGlobal } from \\\"../src/MyGlobal\\\";\\nimport { TestAutomation } from \\\"./helpers/TestAutomation\\\";\\nimport { TestAutomationStdio } from \\\"./helpers/TestAutomationStdio\\\";\\n\\nconst wait = async (): Promise<void> => {\\n while (true)\\n try {\\n await fetch(`http://localhost:${MyConfiguration.API_PORT()}/dsafdsafsd`);\\n return;\\n } catch (exp) {\\n await sleep_for(100);\\n }\\n};\\n\\nconst main = async (): Promise<void> => {\\n MyGlobal.testing = true;\\n\\n const report: DynamicExecutor.IReport = await TestAutomation.execute({\\n open: async () => {\\n const backend: cp.ChildProcess = cp.fork(\\n `${MyConfiguration.ROOT}/dist/server.js`,\\n {\\n cwd: `${MyConfiguration.ROOT}/dist`,\\n },\\n );\\n await wait();\\n return backend;\\n },\\n close: async (backend) => {\\n backend.kill();\\n },\\n options: await TestAutomationStdio.getOptions(),\\n onComplete: TestAutomationStdio.onComplete,\\n });\\n TestAutomationStdio.report(report);\\n};\\nmain().catch((exp: unknown) => {\\n console.log(exp);\\n process.exit(-1);\\n});\\n\",\n \"packages/backend/tsconfig.json\": \"{\\n \\\"extends\\\": \\\"../../config/tsconfig.json\\\",\\n \\\"compilerOptions\\\": {\\n \\\"outDir\\\": \\\"lib\\\",\\n \\\"rootDir\\\": \\\"src\\\",\\n \\\"experimentalDecorators\\\": true,\\n \\\"emitDecoratorMetadata\\\": true\\n },\\n \\\"include\\\": [\\\"src\\\"]\\n}\\n\",\n \"packages/backend/webpack.config.js\": \"const path = require(\\\"path\\\");\\n\\nconst CopyWebpackPlugin = require(\\\"copy-webpack-plugin\\\");\\nconst WriteFilePlugin = require(\\\"write-file-webpack-plugin\\\");\\nconst { IgnorePlugin } = require(\\\"webpack\\\");\\n\\nconst lazyImports = [\\n \\\"@modelcontextprotocol/sdk\\\",\\n \\\"@fastify/static\\\",\\n \\\"@fastify/view\\\",\\n \\\"@nestjs/microservices\\\",\\n \\\"@nestjs/websockets\\\",\\n \\\"class-transformer\\\",\\n \\\"class-validator\\\",\\n];\\n\\n// @reference https://tech-blog.s-yoshiki.com/entry/297\\nmodule.exports = {\\n // CUSTOMIZE HERE\\n entry: {\\n server: \\\"./lib/executable/server.js\\\",\\n },\\n output: {\\n path: path.join(__dirname, \\\"dist\\\"),\\n filename: \\\"[name].js\\\",\\n },\\n optimization: {\\n minimize: true,\\n },\\n\\n // JUST KEEP THEM\\n mode: \\\"production\\\",\\n target: \\\"node\\\",\\n plugins: [\\n new CopyWebpackPlugin({\\n patterns: [\\n {\\n from: \\\".env\\\",\\n to: \\\"[name][ext]\\\",\\n },\\n ],\\n }),\\n new WriteFilePlugin(),\\n new IgnorePlugin({\\n checkResource: (resource) => {\\n if (lazyImports.some((modulo) => resource.startsWith(modulo))) {\\n try {\\n require.resolve(resource);\\n } catch (err) {\\n return true;\\n }\\n }\\n return false;\\n },\\n }),\\n ],\\n};\\n\",\n \"pnpm-workspace.yaml\": \"packages:\\n - \\\"config\\\"\\n - \\\"packages/*\\\"\\ncatalogs:\\n samchon:\\n \\\"@nestia/benchmark\\\": ^14.4.0\\n \\\"@nestia/core\\\": ^14.4.0\\n \\\"@nestia/e2e\\\": ^14.4.0\\n \\\"@nestia/fetcher\\\": ^14.4.0\\n \\\"@nestia/sdk\\\": ^14.4.0\\n nestia: ^14.4.0\\n tgrid: ^1.2.1\\n tstl: ^3.0.0\\n typia: 15.5.0\\n rolldown:\\n rolldown: ^1.1.5\\n utils:\\n rimraf: ^6.1.3\\n uuid: ^13.0.0\\n typescript:\\n \\\"@ttsc/lint\\\": ^0.38.1\\n \\\"@ttsc/paths\\\": ^0.18.2\\n \\\"@ttsc/unplugin\\\": ^0.38.1\\n ttsc: ^0.38.1\\n typescript: ^7.0.2\\n\",\n \"typos.toml\": \"[default]\\nlocale = 'en-us'\\nextend-ignore-re = [\\n \\\"(?Rm)^.*(<!--|#|//)\\\\\\\\s*spellchecker:disable-line(-->|\\\\n)?$\\\",\\n \\\"(?s)(<!--|#|//)\\\\\\\\s*spellchecker:off\\\\\\\\s*(-->|\\\\n).*?(<!--|#|//)\\\\\\\\s*spellchecker:on\\\",\\n]\\n\\n[default.extend-words]\\nJeongho = \\\"Jeongho\\\"\\nNam = \\\"Nam\\\"\\ntypia = \\\"typia\\\"\\n\\n[files]\\nextend-exclude = [\\\"*.json\\\"]\"\n}"],"mappings":";AAAA,MAAa,gBAAwC;CACnD,+BAA+B;CAC/B,+BAA+B;CAC/B,cAAc;CACd,uBAAuB;CACvB,yBAAyB;CACzB,WAAW;CACX,aAAa;CACb,yBAAyB;CACzB,uBAAuB;CACvB,8BAA8B;CAC9B,wBAAwB;CACxB,gBAAgB;CAChB,2BAA2B;CAC3B,wBAAwB;CACxB,0BAA0B;CAC1B,+BAA+B;CAC/B,6BAA6B;CAC7B,oCAAoC;CACpC,kDAAkD;CAClD,iCAAiC;CACjC,mCAAmC;CACnC,iCAAiC;CACjC,gCAAgC;CAChC,6BAA6B;CAC7B,8BAA8B;CAC9B,8BAA8B;CAC9B,+BAA+B;CAC/B,iCAAiC;CACjC,iFAAiF;CACjF,mCAAmC;CACnC,kCAAkC;CAClC,qCAAqC;CACrC,iCAAiC;CACjC,qCAAqC;CACrC,2CAA2C;CAC3C,oCAAoC;CACpC,6CAA6C;CAC7C,8CAA8C;CAC9C,2CAA2C;CAC3C,yCAAyC;CACzC,4CAA4C;CAC5C,8CAA8C;CAC9C,mDAAmD;CACnD,mDAAmD;CACnD,wDAAwD;CACxD,kCAAkC;CAClC,uCAAuC;CACvC,oCAAoC;CACpC,kCAAkC;CAClC,sCAAsC;CACtC,uBAAuB;CACvB,cAAc;AAChB"}
@@ -8,7 +8,7 @@ exports.SDK_TEMPLATE = {
8
8
  "LICENSE": "MIT License\n\nCopyright (c) 2024 Jeongho Nam\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
9
9
  "README.md": "# Software Development Kit\nThis is a SDK library generated by [`@nestia/migrate`](https://nestia.io/docs/migrate) or [`@nestia/editor`](https://nestia.io/docs/editor).\n\nWith this SDK library, you can easily and safely interact with backend server.\n\nJust import and call some API functions like gif image below:\n\n![nestia-sdk-demo](https://user-images.githubusercontent.com/13158709/215004990-368c589d-7101-404e-b81b-fbc936382f05.gif)\n\n> Left is server code, and right is client code utilizing the SDK\n\n\n\n\n## How to Test\n```bash\npnpm install\npnpm run start # run only \"test/start.ts\" file\npnpm run test # everything under the \"test/features\" directory\npnpm run test:simulate # \"test/features\" with mockup simulation mode\n```\n\nIf you run `pnpm run start` command, only [test/start.ts](test/start.ts) file would be executed.\n\nOtherwise you run `pnpm run test` command instead, run everything in the [test/features](test/features) directory.\n\nFor reference, the [test/features](test/features) directory and E2E test functions (for each API endpoints) would be automatically composed only when you've configured the \"E2E test function generation mode\" of the `@nestia/migrate` (or `@nestia/editor`).\n\n```bash\npnpm dlx @nestia/migrate\n? Migration mode (Use arrow keys):\n NestJS\n > SDK\n? Swagger file location: assets/input/clickhouse.json\n? Output directory path: assets/output/clickhouse-sdk-manual\n? Mokup Simulator: true\n? E2E Test Functions: true\n```\n\n\n\n\n## Deploy\n```bash\npnpm install\npnpm run deploy\n```\n\nJust run `pnpm run deploy` command, then your SDK library would be published.\n\nBy the way, the initial package name of this template repository is `@ORGANIZATION/PROJECT-api`. I think it would better to change the word to your own organization and project name. If you're utilizing `VsCode`, you can do it through `Edit > Replace in Files` (*Ctrl + Shift + H*) feature.\n\n-----------\n\n> ## What [`Nestia`](https://nestia.io) is:\n> ![Nestia Logo](https://nestia.io/logo.png)\n> \n> [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/samchon/nestia/blob/master/LICENSE)\n> [![npm version](https://img.shields.io/npm/v/@nestia/core.svg)](https://www.npmjs.com/package/@nestia/core)\n> [![Downloads](https://img.shields.io/npm/dm/@nestia/core.svg)](https://www.npmjs.com/package/@nestia/core)\n> [![Build Status](https://github.com/samchon/nestia/workflows/build/badge.svg)](https://github.com/samchon/nestia/actions?query=workflow%3Abuild)\n> [![Guide Documents](https://img.shields.io/badge/guide-documents-forestgreen)](https://nestia.io/docs/)\n> \n> Nestia is a set of helper libraries for NestJS, supporting below features:\n> \n> - `@nestia/core`: Super-fast decorators\n> - `@nestia/sdk`:\n> - Swagger generator evolved than ever\n> - SDK library generator for clients\n> - Mockup Simulator for client applications\n> - Automatic E2E test functions generator\n> - `@nestia/migrate`: Migration from Swagger to NestJS\n> - `@nestia/editor`: Online TypeScript Swagger Editor\n> - `nestia`: Just CLI (command line interface) tool\n> \n>> **Note**\n>> \n>> - **Only one line** required, with pure TypeScript type\n>> - Enhance performance **30x** up\n>> - Runtime validator is **20,000x faster** than `class-validator`\n>> - JSON serialization is **200x faster** than `class-transformer`\n>> - Software Development Kit\n>> - SDK is a collection of `fetch` functions with type definitions like [tRPC](https://> trpc.io/)\n>> - Mockup simulator means embedded backend simulator in SDK\n>> - similar with [msw](https://mswjs.io/), but fully automated\n",
10
10
  "hello.js": "function print(command, description) {\n return console.log(`\\x1b[1m${command}\\x1b[2m: ${description}\\x1b[0m`);\n}\n\nconsole.log(\"-----------------------------------------\");\nconsole.log(\"\\x1b[7mGenerated by \\x1b[2m@nestia/editor\\x1b[0m\");\nconsole.log(\"\");\nconsole.log(\" - \\x1b[36mhttps://nestia.io/docs/editor\\x1b[0m\");\nconsole.log(\" - \\x1b[36mhttps://github.com/samchon/nestia\\x1b[0m\");\nconsole.log(\"-----------------------------------------\");\n\nprint(\"pnpm run start\", \"Run only test/start.ts\");\nprint(\"pnpm run test\", \"Run every test/features/**/*.ts files\");\nprint(\"pnpm run test:simulate\", \"Test with mockup simulator\");\n",
11
- "package.json": "{\n \"name\": \"@ORGANIZATION/PROJECT-api\",\n \"version\": \"0.1.0\",\n \"description\": \"SDK library generated by Nestia\",\n \"main\": \"src/index.ts\",\n \"exports\": {\n \".\": \"./src/index.ts\",\n \"./lib/*\": \"./src/*.ts\",\n \"./package.json\": \"./package.json\"\n },\n \"publishConfig\": {\n \"main\": \"lib/index.mjs\",\n \"module\": \"lib/index.mjs\",\n \"types\": \"lib/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./lib/index.d.ts\",\n \"import\": \"./lib/index.mjs\",\n \"default\": \"./lib/index.js\"\n },\n \"./lib/*\": {\n \"types\": \"./lib/*.d.ts\",\n \"import\": \"./lib/*.mjs\",\n \"default\": \"./lib/*.js\"\n },\n \"./package.json\": \"./package.json\"\n }\n },\n \"scripts\": {\n \"build\": \"rimraf lib && ttsc && rolldown -c\",\n \"build:test\": \"rimraf bin && ttsc --project test/tsconfig.json\",\n \"deploy\": \"pnpm run build && pnpm publish\",\n \"dev\": \"pnpm run build:test --watch\",\n \"hello\": \"node hello\",\n \"start\": \"ttsx test/start.ts\",\n \"swagger\": \"ttsx test/swagger.ts\",\n \"test\": \"ttsx test/index.ts\",\n \"test:simulate\": \"ttsx test/index.ts --simulate true\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/samchon/nestia\"\n },\n \"author\": \"Jeongho Nam\",\n \"license\": \"MIT\",\n \"bugs\": {\n \"url\": \"https://github.com/samchon/nestia/issues\"\n },\n \"homepage\": \"https://nestia.io\",\n \"files\": [\n \"lib\",\n \"swagger.json\",\n \"package.json\",\n \"README.md\"\n ],\n \"dependencies\": {\n \"@nestia/fetcher\": \"^14.3.0\",\n \"tgrid\": \"^1.2.1\",\n \"typia\": \"15.4.0\"\n },\n \"devDependencies\": {\n \"@nestia/e2e\": \"^14.3.0\",\n \"@ttsc/unplugin\": \"^0.37.0\",\n \"@types/express\": \"^4.17.21\",\n \"@types/swagger-ui-express\": \"^4.1.6\",\n \"chalk\": \"4.1.2\",\n \"express\": \"^4.19.2\",\n \"rimraf\": \"^5.0.5\",\n \"rolldown\": \"^1.1.5\",\n \"swagger-ui-express\": \"^5.0.0\",\n \"tinyglobby\": \"^0.2.17\",\n \"ttsc\": \"^0.37.0\",\n \"typescript\": \"^7.0.2\",\n \"@nestia/core\": \"^14.3.0\"\n },\n \"packageManager\": \"pnpm@10.19.0\"\n}",
11
+ "package.json": "{\n \"name\": \"@ORGANIZATION/PROJECT-api\",\n \"version\": \"0.1.0\",\n \"description\": \"SDK library generated by Nestia\",\n \"main\": \"src/index.ts\",\n \"exports\": {\n \".\": \"./src/index.ts\",\n \"./lib/*\": \"./src/*.ts\",\n \"./package.json\": \"./package.json\"\n },\n \"publishConfig\": {\n \"main\": \"lib/index.mjs\",\n \"module\": \"lib/index.mjs\",\n \"types\": \"lib/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./lib/index.d.ts\",\n \"import\": \"./lib/index.mjs\",\n \"default\": \"./lib/index.js\"\n },\n \"./lib/*\": {\n \"types\": \"./lib/*.d.ts\",\n \"import\": \"./lib/*.mjs\",\n \"default\": \"./lib/*.js\"\n },\n \"./package.json\": \"./package.json\"\n }\n },\n \"scripts\": {\n \"build\": \"rimraf lib && ttsc && rolldown -c\",\n \"build:test\": \"rimraf bin && ttsc --project test/tsconfig.json\",\n \"deploy\": \"pnpm run build && pnpm publish\",\n \"dev\": \"pnpm run build:test --watch\",\n \"hello\": \"node hello\",\n \"start\": \"ttsx test/start.ts\",\n \"swagger\": \"ttsx test/swagger.ts\",\n \"test\": \"ttsx test/index.ts\",\n \"test:simulate\": \"ttsx test/index.ts --simulate true\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/samchon/nestia\"\n },\n \"author\": \"Jeongho Nam\",\n \"license\": \"MIT\",\n \"bugs\": {\n \"url\": \"https://github.com/samchon/nestia/issues\"\n },\n \"homepage\": \"https://nestia.io\",\n \"files\": [\n \"lib\",\n \"swagger.json\",\n \"package.json\",\n \"README.md\"\n ],\n \"dependencies\": {\n \"@nestia/fetcher\": \"^14.4.0\",\n \"tgrid\": \"^1.2.1\",\n \"typia\": \"15.5.0\"\n },\n \"devDependencies\": {\n \"@nestia/e2e\": \"^14.4.0\",\n \"@ttsc/unplugin\": \"^0.38.1\",\n \"@types/express\": \"^4.17.21\",\n \"@types/swagger-ui-express\": \"^4.1.6\",\n \"chalk\": \"4.1.2\",\n \"express\": \"^4.19.2\",\n \"rimraf\": \"^5.0.5\",\n \"rolldown\": \"^1.1.5\",\n \"swagger-ui-express\": \"^5.0.0\",\n \"tinyglobby\": \"^0.2.17\",\n \"ttsc\": \"^0.38.1\",\n \"typescript\": \"^7.0.2\",\n \"@nestia/core\": \"^14.4.0\"\n },\n \"packageManager\": \"pnpm@10.19.0\"\n}",
12
12
  "rolldown.config.mjs": "import ttsc from \"@ttsc/unplugin/rolldown\";\nimport path from \"node:path\";\nimport { globSync } from \"tinyglobby\";\n\nexport default {\n input: globSync(\"./src/**/*.ts\"),\n external: (id) => !id.startsWith(\".\") && !path.isAbsolute(id),\n output: {\n dir: \"./lib\",\n format: \"esm\",\n sourcemap: true,\n entryFileNames: \"[name].mjs\",\n preserveModules: true,\n preserveModulesRoot: \"src\",\n },\n plugins: [ttsc()],\n};\n",
13
13
  "src/HttpError.ts": "export { HttpError } from \"@nestia/fetcher\";\n",
14
14
  "src/IConnection.ts": "export type { IConnection } from \"@nestia/fetcher\";\n",
@@ -6,7 +6,7 @@ const SDK_TEMPLATE = {
6
6
  "LICENSE": "MIT License\n\nCopyright (c) 2024 Jeongho Nam\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
7
7
  "README.md": "# Software Development Kit\nThis is a SDK library generated by [`@nestia/migrate`](https://nestia.io/docs/migrate) or [`@nestia/editor`](https://nestia.io/docs/editor).\n\nWith this SDK library, you can easily and safely interact with backend server.\n\nJust import and call some API functions like gif image below:\n\n![nestia-sdk-demo](https://user-images.githubusercontent.com/13158709/215004990-368c589d-7101-404e-b81b-fbc936382f05.gif)\n\n> Left is server code, and right is client code utilizing the SDK\n\n\n\n\n## How to Test\n```bash\npnpm install\npnpm run start # run only \"test/start.ts\" file\npnpm run test # everything under the \"test/features\" directory\npnpm run test:simulate # \"test/features\" with mockup simulation mode\n```\n\nIf you run `pnpm run start` command, only [test/start.ts](test/start.ts) file would be executed.\n\nOtherwise you run `pnpm run test` command instead, run everything in the [test/features](test/features) directory.\n\nFor reference, the [test/features](test/features) directory and E2E test functions (for each API endpoints) would be automatically composed only when you've configured the \"E2E test function generation mode\" of the `@nestia/migrate` (or `@nestia/editor`).\n\n```bash\npnpm dlx @nestia/migrate\n? Migration mode (Use arrow keys):\n NestJS\n > SDK\n? Swagger file location: assets/input/clickhouse.json\n? Output directory path: assets/output/clickhouse-sdk-manual\n? Mokup Simulator: true\n? E2E Test Functions: true\n```\n\n\n\n\n## Deploy\n```bash\npnpm install\npnpm run deploy\n```\n\nJust run `pnpm run deploy` command, then your SDK library would be published.\n\nBy the way, the initial package name of this template repository is `@ORGANIZATION/PROJECT-api`. I think it would better to change the word to your own organization and project name. If you're utilizing `VsCode`, you can do it through `Edit > Replace in Files` (*Ctrl + Shift + H*) feature.\n\n-----------\n\n> ## What [`Nestia`](https://nestia.io) is:\n> ![Nestia Logo](https://nestia.io/logo.png)\n> \n> [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/samchon/nestia/blob/master/LICENSE)\n> [![npm version](https://img.shields.io/npm/v/@nestia/core.svg)](https://www.npmjs.com/package/@nestia/core)\n> [![Downloads](https://img.shields.io/npm/dm/@nestia/core.svg)](https://www.npmjs.com/package/@nestia/core)\n> [![Build Status](https://github.com/samchon/nestia/workflows/build/badge.svg)](https://github.com/samchon/nestia/actions?query=workflow%3Abuild)\n> [![Guide Documents](https://img.shields.io/badge/guide-documents-forestgreen)](https://nestia.io/docs/)\n> \n> Nestia is a set of helper libraries for NestJS, supporting below features:\n> \n> - `@nestia/core`: Super-fast decorators\n> - `@nestia/sdk`:\n> - Swagger generator evolved than ever\n> - SDK library generator for clients\n> - Mockup Simulator for client applications\n> - Automatic E2E test functions generator\n> - `@nestia/migrate`: Migration from Swagger to NestJS\n> - `@nestia/editor`: Online TypeScript Swagger Editor\n> - `nestia`: Just CLI (command line interface) tool\n> \n>> **Note**\n>> \n>> - **Only one line** required, with pure TypeScript type\n>> - Enhance performance **30x** up\n>> - Runtime validator is **20,000x faster** than `class-validator`\n>> - JSON serialization is **200x faster** than `class-transformer`\n>> - Software Development Kit\n>> - SDK is a collection of `fetch` functions with type definitions like [tRPC](https://> trpc.io/)\n>> - Mockup simulator means embedded backend simulator in SDK\n>> - similar with [msw](https://mswjs.io/), but fully automated\n",
8
8
  "hello.js": "function print(command, description) {\n return console.log(`\\x1b[1m${command}\\x1b[2m: ${description}\\x1b[0m`);\n}\n\nconsole.log(\"-----------------------------------------\");\nconsole.log(\"\\x1b[7mGenerated by \\x1b[2m@nestia/editor\\x1b[0m\");\nconsole.log(\"\");\nconsole.log(\" - \\x1b[36mhttps://nestia.io/docs/editor\\x1b[0m\");\nconsole.log(\" - \\x1b[36mhttps://github.com/samchon/nestia\\x1b[0m\");\nconsole.log(\"-----------------------------------------\");\n\nprint(\"pnpm run start\", \"Run only test/start.ts\");\nprint(\"pnpm run test\", \"Run every test/features/**/*.ts files\");\nprint(\"pnpm run test:simulate\", \"Test with mockup simulator\");\n",
9
- "package.json": "{\n \"name\": \"@ORGANIZATION/PROJECT-api\",\n \"version\": \"0.1.0\",\n \"description\": \"SDK library generated by Nestia\",\n \"main\": \"src/index.ts\",\n \"exports\": {\n \".\": \"./src/index.ts\",\n \"./lib/*\": \"./src/*.ts\",\n \"./package.json\": \"./package.json\"\n },\n \"publishConfig\": {\n \"main\": \"lib/index.mjs\",\n \"module\": \"lib/index.mjs\",\n \"types\": \"lib/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./lib/index.d.ts\",\n \"import\": \"./lib/index.mjs\",\n \"default\": \"./lib/index.js\"\n },\n \"./lib/*\": {\n \"types\": \"./lib/*.d.ts\",\n \"import\": \"./lib/*.mjs\",\n \"default\": \"./lib/*.js\"\n },\n \"./package.json\": \"./package.json\"\n }\n },\n \"scripts\": {\n \"build\": \"rimraf lib && ttsc && rolldown -c\",\n \"build:test\": \"rimraf bin && ttsc --project test/tsconfig.json\",\n \"deploy\": \"pnpm run build && pnpm publish\",\n \"dev\": \"pnpm run build:test --watch\",\n \"hello\": \"node hello\",\n \"start\": \"ttsx test/start.ts\",\n \"swagger\": \"ttsx test/swagger.ts\",\n \"test\": \"ttsx test/index.ts\",\n \"test:simulate\": \"ttsx test/index.ts --simulate true\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/samchon/nestia\"\n },\n \"author\": \"Jeongho Nam\",\n \"license\": \"MIT\",\n \"bugs\": {\n \"url\": \"https://github.com/samchon/nestia/issues\"\n },\n \"homepage\": \"https://nestia.io\",\n \"files\": [\n \"lib\",\n \"swagger.json\",\n \"package.json\",\n \"README.md\"\n ],\n \"dependencies\": {\n \"@nestia/fetcher\": \"^14.3.0\",\n \"tgrid\": \"^1.2.1\",\n \"typia\": \"15.4.0\"\n },\n \"devDependencies\": {\n \"@nestia/e2e\": \"^14.3.0\",\n \"@ttsc/unplugin\": \"^0.37.0\",\n \"@types/express\": \"^4.17.21\",\n \"@types/swagger-ui-express\": \"^4.1.6\",\n \"chalk\": \"4.1.2\",\n \"express\": \"^4.19.2\",\n \"rimraf\": \"^5.0.5\",\n \"rolldown\": \"^1.1.5\",\n \"swagger-ui-express\": \"^5.0.0\",\n \"tinyglobby\": \"^0.2.17\",\n \"ttsc\": \"^0.37.0\",\n \"typescript\": \"^7.0.2\",\n \"@nestia/core\": \"^14.3.0\"\n },\n \"packageManager\": \"pnpm@10.19.0\"\n}",
9
+ "package.json": "{\n \"name\": \"@ORGANIZATION/PROJECT-api\",\n \"version\": \"0.1.0\",\n \"description\": \"SDK library generated by Nestia\",\n \"main\": \"src/index.ts\",\n \"exports\": {\n \".\": \"./src/index.ts\",\n \"./lib/*\": \"./src/*.ts\",\n \"./package.json\": \"./package.json\"\n },\n \"publishConfig\": {\n \"main\": \"lib/index.mjs\",\n \"module\": \"lib/index.mjs\",\n \"types\": \"lib/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./lib/index.d.ts\",\n \"import\": \"./lib/index.mjs\",\n \"default\": \"./lib/index.js\"\n },\n \"./lib/*\": {\n \"types\": \"./lib/*.d.ts\",\n \"import\": \"./lib/*.mjs\",\n \"default\": \"./lib/*.js\"\n },\n \"./package.json\": \"./package.json\"\n }\n },\n \"scripts\": {\n \"build\": \"rimraf lib && ttsc && rolldown -c\",\n \"build:test\": \"rimraf bin && ttsc --project test/tsconfig.json\",\n \"deploy\": \"pnpm run build && pnpm publish\",\n \"dev\": \"pnpm run build:test --watch\",\n \"hello\": \"node hello\",\n \"start\": \"ttsx test/start.ts\",\n \"swagger\": \"ttsx test/swagger.ts\",\n \"test\": \"ttsx test/index.ts\",\n \"test:simulate\": \"ttsx test/index.ts --simulate true\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/samchon/nestia\"\n },\n \"author\": \"Jeongho Nam\",\n \"license\": \"MIT\",\n \"bugs\": {\n \"url\": \"https://github.com/samchon/nestia/issues\"\n },\n \"homepage\": \"https://nestia.io\",\n \"files\": [\n \"lib\",\n \"swagger.json\",\n \"package.json\",\n \"README.md\"\n ],\n \"dependencies\": {\n \"@nestia/fetcher\": \"^14.4.0\",\n \"tgrid\": \"^1.2.1\",\n \"typia\": \"15.5.0\"\n },\n \"devDependencies\": {\n \"@nestia/e2e\": \"^14.4.0\",\n \"@ttsc/unplugin\": \"^0.38.1\",\n \"@types/express\": \"^4.17.21\",\n \"@types/swagger-ui-express\": \"^4.1.6\",\n \"chalk\": \"4.1.2\",\n \"express\": \"^4.19.2\",\n \"rimraf\": \"^5.0.5\",\n \"rolldown\": \"^1.1.5\",\n \"swagger-ui-express\": \"^5.0.0\",\n \"tinyglobby\": \"^0.2.17\",\n \"ttsc\": \"^0.38.1\",\n \"typescript\": \"^7.0.2\",\n \"@nestia/core\": \"^14.4.0\"\n },\n \"packageManager\": \"pnpm@10.19.0\"\n}",
10
10
  "rolldown.config.mjs": "import ttsc from \"@ttsc/unplugin/rolldown\";\nimport path from \"node:path\";\nimport { globSync } from \"tinyglobby\";\n\nexport default {\n input: globSync(\"./src/**/*.ts\"),\n external: (id) => !id.startsWith(\".\") && !path.isAbsolute(id),\n output: {\n dir: \"./lib\",\n format: \"esm\",\n sourcemap: true,\n entryFileNames: \"[name].mjs\",\n preserveModules: true,\n preserveModulesRoot: \"src\",\n },\n plugins: [ttsc()],\n};\n",
11
11
  "src/HttpError.ts": "export { HttpError } from \"@nestia/fetcher\";\n",
12
12
  "src/IConnection.ts": "export type { IConnection } from \"@nestia/fetcher\";\n",