Skip to content

Commit 995d54e

Browse files
committed
SDK regeneration
1 parent 2f40bba commit 995d54e

28 files changed

+348
-539
lines changed

.github/workflows/ci.yml

+37-37
Original file line numberDiff line numberDiff line change
@@ -3,53 +3,53 @@ name: ci
33
on: [push]
44

55
jobs:
6-
compile:
7-
runs-on: ubuntu-latest
6+
compile:
7+
runs-on: ubuntu-latest
88

9-
steps:
10-
- name: Checkout repo
11-
uses: actions/checkout@v3
9+
steps:
10+
- name: Checkout repo
11+
uses: actions/checkout@v3
1212

13-
- name: Set up node
14-
uses: actions/setup-node@v3
13+
- name: Set up node
14+
uses: actions/setup-node@v3
1515

16-
- name: Compile
17-
run: yarn && yarn build
16+
- name: Compile
17+
run: yarn && yarn build
1818

19-
test:
20-
runs-on: ubuntu-latest
19+
test:
20+
runs-on: ubuntu-latest
2121

22-
steps:
23-
- name: Checkout repo
24-
uses: actions/checkout@v3
22+
steps:
23+
- name: Checkout repo
24+
uses: actions/checkout@v3
2525

26-
- name: Set up node
27-
uses: actions/setup-node@v3
26+
- name: Set up node
27+
uses: actions/setup-node@v3
2828

29-
- name: Compile
30-
run: yarn && yarn test
29+
- name: Compile
30+
run: yarn && yarn test
3131

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

37-
steps:
38-
- name: Checkout repo
39-
uses: actions/checkout@v3
37+
steps:
38+
- name: Checkout repo
39+
uses: actions/checkout@v3
4040

41-
- name: Set up node
42-
uses: actions/setup-node@v3
41+
- name: Set up node
42+
uses: actions/setup-node@v3
4343

44-
- name: Install dependencies
45-
run: yarn install
44+
- name: Install dependencies
45+
run: yarn install
4646

47-
- name: Build
48-
run: yarn build
47+
- name: Build
48+
run: yarn build
4949

50-
- name: Publish to npm
51-
run: |
52-
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
53-
npm publish --access public
54-
env:
55-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
50+
- name: Publish to npm
51+
run: |
52+
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
53+
npm publish --access public
54+
env:
55+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

src/api/client/requests/ConvertDocxRequest.ts

-38
This file was deleted.

src/api/client/requests/GenerateRequest.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
import * as FileForge from "../../index";
5+
import * as Fileforge from "../../index";
66

77
/**
88
* @example
99
* {}
1010
*/
1111
export interface GenerateRequest {
1212
/** Conversion options. This field is required even if empty. */
13-
options: FileForge.GenerateRequestOptions;
13+
options: Fileforge.GenerateRequestOptions;
1414
}

src/api/client/requests/MergeRequest.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
import * as FileForge from "../../index";
5+
import * as Fileforge from "../../index";
66

77
/**
88
* @example
99
* {}
1010
*/
1111
export interface MergeRequest {
12-
options: FileForge.MergeRequestOptions;
12+
options: Fileforge.MergeRequestOptions;
1313
}

src/api/client/requests/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
export { type ConvertDocxRequest } from "./ConvertDocxRequest";
21
export { type GenerateRequest } from "./GenerateRequest";
32
export { type MergeRequest } from "./MergeRequest";

src/api/errors/BadGatewayError.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
*/
44

55
import * as errors from "../../errors/index";
6-
import * as FileForge from "../index";
6+
import * as Fileforge from "../index";
77

8-
export class BadGatewayError extends errors.FileForgeError {
9-
constructor(body: FileForge.ErrorSchema) {
8+
export class BadGatewayError extends errors.FileforgeError {
9+
constructor(body: Fileforge.ErrorSchema) {
1010
super({
1111
message: "BadGatewayError",
1212
statusCode: 502,

src/api/errors/BadRequestError.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
*/
44

55
import * as errors from "../../errors/index";
6-
import * as FileForge from "../index";
6+
import * as Fileforge from "../index";
77

8-
export class BadRequestError extends errors.FileForgeError {
9-
constructor(body: FileForge.ErrorSchema) {
8+
export class BadRequestError extends errors.FileforgeError {
9+
constructor(body: Fileforge.ErrorSchema) {
1010
super({
1111
message: "BadRequestError",
1212
statusCode: 400,

src/api/errors/InternalServerError.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

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

7-
export class InternalServerError extends errors.FileForgeError {
7+
export class InternalServerError extends errors.FileforgeError {
88
constructor(body?: unknown) {
99
super({
1010
message: "InternalServerError",

src/api/errors/UnauthorizedError.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
*/
44

55
import * as errors from "../../errors/index";
6-
import * as FileForge from "../index";
6+
import * as Fileforge from "../index";
77

8-
export class UnauthorizedError extends errors.FileForgeError {
9-
constructor(body: FileForge.ErrorSchema) {
8+
export class UnauthorizedError extends errors.FileforgeError {
9+
constructor(body: Fileforge.ErrorSchema) {
1010
super({
1111
message: "UnauthorizedError",
1212
statusCode: 401,

src/api/types/ConvertDocxRequestOptions.ts

-33
This file was deleted.

src/api/types/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
export * from "./ConvertDocxRequestOptions";
21
export * from "./GenerateRequestOptions";
32
export * from "./MergeRequestOptions";
43
export * from "./ErrorSchema";

src/core/auth/BasicAuth.ts

-31
This file was deleted.

src/core/auth/BearerToken.ts

-15
This file was deleted.

src/core/auth/index.ts

-2
This file was deleted.

0 commit comments

Comments
 (0)