Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.358.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Aug 8, 2024
1 parent 49cd5b1 commit 7682d0c
Show file tree
Hide file tree
Showing 49 changed files with 1,400 additions and 790 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
speakeasyVersion: 1.335.2
speakeasyVersion: 1.358.0
sources:
source1:
sourceNamespace: source-1
sourceRevisionDigest: sha256:f1c16550b5fae5934ee128bf121cb51614ce18928c80f211b9012d904cae07e9
sourceBlobDigest: sha256:917f783532db81e8d7bd5dc27b194431fc3ff19759dfc32d740e61307c281584
sourceRevisionDigest: sha256:4e0a3cc23c422dabed444f32549721608636f73b029fa424c9389c7bd39dcd55
sourceBlobDigest: sha256:9f186c5312f73551b96f875f9e8f009878b3c809e5b069f023b9e905ca856379
tags:
- latest
- main
Expand All @@ -23,8 +23,8 @@ targets:
lending:
source: source1
sourceNamespace: source-1
sourceRevisionDigest: sha256:5f48817c3c11c1e7106d72b6defd8769073fa35bbd18c6f6ed57a1ec79445c0d
sourceBlobDigest: sha256:a32b8aa44c94b9f36570a301587ee1485bf1f5ad957d4908c8da646b61ce8aef
sourceRevisionDigest: sha256:4e0a3cc23c422dabed444f32549721608636f73b029fa424c9389c7bd39dcd55
sourceBlobDigest: sha256:9f186c5312f73551b96f875f9e8f009878b3c809e5b069f023b9e905ca856379
outLocation: lending
workflow:
workflowVersion: 1.0.0
Expand Down
2 changes: 2 additions & 0 deletions lending/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/funcs
/core.*
/models
/models/errors
/types
Expand Down
20 changes: 15 additions & 5 deletions lending/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,58 @@ id: 7caa457a-d738-4713-931d-4e4f19784732
management:
docChecksum: 1bdb7a6f8bf3995d4b40475228403253
docVersion: 1.0.0
speakeasyVersion: 1.335.2
generationVersion: 2.372.3
releaseVersion: 0.1.3
configChecksum: f6cf680c51fc29e951fb98b83bd4846e
speakeasyVersion: 1.358.0
generationVersion: 2.390.6
releaseVersion: 0.2.0
configChecksum: 0d27132421ea429c458054b09a4307db
repoURL: https://github.com/ryan-timothy-albert/sample-ts-monorepo.git
repoSubDirectory: lending
installationURL: https://gitpkg.now.sh/ryan-timothy-albert/sample-ts-monorepo/lending
published: true
features:
typescript:
additionalDependencies: 0.1.0
core: 3.11.6
core: 3.12.3
defaultEnabledRetries: 0.1.0
envVarSecurityUsage: 0.1.1
globalSecurityCallbacks: 0.1.0
globalServerURLs: 2.82.4
responseFormat: 0.2.3
retries: 2.83.0
sdkHooks: 0.1.0
generatedFiles:
- src/funcs/petsListPets.ts
- src/funcs/petsCreatePets.ts
- src/funcs/petsShowPetById.ts
- src/sdk/pets.ts
- src/sdk/sdk.ts
- .eslintrc.cjs
- .npmignore
- RUNTIMES.md
- jsr.json
- package.json
- src/core.ts
- src/index.ts
- src/lib/base64.ts
- src/lib/config.ts
- src/lib/dlv.ts
- src/lib/encodings.ts
- src/lib/http.ts
- src/lib/is-plain-object.ts
- src/lib/matchers.ts
- src/lib/primitives.ts
- src/lib/retries.ts
- src/lib/schemas.ts
- src/lib/sdks.ts
- src/lib/security.ts
- src/lib/url.ts
- src/sdk/index.ts
- src/models/errors/httpclienterrors.ts
- src/models/errors/sdkerror.ts
- src/models/errors/sdkvalidationerror.ts
- src/types/blobs.ts
- src/types/enums.ts
- src/types/fp.ts
- src/types/index.ts
- src/types/operations.ts
- src/types/rfcdate.ts
Expand All @@ -72,3 +81,4 @@ generatedFiles:
- src/hooks/hooks.ts
- src/hooks/types.ts
- src/hooks/index.ts
- CONTRIBUTING.md
2 changes: 1 addition & 1 deletion lending/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
typescript:
version: 0.1.3
version: 0.2.0
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
26 changes: 26 additions & 0 deletions lending/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Contributing to This Repository

Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements.

