Skip to content

Commit

Permalink
use a published sdk instead of a locally generated one
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi committed Oct 1, 2024
1 parent d9eab1a commit 6e2f1b2
Show file tree
Hide file tree
Showing 34 changed files with 32 additions and 1,107 deletions.
24 changes: 12 additions & 12 deletions fern/apis/proxy/generators.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
default-group: local
groups:
sdk:
generators: []
# - name: fernapi/fern-typescript-node-sdk
# version: 0.17.1
# output:
# location: npm
# url: npm.buildwithfern.com
# package-name: "@fern-fern/proxy-sdk"
# config:
# skipResponseValidation: true
# outputEsm: true
# noSerdeLayer: true
# noOptionalProperties: true
generators:
- name: fernapi/fern-typescript-node-sdk
version: 0.40.7
output:
location: npm
url: npm.buildwithfern.com
package-name: "@fern-fern/proxy-sdk"
config:
skipResponseValidation: true
outputEsm: true
noSerdeLayer: true
noOptionalProperties: true

local:
generators:
Expand Down
1 change: 1 addition & 0 deletions packages/ui/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"@fern-ui/next-seo": "workspace:*",
"@fern-ui/react-commons": "workspace:*",
"@fern-ui/search-utils": "workspace:*",
"@fern-fern/proxy-sdk": "0.0.21",
"@inkeep/widgets": "^0.2.288",
"@next/third-parties": "14.2.9",
"@radix-ui/colors": "^3.0.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/app/src/playground/fetch-utils/executeGrpc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FernProxyClient } from "@fern-fern/proxy-sdk";
import { GrpcProxyRequest, ProxyResponse } from "../types";
import { PlaygroundResponse } from "../types/playgroundResponse";
import { FernProxyClient } from "./generated";

export async function executeGrpc(grpcClient: FernProxyClient, req: GrpcProxyRequest): Promise<PlaygroundResponse> {
let time = 0;
Expand All @@ -22,6 +22,7 @@ export async function executeGrpc(grpcClient: FernProxyClient, req: GrpcProxyReq
endpoint: req.endpointId,
headers: req.headers,
body: req.body,
schema: undefined,
});
stopTimer();

Expand Down
253 changes: 0 additions & 253 deletions packages/ui/app/src/playground/fetch-utils/generated/Client.ts

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 6e2f1b2

Please sign in to comment.