Skip to content

Commit

Permalink
Merge pull request #1 from fabra-io/speakeasy-sdk-regen-1677035781
Browse files Browse the repository at this point in the history
chore: speakeasy SDK regeneration
  • Loading branch information
ndimares authored Feb 22, 2023
2 parents a237a25 + 6187ae0 commit 071d288
Show file tree
Hide file tree
Showing 58 changed files with 3,291 additions and 1 deletion.
77 changes: 77 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# @fabra/sdk

<!-- Start SDK Installation -->
## SDK Installation

### NPM

```bash
npm add @fabra/sdk
```

### Yarn

```bash
yarn add @fabra/sdk
```
<!-- End SDK Installation -->

## SDK Example Usage
<!-- Start SDK Example Usage -->
```typescript
import { Fabra, withSecurity} from "@fabra/sdk";
import { GetNamespacesRequest, GetNamespacesResponse } from "@fabra/sdk/src/sdk/models/operations";
import { AxiosError } from "axios";

const sdk = new Fabra(withSecurity(
security: {
apiKeyAuth: {
apiKey: "YOUR_API_KEY_HERE",
},
}
));

const req: GetNamespacesRequest = {
queryParams: {
connectionID: 548814,
},
};

sdk.connection.getNamespaces(req).then((res: GetNamespacesResponse | AxiosError) => {
// handle response
});
```
<!-- End SDK Example Usage -->

<!-- Start SDK Available Operations -->
## SDK Available Operations


### connection

* `getNamespaces` - Get all namespaces
* `getSchema` - Get schema for table
* `getTables` - Get all tables

### destination

* `createDestination` - Create a new destination
* `getDestinations` - Get all destinations

### object

* `createObject` - Create a new object
* `getObjects` - Get all objects

### source

* `createSource` - Create a new source
* `getSources` - Get all sources

### sync

* `createSync` - Create a new sync
* `getSyncs` - Get all syncs
<!-- End SDK Available Operations -->

### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)
7 changes: 7 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@


## Version 0.1.0
### Changes
Based on:
- OpenAPI Doc 0.1.0 ./openapi.yaml
- Speakeasy CLI 1.4.5 https://github.com/speakeasy-api/speakeasy
25 changes: 25 additions & 0 deletions USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!-- Start SDK Example Usage -->
```typescript
import { Fabra, withSecurity} from "@fabra/sdk";
import { GetNamespacesRequest, GetNamespacesResponse } from "@fabra/sdk/src/sdk/models/operations";
import { AxiosError } from "axios";

const sdk = new Fabra(withSecurity(
security: {
apiKeyAuth: {
apiKey: "YOUR_API_KEY_HERE",
},
}
));

const req: GetNamespacesRequest = {
queryParams: {
connectionID: 548814,
},
};

sdk.connection.getNamespaces(req).then((res: GetNamespacesResponse | AxiosError) => {
// handle response
});
```
<!-- End SDK Example Usage -->
54 changes: 54 additions & 0 deletions files.gen
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
src/sdk/connection.ts
src/sdk/destination.ts
src/sdk/object.ts
src/sdk/source.ts
src/sdk/sync.ts
src/sdk/sdk.ts
package-lock.json
package.json
src/index.ts
src/internal/utils/contenttype.ts
src/internal/utils/headers.ts
src/internal/utils/index.ts
src/internal/utils/pathparams.ts
src/internal/utils/queryparams.ts
src/internal/utils/requestbody.ts
src/internal/utils/retries.ts
src/internal/utils/security.ts
src/internal/utils/utils.ts
src/sdk/index.ts
tsconfig.json
src/sdk/models/operations/getnamespaces.ts
src/sdk/models/operations/getschema.ts
src/sdk/models/operations/gettables.ts
src/sdk/models/operations/createdestination.ts
src/sdk/models/operations/getdestinations.ts
src/sdk/models/operations/createobject.ts
src/sdk/models/operations/getobjects.ts
src/sdk/models/operations/createsource.ts
src/sdk/models/operations/getsources.ts
src/sdk/models/operations/createsync.ts
src/sdk/models/operations/getsyncs.ts
src/sdk/models/operations/index.ts
src/sdk/models/shared/columnschema.ts
src/sdk/models/shared/fieldtypeenum.ts
src/sdk/models/shared/destination.ts
src/sdk/models/shared/connection.ts
src/sdk/models/shared/connectiontypeenum.ts
src/sdk/models/shared/destinationinput.ts
src/sdk/models/shared/snowflakeconfig.ts
src/sdk/models/shared/redshiftconfig.ts
src/sdk/models/shared/mongodbconfig.ts
src/sdk/models/shared/bigqueryconfig.ts
src/sdk/models/shared/object.ts
src/sdk/models/shared/objectfield.ts
src/sdk/models/shared/objectinput.ts
src/sdk/models/shared/source.ts
src/sdk/models/shared/sourceinput.ts
src/sdk/models/shared/sync.ts
src/sdk/models/shared/frequencyunitsenum.ts
src/sdk/models/shared/fieldmapping.ts
src/sdk/models/shared/syncinput.ts
src/sdk/models/shared/security.ts
src/sdk/models/shared/index.ts
USAGE.md
6 changes: 5 additions & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
management:
openapi-checksum: 5bdbad96d6d347d81789110337cf504a
openapi-version: 0.1.0
speakeasy-version: 1.4.5
typescript:
version: 0.0.0
version: 0.1.0
packagename: '@fabra/sdk'
author: fabra
sdkclassname: fabra
Loading

0 comments on commit 071d288

Please sign in to comment.