Skip to content

Commit f3cfaf8

Browse files
chore: speakeasy sdk regeneration - Generate Files SDK (#9)
* ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.7.1 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.8.2 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.8.4 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.8.5 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.8.6 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.8.7 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.9.1 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.9.2 * ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.11.0 --------- Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent 1baa23c commit f3cfaf8

28 files changed

+2758
-2
lines changed

files/README.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# @codat/files
2+
3+
<!-- Start SDK Installation -->
4+
## SDK Installation
5+
6+
### NPM
7+
8+
```bash
9+
npm add @codat/files
10+
```
11+
12+
### Yarn
13+
14+
```bash
15+
yarn add @codat/files
16+
```
17+
<!-- End SDK Installation -->
18+
19+
## SDK Example Usage
20+
<!-- Start SDK Example Usage -->
21+
```typescript
22+
import {
23+
DownloadFilesRequest,
24+
DownloadFilesResponse
25+
} from "@codat/files/dist/sdk/models/operations";
26+
27+
import { AxiosError } from "axios";
28+
import { Codat } from "@codat/files";
29+
const sdk = new Codat({
30+
security: {
31+
authHeader: "YOUR_API_KEY_HERE",
32+
},
33+
});
34+
35+
const req: DownloadFilesRequest = {
36+
pathParams: {
37+
companyId: "unde",
38+
},
39+
queryParams: {
40+
date: "2022-08-10T15:04:26.022Z",
41+
},
42+
};
43+
44+
sdk.files.downloadFiles(req).then((res: DownloadFilesResponse | AxiosError) => {
45+
// handle response
46+
});
47+
```
48+
<!-- End SDK Example Usage -->
49+
50+
<!-- Start SDK Available Operations -->
51+
## SDK Available Operations
52+
53+
54+
### files
55+
56+
* `downloadFiles` - Download all files for a company
57+
* `listFiles` - List all files uploaded by a company
58+
* `uploadFiles` - Upload files for a company
59+
<!-- End SDK Available Operations -->
60+
61+
### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)

files/RELEASES.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
2+
3+
## 2023-03-02 00:26:08
4+
### Changes
5+
Based on:
6+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
7+
- Speakeasy CLI 1.7.1 https://github.com/speakeasy-api/speakeasy
8+
### Releases
9+
- [NPM v0.1.0] https://www.npmjs.com/package/@codat/files/v/0.1.0 - files
10+
11+
## 2023-03-04 00:22:24
12+
### Changes
13+
Based on:
14+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
15+
- Speakeasy CLI 1.8.2 https://github.com/speakeasy-api/speakeasy
16+
### Releases
17+
- [NPM v0.2.0] https://www.npmjs.com/package/@codat/files/v/0.2.0 - files
18+
19+
## 2023-03-06 00:24:35
20+
### Changes
21+
Based on:
22+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
23+
- Speakeasy CLI 1.8.4 https://github.com/speakeasy-api/speakeasy
24+
### Releases
25+
- [NPM v0.2.1] https://www.npmjs.com/package/@codat/files/v/0.2.1 - files
26+
27+
## 2023-03-07 00:25:41
28+
### Changes
29+
Based on:
30+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
31+
- Speakeasy CLI 1.8.5 https://github.com/speakeasy-api/speakeasy
32+
### Releases
33+
- [NPM v0.2.2] https://www.npmjs.com/package/@codat/files/v/0.2.2 - files
34+
35+
## 2023-03-08 00:24:33
36+
### Changes
37+
Based on:
38+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
39+
- Speakeasy CLI 1.8.6 https://github.com/speakeasy-api/speakeasy
40+
### Releases
41+
- [NPM v0.2.3] https://www.npmjs.com/package/@codat/files/v/0.2.3 - files
42+
43+
## 2023-03-09 00:24:26
44+
### Changes
45+
Based on:
46+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
47+
- Speakeasy CLI 1.8.7 https://github.com/speakeasy-api/speakeasy
48+
### Releases
49+
- [NPM v0.2.4] https://www.npmjs.com/package/@codat/files/v/0.2.4 - files
50+
51+
## 2023-03-10 00:24:28
52+
### Changes
53+
Based on:
54+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
55+
- Speakeasy CLI 1.9.1 https://github.com/speakeasy-api/speakeasy
56+
### Releases
57+
- [NPM v0.3.0] https://www.npmjs.com/package/@codat/files/v/0.3.0 - files
58+
59+
## 2023-03-11 00:20:46
60+
### Changes
61+
Based on:
62+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
63+
- Speakeasy CLI 1.9.2 https://github.com/speakeasy-api/speakeasy
64+
### Releases
65+
- [NPM v0.3.1] https://www.npmjs.com/package/@codat/files/v/0.3.1 - files
66+
67+
## 2023-03-15 00:23:28
68+
### Changes
69+
Based on:
70+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
71+
- Speakeasy CLI 1.11.0 https://github.com/speakeasy-api/speakeasy
72+
### Releases
73+
- [NPM v0.4.0] https://www.npmjs.com/package/@codat/files/v/0.4.0 - files

files/USAGE.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!-- Start SDK Example Usage -->
2+
```typescript
3+
import {
4+
DownloadFilesRequest,
5+
DownloadFilesResponse
6+
} from "@codat/files/dist/sdk/models/operations";
7+
8+
import { AxiosError } from "axios";
9+
import { Codat } from "@codat/files";
10+
const sdk = new Codat({
11+
security: {
12+
authHeader: "YOUR_API_KEY_HERE",
13+
},
14+
});
15+
16+
const req: DownloadFilesRequest = {
17+
pathParams: {
18+
companyId: "unde",
19+
},
20+
queryParams: {
21+
date: "2022-08-10T15:04:26.022Z",
22+
},
23+
};
24+
25+
sdk.files.downloadFiles(req).then((res: DownloadFilesResponse | AxiosError) => {
26+
// handle response
27+
});
28+
```
29+
<!-- End SDK Example Usage -->

files/files.gen

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
src/sdk/files.ts
2+
src/sdk/sdk.ts
3+
jest.config.js
4+
package-lock.json
5+
package.json
6+
src/index.ts
7+
src/internal/utils/contenttype.ts
8+
src/internal/utils/headers.ts
9+
src/internal/utils/index.ts
10+
src/internal/utils/pathparams.ts
11+
src/internal/utils/queryparams.ts
12+
src/internal/utils/requestbody.ts
13+
src/internal/utils/retries.ts
14+
src/internal/utils/security.ts
15+
src/internal/utils/utils.ts
16+
src/sdk/index.ts
17+
tsconfig.json
18+
src/sdk/models/operations/downloadfiles.ts
19+
src/sdk/models/operations/listfiles.ts
20+
src/sdk/models/operations/uploadfiles.ts
21+
src/sdk/models/operations/index.ts
22+
src/sdk/models/shared/security.ts
23+
src/sdk/models/shared/index.ts
24+
USAGE.md

files/gen.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
configVersion: 1.0.0
2+
management:
3+
docChecksum: 4bb6506e47b59a3c0e9b865f5442867a
4+
docVersion: 2.1.0
5+
speakeasyVersion: 1.11.0
26
generation:
7+
telemetryEnabled: false
38
sdkClassName: codat
49
sdkFlattening: true
510
typescript:
6-
version: 0.0.1
7-
packageName: "@codat/files"
11+
version: 0.4.0
12+
author: Speakeasy
13+
packageName: '@codat/files'

files/jest.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
preset: 'ts-jest',
3+
testEnvironment: 'node',
4+
verbose: false,
5+
testPathIgnorePatterns: [
6+
"<rootDir>/__tests__/helpers.ts"
7+
]
8+
};

0 commit comments

Comments
 (0)