Skip to content

Commit

Permalink
SDK regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed May 27, 2024
1 parent 2f40bba commit 995d54e
Show file tree
Hide file tree
Showing 28 changed files with 348 additions and 539 deletions.
74 changes: 37 additions & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,53 +3,53 @@ name: ci
on: [push]

jobs:
compile:
runs-on: ubuntu-latest
compile:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v3
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Set up node
uses: actions/setup-node@v3
- name: Set up node
uses: actions/setup-node@v3

- name: Compile
run: yarn && yarn build
- name: Compile
run: yarn && yarn build

test:
runs-on: ubuntu-latest
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v3
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Set up node
uses: actions/setup-node@v3
- name: Set up node
uses: actions/setup-node@v3

- name: Compile
run: yarn && yarn test
- name: Compile
run: yarn && yarn test

publish:
needs: [compile, test]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
publish:
needs: [ compile, test ]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v3
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Set up node
uses: actions/setup-node@v3
- name: Set up node
uses: actions/setup-node@v3

- name: Install dependencies
run: yarn install
- name: Install dependencies
run: yarn install

- name: Build
run: yarn build
- name: Build
run: yarn build

- name: Publish to npm
run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to npm
run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38 changes: 0 additions & 38 deletions src/api/client/requests/ConvertDocxRequest.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/api/client/requests/GenerateRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as FileForge from "../../index";
import * as Fileforge from "../../index";

/**
* @example
* {}
*/
export interface GenerateRequest {
/** Conversion options. This field is required even if empty. */
options: FileForge.GenerateRequestOptions;
options: Fileforge.GenerateRequestOptions;
}
4 changes: 2 additions & 2 deletions src/api/client/requests/MergeRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as FileForge from "../../index";
import * as Fileforge from "../../index";

/**
* @example
* {}
*/
export interface MergeRequest {
options: FileForge.MergeRequestOptions;
options: Fileforge.MergeRequestOptions;
}
1 change: 0 additions & 1 deletion src/api/client/requests/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export { type ConvertDocxRequest } from "./ConvertDocxRequest";
export { type GenerateRequest } from "./GenerateRequest";
export { type MergeRequest } from "./MergeRequest";
6 changes: 3 additions & 3 deletions src/api/errors/BadGatewayError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
*/

import * as errors from "../../errors/index";
import * as FileForge from "../index";
import * as Fileforge from "../index";

export class BadGatewayError extends errors.FileForgeError {
constructor(body: FileForge.ErrorSchema) {
export class BadGatewayError extends errors.FileforgeError {
constructor(body: Fileforge.ErrorSchema) {
super({
message: "BadGatewayError",
statusCode: 502,
Expand Down
6 changes: 3 additions & 3 deletions src/api/errors/BadRequestError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
*/

import * as errors from "../../errors/index";
import * as FileForge from "../index";
import * as Fileforge from "../index";

export class BadRequestError extends errors.FileForgeError {
constructor(body: FileForge.ErrorSchema) {
export class BadRequestError extends errors.FileforgeError {
constructor(body: Fileforge.ErrorSchema) {
super({
message: "BadRequestError",
statusCode: 400,
Expand Down
2 changes: 1 addition & 1 deletion src/api/errors/InternalServerError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import * as errors from "../../errors/index";

export class InternalServerError extends errors.FileForgeError {
export class InternalServerError extends errors.FileforgeError {
constructor(body?: unknown) {
super({
message: "InternalServerError",
Expand Down
6 changes: 3 additions & 3 deletions src/api/errors/UnauthorizedError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
*/

import * as errors from "../../errors/index";
import * as FileForge from "../index";
import * as Fileforge from "../index";

export class UnauthorizedError extends errors.FileForgeError {
constructor(body: FileForge.ErrorSchema) {
export class UnauthorizedError extends errors.FileforgeError {
constructor(body: Fileforge.ErrorSchema) {
super({
message: "UnauthorizedError",
statusCode: 401,
Expand Down
33 changes: 0 additions & 33 deletions src/api/types/ConvertDocxRequestOptions.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/api/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from "./ConvertDocxRequestOptions";
export * from "./GenerateRequestOptions";
export * from "./MergeRequestOptions";
export * from "./ErrorSchema";
31 changes: 0 additions & 31 deletions src/core/auth/BasicAuth.ts

This file was deleted.

15 changes: 0 additions & 15 deletions src/core/auth/BearerToken.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/core/auth/index.ts

This file was deleted.

Loading

0 comments on commit 995d54e

Please sign in to comment.