@fernapi/api
Advanced tools
Comparing version 0.1.0 to 0.1.2
import { TypeReference } from "./TypeReference"; | ||
export interface AliasTypeDefinition { | ||
name: string; | ||
aliasType: TypeReference; | ||
aliasOf: TypeReference; | ||
isId: boolean; | ||
} |
@@ -5,3 +5,4 @@ import { TypeName } from "./TypeName"; | ||
name: TypeName; | ||
displayName: string; | ||
basePath: string; | ||
} |
@@ -5,13 +5,13 @@ import { HttpEndpointParameter } from "./HttpEndpointParameter"; | ||
import { HttpHeader } from "./HttpHeader"; | ||
import { HttpMethod } from "./HttpMethod"; | ||
import { HttpRequest } from "./HttpRequest"; | ||
import { HttpResponse } from "./HttpResponse"; | ||
import { HttpVerb } from "./HttpVerb"; | ||
import { WithDocs } from "./WithDocs"; | ||
export interface HttpEndpoint extends WithDocs { | ||
endpointId: string; | ||
verb: HttpVerb; | ||
method: HttpMethod; | ||
path: string; | ||
parameters: HttpEndpointParameter[]; | ||
queryParameters: HttpEndpointQueryParameter[]; | ||
header: HttpHeader[]; | ||
headers: HttpHeader[]; | ||
request: HttpRequest | null | undefined; | ||
@@ -18,0 +18,0 @@ response: HttpResponse | null | undefined; |
@@ -6,3 +6,3 @@ export type { AliasTypeDefinition } from "./AliasTypeDefinition"; | ||
export type { EnumValue } from "./EnumValue"; | ||
export type { FernFilepath } from "./FernFilepath"; | ||
export { FernFilepath } from "./FernFilepath"; | ||
export type { HttpEndpoint } from "./HttpEndpoint"; | ||
@@ -13,6 +13,6 @@ export type { HttpEndpointParameter } from "./HttpEndpointParameter"; | ||
export type { HttpHeader } from "./HttpHeader"; | ||
export { HttpMethod } from "./HttpMethod"; | ||
export type { HttpRequest } from "./HttpRequest"; | ||
export type { HttpResponse } from "./HttpResponse"; | ||
export type { HttpService } from "./HttpService"; | ||
export { HttpVerb } from "./HttpVerb"; | ||
export type { IntermediateRepresentation } from "./IntermediateRepresentation"; | ||
@@ -19,0 +19,0 @@ export type { MapType } from "./MapType"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.WebSocketMessageResponseBehavior = exports.WebSocketMessageOrigin = exports.TypeReference = exports.Type = exports.PrimitiveType = exports.HttpVerb = exports.ContainerType = void 0; | ||
exports.WebSocketMessageResponseBehavior = exports.WebSocketMessageOrigin = exports.TypeReference = exports.Type = exports.PrimitiveType = exports.HttpMethod = exports.FernFilepath = exports.ContainerType = void 0; | ||
var ContainerType_1 = require("./ContainerType"); | ||
Object.defineProperty(exports, "ContainerType", { enumerable: true, get: function () { return ContainerType_1.ContainerType; } }); | ||
var HttpVerb_1 = require("./HttpVerb"); | ||
Object.defineProperty(exports, "HttpVerb", { enumerable: true, get: function () { return HttpVerb_1.HttpVerb; } }); | ||
var FernFilepath_1 = require("./FernFilepath"); | ||
Object.defineProperty(exports, "FernFilepath", { enumerable: true, get: function () { return FernFilepath_1.FernFilepath; } }); | ||
var HttpMethod_1 = require("./HttpMethod"); | ||
Object.defineProperty(exports, "HttpMethod", { enumerable: true, get: function () { return HttpMethod_1.HttpMethod; } }); | ||
var PrimitiveType_1 = require("./PrimitiveType"); | ||
@@ -9,0 +11,0 @@ Object.defineProperty(exports, "PrimitiveType", { enumerable: true, get: function () { return PrimitiveType_1.PrimitiveType; } }); |
{ | ||
"name": "@fernapi/api", | ||
"version": "0.1.0", | ||
"version": "0.1.2", | ||
"main": "lib/index.js", | ||
@@ -9,3 +9,5 @@ "types": "lib/index.d.ts", | ||
], | ||
"bin": "./cli", | ||
"bin": { | ||
"api": "./cli" | ||
}, | ||
"scripts": { | ||
@@ -21,8 +23,7 @@ "clean": "tsc --build --clean", | ||
"format:check": "prettier --check --ignore-unknown --ignore-path ../../shared/.prettierignore \"**\"", | ||
"depcheck": "depcheck", | ||
"generate": "run fern generate ../api/src ../api/ir.json && run fern-typescript model ../api/ir.json src/generated" | ||
"depcheck": "depcheck" | ||
}, | ||
"dependencies": { | ||
"@fernapi/fern": "^0.1.0", | ||
"@fernapi/fern-typescript": "^0.1.0" | ||
"@fernapi/fern": "0.1.0", | ||
"@fernapi/fern-typescript": "^0.1.2" | ||
}, | ||
@@ -29,0 +30,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
43859
122
759
Updated@fernapi/fern@0.1.0