Skip to content

Commit

Permalink
Merge pull request #21 from ryan-timothy-albert/speakeasy-sdk-regen-1…
Browse files Browse the repository at this point in the history
…731024337

chore: 🐝 Update SDK - Generate 0.4.0
  • Loading branch information
ryan-timothy-albert authored Nov 8, 2024
2 parents 6f8a37e + 215c3bd commit f795f22
Show file tree
Hide file tree
Showing 14 changed files with 80 additions and 46 deletions.
27 changes: 20 additions & 7 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: ede0e8e6-5a63-4cc3-bd29-551cf1036a60
management:
docChecksum: ad663a9a1829ad7aad87db01daf63b68
docVersion: 1.0.0
speakeasyVersion: 1.431.0
generationVersion: 2.451.0
releaseVersion: 0.3.0
configChecksum: f0c7fad458f2041c21196566143ebe5c
docChecksum: ad9cb329480ffb07cb9dd7fb995b32fe
docVersion: 2.0.0
speakeasyVersion: 1.434.6
generationVersion: 2.452.0
releaseVersion: 0.4.0
configChecksum: 1c64f4cbe6f181fadd0f6540f1862a08
repoURL: https://github.com/ryan-timothy-albert/simple-ts-sdk.git
installationURL: https://github.com/ryan-timothy-albert/simple-ts-sdk
published: true
Expand Down Expand Up @@ -73,11 +73,11 @@ generatedFiles:
- package.json
- src/core.ts
- src/funcs/petDeletePet.ts
- src/funcs/petDsfsdff.ts
- src/funcs/petFindPetsByStatus.ts
- src/funcs/petFindPetsByTags.ts
- src/funcs/petGetPetById.ts
- src/funcs/petMyPet.ts
- src/funcs/petUpdatePet.ts
- src/funcs/petUploadFile.ts
- src/funcs/storeDeleteOrder.ts
- src/funcs/storeGetInventory.ts
Expand Down Expand Up @@ -344,3 +344,16 @@ examples:
responses:
"200":
application/json: {"id": 10, "name": "doggie", "category": {"id": 1, "name": "Dogs"}, "photoUrls": ["<value>", "<value>", "<value>"]}
dsfsdff:
speakeasy-default-dsfsdff:
requestBody:
application/json: {"id": 10, "name": "doggie", "category": {"id": 1, "name": "Dogs"}, "photoUrls": ["<value>", "<value>", "<value>"]}
responses:
"200":
application/json: {"id": 10, "name": "doggie", "category": {"id": 1, "name": "Dogs"}, "photoUrls": ["<value>", "<value>", "<value>"]}
"400":
application/json: {"status": 400, "error": "Bad request"}
"401":
application/json: {"status": 401, "error": "Unauthorized"}
"404":
application/json: {"status": 404, "error": "Not Found", "code": "object_not_found"}
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
typescript:
version: 0.3.0
version: 0.4.0
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.431.0
speakeasyVersion: 1.434.6
sources:
petstore-oas:
sourceNamespace: petstore-oas
sourceRevisionDigest: sha256:eadd04b227959619f017f2669743325c9b790d05e382048066a36511d9391c98
sourceBlobDigest: sha256:79d4bec465be62dfc290bed016e16e2186dc5b82b50bdf76d80f099eff5a6071
sourceRevisionDigest: sha256:b9a29b566000636791f195e5178872657d83b5afcdb5c50bd54bcb1c5541cdb6
sourceBlobDigest: sha256:bcfe955261b90d79d9dec6342b95e0bedc0b1160b3db0a78fb002734b92b294e
tags:
- latest
- main
targets:
petstore:
source: petstore-oas
sourceNamespace: petstore-oas
sourceRevisionDigest: sha256:eadd04b227959619f017f2669743325c9b790d05e382048066a36511d9391c98
sourceBlobDigest: sha256:79d4bec465be62dfc290bed016e16e2186dc5b82b50bdf76d80f099eff5a6071
sourceRevisionDigest: sha256:b9a29b566000636791f195e5178872657d83b5afcdb5c50bd54bcb1c5541cdb6
sourceBlobDigest: sha256:bcfe955261b90d79d9dec6342b95e0bedc0b1160b3db0a78fb002734b92b294e
codeSamplesNamespace: petstore-oas-code-samples
codeSamplesRevisionDigest: sha256:fc0b6f04887b3fd1e246d8407fe4335dcd19c6535bca6414e4151d3c667ab8c5
codeSamplesRevisionDigest: sha256:4508570f8752eb97bec1cc45fc255d7af21035c3b35a518e40b992d235074664
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
5 changes: 3 additions & 2 deletions FUNCTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ specific category of applications.