## How to Report Issues

If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes:

- A clear and descriptive title
- Steps to reproduce the issue
- Expected and actual behavior
- Any relevant logs, screenshots, or error messages
- Information about your environment (e.g., operating system, software versions)
- For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed

## Issue Triage and Upstream Fixes

We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code.

## Contact

If you have any questions or need further assistance, please feel free to reach out by opening an issue.

Thank you for your understanding and cooperation!

The Maintainers
12 changes: 11 additions & 1 deletion lending/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,14 @@ Based on:
### Generated
- [typescript v0.1.3] lending
### Releases
- [NPM v0.1.3] https://www.npmjs.com/package/ryan-lending/v/0.1.3 - lending
- [NPM v0.1.3] https://www.npmjs.com/package/ryan-lending/v/0.1.3 - lending

## 2024-08-08 18:41:09
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.358.0 (2.390.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.2.0] lending
### Releases
- [NPM v0.2.0] https://www.npmjs.com/package/ryan-lending/v/0.2.0 - lending
2 changes: 1 addition & 1 deletion lending/jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "ryan-lending",
"version": "0.1.3",
"version": "0.2.0",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions lending/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lending/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ryan-lending",
"version": "0.1.3",
"version": "0.2.0",
"author": "ryan-timothy-albert",
"main": "./index.js",
"sideEffects": false,
Expand Down
13 changes: 13 additions & 0 deletions lending/src/core.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import { ClientSDK } from "./lib/sdks.js";

/**
* A minimal client to use when calling standalone SDK functions. Typically, an
* instance of this class would be instantiated once at the start of an
* application and passed around through some dependency injection mechanism to
* parts of an application that need to make SDK calls.
*/
export class LendingSDKCore extends ClientSDK {}
110 changes: 110 additions & 0 deletions lending/src/funcs/petsCreatePets.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/

import { LendingSDKCore } from "../core.js";
import { encodeJSON as encodeJSON$ } from "../lib/encodings.js";
import * as m$ from "../lib/matchers.js";
import * as schemas$ from "../lib/schemas.js";
import { RequestOptions } from "../lib/sdks.js";
import { pathToFunc } from "../lib/url.js";
import * as components from "../models/components/index.js";
import {
ConnectionError,
InvalidRequestError,
RequestAbortedError,
RequestTimeoutError,
UnexpectedClientError,
} from "../models/errors/httpclienterrors.js";
import { SDKError } from "../models/errors/sdkerror.js";
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
import { Result } from "../types/fp.js";

/**
* Create a pet
*/
export async function petsCreatePets(
client$: LendingSDKCore,
request: components.Pet,
options?: RequestOptions
): Promise<
Result<
components.ErrorT | undefined,
| SDKError
| SDKValidationError
| UnexpectedClientError
| InvalidRequestError
| RequestAbortedError
| RequestTimeoutError
| ConnectionError
>
> {
const input$ = request;

const parsed$ = schemas$.safeParse(
input$,
(value$) => components.Pet$outboundSchema.parse(value$),
"Input validation failed"
);
if (!parsed$.ok) {
return parsed$;
}
const payload$ = parsed$.value;
const body$ = encodeJSON$("body", payload$, { explode: true });

const path$ = pathToFunc("/pets")();

const headers$ = new Headers({
"Content-Type": "application/json",
Accept: "application/json",
});

const context = { operationID: "createPets", oAuth2Scopes: [], securitySource: null };

const requestRes = client$.createRequest$(
context,
{
method: "POST",
path: path$,
headers: headers$,
body: body$,
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
},
options
);
if (!requestRes.ok) {
return requestRes;
}
const request$ = requestRes.value;

const doResult = await client$.do$(request$, {
context,
errorCodes: ["4XX", "5XX"],
retryConfig: options?.retries || client$.options$.retryConfig,
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
});
if (!doResult.ok) {
return doResult;
}
const response = doResult.value;

const [result$] = await m$.match<
components.ErrorT | undefined,
| SDKError
| SDKValidationError
| UnexpectedClientError
| InvalidRequestError
| RequestAbortedError
| RequestTimeoutError
| ConnectionError
>(
m$.nil(201, components.ErrorT$inboundSchema.optional()),
m$.fail(["4XX", "5XX"]),
m$.json("default", components.ErrorT$inboundSchema.optional())
)(response);
if (!result$.ok) {
return result$;
}

return result$;
}
Loading

0 comments on commit 7682d0c

Please sign in to comment.