@samchon/openapi
Advanced tools
Comparing version 2.2.1 to 2.3.0-dev.20241218
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.HttpMigration = void 0; | ||
var MigrateConverter_1 = require("./composers/migrate/MigrateConverter"); | ||
var HttpMigrateApplicationComposer_1 = require("./composers/migrate/HttpMigrateApplicationComposer"); | ||
var HttpMigrateRouteFetcher_1 = require("./http/HttpMigrateRouteFetcher"); | ||
@@ -73,3 +73,5 @@ /** | ||
*/ | ||
HttpMigration.application = function (document) { return MigrateConverter_1.MigrateConverter.convert(document); }; | ||
HttpMigration.application = function (document) { | ||
return HttpMigrateApplicationComposer_1.HttpMigrateApplicationComposer.compose(document); | ||
}; | ||
/* ----------------------------------------------------------- | ||
@@ -76,0 +78,0 @@ FETCHERS |
@@ -357,2 +357,31 @@ import { OpenApiV3 } from "./OpenApiV3"; | ||
"x-samchon-human"?: boolean; | ||
/** | ||
* Accessor of the operation. | ||
* | ||
* If you configure this property, the assigned value would be used as | ||
* {@link IHttpMigrateRoute.accessor}. Also, it also can be used as the | ||
* {@link IHttpLlmFunction.name} by joininig with `.` character in the | ||
* LLM function calling application. | ||
* | ||
* Note that, the `x-samchon-accessor` value must be unique in the entire | ||
* OpenAPI document operations. If there're duplicated `x-samchon-accessor` | ||
* values, {@link IHttpMigrateRoute.accessor} will ignore every duplicated | ||
* `x-samchon-accessor` values and generate the | ||
* {@link IHttpMigrateRoute.accessor} by itself. | ||
*/ | ||
"x-samchon-accessor"?: string[]; | ||
/** | ||
* Controller of the operation. | ||
* | ||
* If you configure this property, the assigned value would be utilized | ||
* as the controller name in the OpenAPI generator library like | ||
* [`@nestia/editor`](https://nestia.io/docs/editor/) and | ||
* [`@nestia/migrate`](https://nestia.io/docs/migrate/). | ||
* | ||
* Also, if {@link x-samchon-accessor} has been configured, its last | ||
* element would be used as the controller method (function) name. | ||
* Of course, the OpenAPI document generator `@nestia/sdk` fills both of | ||
* them. | ||
*/ | ||
"x-samchon-controller"?: string; | ||
} | ||
@@ -359,0 +388,0 @@ namespace IOperation { |
{ | ||
"name": "@samchon/openapi", | ||
"version": "2.2.1", | ||
"version": "2.3.0-dev.20241218", | ||
"description": "OpenAPI definitions and converters for 'typia' and 'nestia'.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -0,0 +0,0 @@ # `@samchon/openapi` |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../../OpenApi"; |
@@ -0,0 +0,0 @@ import { IChatGptSchema } from "../structures/IChatGptSchema"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -0,0 +0,0 @@ import type { HttpLlm } from "../HttpLlm"; |
@@ -0,0 +0,0 @@ import { HttpMigration } from "./HttpMigration"; |
import { OpenApi } from "./OpenApi"; | ||
import { MigrateConverter } from "./composers/migrate/MigrateConverter"; | ||
import { HttpMigrateApplicationComposer } from "./composers/migrate/HttpMigrateApplicationComposer"; | ||
import { HttpMigrateRouteFetcher } from "./http/HttpMigrateRouteFetcher"; | ||
@@ -77,3 +77,4 @@ import { IHttpConnection } from "./structures/IHttpConnection"; | ||
document: OpenApi.IDocument, | ||
): IHttpMigrateApplication => MigrateConverter.convert(document); | ||
): IHttpMigrateApplication => | ||
HttpMigrateApplicationComposer.compose(document); | ||
@@ -80,0 +81,0 @@ /** |
@@ -0,0 +0,0 @@ //---- |
@@ -454,2 +454,33 @@ import { OpenApiV3 } from "./OpenApiV3"; | ||
"x-samchon-human"?: boolean; | ||
/** | ||
* Accessor of the operation. | ||
* | ||
* If you configure this property, the assigned value would be used as | ||
* {@link IHttpMigrateRoute.accessor}. Also, it also can be used as the | ||
* {@link IHttpLlmFunction.name} by joininig with `.` character in the | ||
* LLM function calling application. | ||
* | ||
* Note that, the `x-samchon-accessor` value must be unique in the entire | ||
* OpenAPI document operations. If there're duplicated `x-samchon-accessor` | ||
* values, {@link IHttpMigrateRoute.accessor} will ignore every duplicated | ||
* `x-samchon-accessor` values and generate the | ||
* {@link IHttpMigrateRoute.accessor} by itself. | ||
*/ | ||
"x-samchon-accessor"?: string[]; | ||
/** | ||
* Controller of the operation. | ||
* | ||
* If you configure this property, the assigned value would be utilized | ||
* as the controller name in the OpenAPI generator library like | ||
* [`@nestia/editor`](https://nestia.io/docs/editor/) and | ||
* [`@nestia/migrate`](https://nestia.io/docs/migrate/). | ||
* | ||
* Also, if {@link x-samchon-accessor} has been configured, its last | ||
* element would be used as the controller method (function) name. | ||
* Of course, the OpenAPI document generator `@nestia/sdk` fills both of | ||
* them. | ||
*/ | ||
"x-samchon-controller"?: string; | ||
} | ||
@@ -456,0 +487,0 @@ export namespace IOperation { |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { ILlmSchemaV3_1 } from "./ILlmSchemaV3_1"; |
@@ -0,0 +0,0 @@ /// <reference lib="dom" /> |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -0,0 +0,0 @@ import { ILlmSchemaV3_1 } from "./ILlmSchemaV3_1"; |
@@ -0,0 +0,0 @@ import { IGeminiSchema } from "./IGeminiSchema"; |
@@ -0,0 +0,0 @@ import { ILlmSchema } from "./ILlmSchema"; |
@@ -0,0 +0,0 @@ import { IChatGptSchema } from "./IChatGptSchema"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ export namespace AccessorUtil { |
@@ -0,0 +0,0 @@ import { IChatGptSchema } from "../structures/IChatGptSchema"; |
@@ -0,0 +0,0 @@ import { NamingConvention } from "./NamingConvention"; |
@@ -0,0 +0,0 @@ import { IGeminiSchema } from "../structures/IGeminiSchema"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../../OpenApi"; |
@@ -0,0 +0,0 @@ import { ILlmFunction } from "../structures/ILlmFunction"; |
@@ -0,0 +0,0 @@ import { ILlmSchemaV3_1 } from "../structures/ILlmSchemaV3_1"; |
@@ -0,0 +0,0 @@ import { ILlmSchemaV3 } from "../structures/ILlmSchemaV3"; |
@@ -0,0 +0,0 @@ export namespace NamingConvention { |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1818985
31459
1