```typescript
import { PetstoreCore } from "ryan-simple-test-act/core.js";
import { petUpdatePet } from "ryan-simple-test-act/funcs/petUpdatePet.js";
import { petDsfsdff } from "ryan-simple-test-act/funcs/petDsfsdff.js";
import { SDKValidationError } from "ryan-simple-test-act/models/errors/sdkvalidationerror.js";

// Use `PetstoreCore` for best tree-shaking performance.
Expand All @@ -30,7 +30,7 @@ const petstore = new PetstoreCore({
});

async function run() {
const res = await petUpdatePet(petstore, {
const res = await petDsfsdff(petstore, {
id: 10,
name: "doggie",
category: {
Expand All @@ -40,6 +40,7 @@ async function run() {
photoUrls: [
"<value>",
"<value>",
"<value>",
],
});

Expand Down
27 changes: 17 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const petstore = new Petstore({
});

async function run() {
const result = await petstore.pet.updatePet({
const result = await petstore.pet.dsfsdff({
id: 10,
name: "doggie",
category: {
Expand All @@ -108,6 +108,7 @@ async function run() {
photoUrls: [
"<value>",
"<value>",
"<value>",
],
});

Expand All @@ -128,7 +129,7 @@ run();

### [pet](docs/sdks/pet/README.md)

* [updatePet](docs/sdks/pet/README.md#updatepet) - Update an existing pet
* [dsfsdff](docs/sdks/pet/README.md#dsfsdff) - Update an existing pet
* [myPet](docs/sdks/pet/README.md#mypet) - Add a new pet to the store
* [findPetsByStatus](docs/sdks/pet/README.md#findpetsbystatus) - Finds Pets by status
* [findPetsByTags](docs/sdks/pet/README.md#findpetsbytags) - Finds Pets by tags
Expand Down Expand Up @@ -173,11 +174,11 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
<summary>Available standalone functions</summary>

- [`petDeletePet`](docs/sdks/pet/README.md#deletepet) - Deletes a pet
- [`petDsfsdff`](docs/sdks/pet/README.md#dsfsdff) - Update an existing pet
- [`petFindPetsByStatus`](docs/sdks/pet/README.md#findpetsbystatus) - Finds Pets by status
- [`petFindPetsByTags`](docs/sdks/pet/README.md#findpetsbytags) - Finds Pets by tags
- [`petGetPetById`](docs/sdks/pet/README.md#getpetbyid) - Find pet by ID
- [`petMyPet`](docs/sdks/pet/README.md#mypet) - Add a new pet to the store
- [`petUpdatePet`](docs/sdks/pet/README.md#updatepet) - Update an existing pet
- [`petUploadFile`](docs/sdks/pet/README.md#uploadfile) - uploads an image
- [`storeDeleteOrder`](docs/sdks/store/README.md#deleteorder) - Delete purchase order by ID
- [`storeGetInventory`](docs/sdks/store/README.md#getinventory) - Returns pet inventories by status
Expand Down Expand Up @@ -243,7 +244,7 @@ const petstore = new Petstore({
});

async function run() {
const result = await petstore.pet.updatePet({
const result = await petstore.pet.dsfsdff({
id: 10,
name: "doggie",
category: {
Expand All @@ -253,6 +254,7 @@ async function run() {
photoUrls: [
"<value>",
"<value>",
"<value>",
],
}, {
retries: {
Expand Down Expand Up @@ -294,7 +296,7 @@ const petstore = new Petstore({
});

async function run() {
const result = await petstore.pet.updatePet({
const result = await petstore.pet.dsfsdff({
id: 10,
name: "doggie",
category: {
Expand All @@ -304,6 +306,7 @@ async function run() {
photoUrls: [
"<value>",
"<value>",
"<value>",
],
});

Expand Down Expand Up @@ -331,7 +334,7 @@ If a HTTP request fails, an operation my also throw an error from the `models/er
| InvalidRequestError | Any input used to create a request is invalid |
| UnexpectedClientError | Unrecognised or unexpected error |

In addition, when custom error responses are specified for an operation, the SDK may throw their associated Error type. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation. For example, the `updatePet` method may throw the following errors:
In addition, when custom error responses are specified for an operation, the SDK may throw their associated Error type. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation. For example, the `dsfsdff` method may throw the following errors:

| Error Type | Status Code | Content Type |
| --------------------------- | --------------------------- | --------------------------- |
Expand All @@ -356,7 +359,7 @@ const petstore = new Petstore({
async function run() {
let result;
try {
result = await petstore.pet.updatePet({
result = await petstore.pet.dsfsdff({
id: 10,
name: "doggie",
category: {
Expand All @@ -366,6 +369,7 @@ async function run() {
photoUrls: [
"<value>",
"<value>",
"<value>",
],
});

Expand Down Expand Up @@ -429,7 +433,7 @@ const petstore = new Petstore({
});

async function run() {
const result = await petstore.pet.updatePet({
const result = await petstore.pet.dsfsdff({
id: 10,
name: "doggie",
category: {
Expand All @@ -439,6 +443,7 @@ async function run() {
photoUrls: [
"<value>",
"<value>",
"<value>",
],
});

Expand Down Expand Up @@ -468,7 +473,7 @@ const petstore = new Petstore({
});

async function run() {
const result = await petstore.pet.updatePet({
const result = await petstore.pet.dsfsdff({
id: 10,
name: "doggie",
category: {
Expand All @@ -478,6 +483,7 @@ async function run() {
photoUrls: [
"<value>",
"<value>",
"<value>",
],
});

Expand Down Expand Up @@ -559,7 +565,7 @@ const petstore = new Petstore({
});

async function run() {
const result = await petstore.pet.updatePet({
const result = await petstore.pet.dsfsdff({
id: 10,
name: "doggie",
category: {
Expand All @@ -569,6 +575,7 @@ async function run() {
photoUrls: [
"<value>",
"<value>",
"<value>",
],
});

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,14 @@ Based on:
### Generated
- [typescript v0.3.0] .
### Releases
- [NPM v0.3.0] https://www.npmjs.com/package/ryan-simple-test-act/v/0.3.0 - .
- [NPM v0.3.0] https://www.npmjs.com/package/ryan-simple-test-act/v/0.3.0 - .

## 2024-11-08 00:05:35
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.434.6 (2.452.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.4.0] .
### Releases
- [NPM v0.4.0] https://www.npmjs.com/package/ryan-simple-test-act/v/0.4.0 - .
3 changes: 2 additions & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const petstore = new Petstore({
});

async function run() {
const result = await petstore.pet.updatePet({
const result = await petstore.pet.dsfsdff({
id: 10,
name: "doggie",
category: {
Expand All @@ -17,6 +17,7 @@ async function run() {
photoUrls: [
"<value>",
"<value>",
"<value>",
],
});

Expand Down
12 changes: 7 additions & 5 deletions docs/sdks/pet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ Find out more

### Available Operations

* [updatePet](#updatepet) - Update an existing pet
* [dsfsdff](#dsfsdff) - Update an existing pet
* [myPet](#mypet) - Add a new pet to the store
* [findPetsByStatus](#findpetsbystatus) - Finds Pets by status
* [findPetsByTags](#findpetsbytags) - Finds Pets by tags
* [getPetById](#getpetbyid) - Find pet by ID
* [deletePet](#deletepet) - Deletes a pet
* [uploadFile](#uploadfile) - uploads an image

## updatePet
## dsfsdff

Update an existing pet by Id

Expand All @@ -32,7 +32,7 @@ const petstore = new Petstore({
});

async function run() {
const result = await petstore.pet.updatePet({
const result = await petstore.pet.dsfsdff({
id: 10,
name: "doggie",
category: {
Expand All @@ -42,6 +42,7 @@ async function run() {
photoUrls: [
"<value>",
"<value>",
"<value>",
],
});

Expand All @@ -58,7 +59,7 @@ The standalone function version of this method:

```typescript
import { PetstoreCore } from "ryan-simple-test-act/core.js";
import { petUpdatePet } from "ryan-simple-test-act/funcs/petUpdatePet.js";
import { petDsfsdff } from "ryan-simple-test-act/funcs/petDsfsdff.js";

// Use `PetstoreCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
Expand All @@ -67,7 +68,7 @@ const petstore = new PetstoreCore({
});

async function run() {
const res = await petUpdatePet(petstore, {
const res = await petDsfsdff(petstore, {
id: 10,
name: "doggie",
category: {
Expand All @@ -77,6 +78,7 @@ async function run() {
photoUrls: [
"<value>",
"<value>",
"<value>",
],
});

Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "ryan-simple-test-act",
"version": "0.3.0",
"version": "0.4.0",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions 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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ryan-simple-test-act",
"version": "0.3.0",
"version": "0.4.0",
"author": "ryan-timothy-albert",
"main": "./index.js",
"sideEffects": false,
Expand Down
Loading

0 comments on commit f795f22

Please sign in to comment.