Skip to content

Commit

Permalink
Merge pull request #1 from panoratech/speakeasy-sdk-regen-1721888692
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.1.0
  • Loading branch information
naelob authored Jul 25, 2024
2 parents 350a8df + 4dfb3b9 commit 1229377
Show file tree
Hide file tree
Showing 652 changed files with 41,330 additions and 39,143 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/esm
/dist
/.tshy
/.tshy-*
/models
/models/errors
/types
Expand Down
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@

/.eslintrc.js
/cjs
/.tshy
/.tshy-*
217 changes: 111 additions & 106 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
typescript:
version: 0.0.1
version: 0.1.0
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand All @@ -33,6 +33,7 @@ typescript:
inputModelSuffix: input
maxMethodParams: 0
methodArguments: require-security-and-request
moduleFormat: commonjs
outputModelSuffix: output
packageName: '@panora/sdk'
responseFormat: envelope-http
Expand Down
2,603 changes: 0 additions & 2,603 deletions .speakeasy/temp/output_NnUjGiIyrO.yaml

This file was deleted.

1,878 changes: 0 additions & 1,878 deletions .speakeasy/temp/output_ZtktLtxTDo.yaml

This file was deleted.

2,603 changes: 0 additions & 2,603 deletions .speakeasy/temp/output_eVmPlGGctZ.yaml

This file was deleted.

2,603 changes: 0 additions & 2,603 deletions .speakeasy/temp/output_fvxKOYZyEe.yaml

This file was deleted.

2,603 changes: 0 additions & 2,603 deletions .speakeasy/temp/output_tNbmQPvnrG.yaml

This file was deleted.

17 changes: 11 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
speakeasyVersion: 1.312.1
speakeasyVersion: 1.345.4
sources:
panora-open-api-swagger:
sourceNamespace: panora-open-api-swagger
sourceRevisionDigest: sha256:b9f137773d782f0a2d6cb291328883321b832af65853ecbcfa4d91ca29b9c7c3
sourceBlobDigest: sha256:6ed6491b448c3f05d4836b9956f9e590ac719445aee7197ac143618f4f55b94b
sourceRevisionDigest: sha256:894b7cceb58624301f7d7ca1ab6a8993d3c06fffea031804fcdca248c859a387
sourceBlobDigest: sha256:a4bcf6678cf4d234dd01f12982b30dbbcd8fd33ace1f7f797b77e9f79fafc52b
tags:
- latest
- main
targets:
my-first-target:
source: panora-open-api-swagger
sourceNamespace: panora-open-api-swagger
sourceRevisionDigest: sha256:b9f137773d782f0a2d6cb291328883321b832af65853ecbcfa4d91ca29b9c7c3
sourceBlobDigest: sha256:6ed6491b448c3f05d4836b9956f9e590ac719445aee7197ac143618f4f55b94b
outLocation: /Users/nael/Desktop/typescript-sdk/panora-typescript
sourceRevisionDigest: sha256:894b7cceb58624301f7d7ca1ab6a8993d3c06fffea031804fcdca248c859a387
sourceBlobDigest: sha256:a4bcf6678cf4d234dd01f12982b30dbbcd8fd33ace1f7f797b77e9f79fafc52b
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
sources:
panora-open-api-swagger:
inputs:
Expand All @@ -25,3 +27,6 @@ workflow:
my-first-target:
target: typescript
source: panora-open-api-swagger
publish:
npm:
token: $npm_token
1 change: 1 addition & 0 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
workflowVersion: 1.0.0
speakeasyVersion: latest
sources:
panora-open-api-swagger:
inputs:
Expand Down
26 changes: 26 additions & 0 deletions 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
144 changes: 104 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@ It has been generated successfully based on your OpenAPI spec. However, it is no
### NPM

```bash
npm add <UNSET>
npm add @panora/sdk
```

### PNPM

```bash
pnpm add <UNSET>
pnpm add @panora/sdk
```

### Bun

```bash
bun add <UNSET>
bun add @panora/sdk
```

### Yarn

```bash
yarn add <UNSET> zod
yarn add @panora/sdk zod

# Note that Yarn does not install peer dependencies automatically. You will need
# to install zod as shown above.
Expand All @@ -66,7 +66,7 @@ const panora = new Panora({
});

async function run() {
const result = await panora.appControllerHello();
const result = await panora.home();

// Handle the result
console.log(result);
Expand All @@ -82,16 +82,15 @@ run();

### [Panora SDK](docs/sdks/panora/README.md)

* [appControllerHello](docs/sdks/panora/README.md#appcontrollerhello)
* [getHealth](docs/sdks/panora/README.md#gethealth)
* [getHelloProtected](docs/sdks/panora/README.md#gethelloprotected)
* [home](docs/sdks/panora/README.md#home)
* [health](docs/sdks/panora/README.md#health)

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

* [list](docs/sdks/webhook/README.md#list) - List webhooks
* [create](docs/sdks/webhook/README.md#create) - Add webhook metadata
* [deleteWebhook](docs/sdks/webhook/README.md#deletewebhook) - Delete Webhook
* [updateWebhookStatus](docs/sdks/webhook/README.md#updatewebhookstatus) - Update webhook status
* [delete](docs/sdks/webhook/README.md#delete) - Delete Webhook
* [updateStatus](docs/sdks/webhook/README.md#updatestatus) - Update webhook status
* [verifyEvent](docs/sdks/webhook/README.md#verifyevent) - Verify payload sgnature of the webhook


Expand Down Expand Up @@ -145,7 +144,7 @@ run();

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

* [getSyncStatus](docs/sdks/sync/README.md#getsyncstatus) - Retrieve sync status of a certain vertical
* [status](docs/sdks/sync/README.md#status) - Retrieve sync status of a certain vertical
* [resync](docs/sdks/sync/README.md#resync) - Resync common objects across a vertical


Expand All @@ -158,8 +157,8 @@ run();
### [crm.contacts](docs/sdks/panoracontacts/README.md)

* [list](docs/sdks/panoracontacts/README.md#list) - List CRM Contacts
* [addCrmContact](docs/sdks/panoracontacts/README.md#addcrmcontact) - Create CRM Contact
* [getCrmContact](docs/sdks/panoracontacts/README.md#getcrmcontact) - Retrieve a CRM Contact
* [create](docs/sdks/panoracontacts/README.md#create) - Create CRM Contact
* [retrieve](docs/sdks/panoracontacts/README.md#retrieve) - Retrieve a CRM Contact

### [crm.deals](docs/sdks/deals/README.md)

Expand Down Expand Up @@ -305,41 +304,41 @@ run();

### [marketingautomation.contact](docs/sdks/contact/README.md)

* [getMarketingAutomationContacts](docs/sdks/contact/README.md#getmarketingautomationcontacts) - List a batch of Contacts
* [addMarketingAutomationContact](docs/sdks/contact/README.md#addmarketingautomationcontact) - Create a Contact
* [getMarketingAutomationContact](docs/sdks/contact/README.md#getmarketingautomationcontact) - Retrieve a Contact
* [list](docs/sdks/contact/README.md#list) - List a batch of Contacts
* [create](docs/sdks/contact/README.md#create) - Create a Contact
* [retrieve](docs/sdks/contact/README.md#retrieve) - Retrieve a Contact

### [marketingautomation.email](docs/sdks/email/README.md)

* [getEmails](docs/sdks/email/README.md#getemails) - List a batch of Emails
* [getEmail](docs/sdks/email/README.md#getemail) - Retrieve a Email
* [list](docs/sdks/email/README.md#list) - List a batch of Emails
* [retrieve](docs/sdks/email/README.md#retrieve) - Retrieve a Email

### [marketingautomation.event](docs/sdks/event/README.md)

* [getMarketingAutomationEvents](docs/sdks/event/README.md#getmarketingautomationevents) - List a batch of Events
* [getEvent](docs/sdks/event/README.md#getevent) - Retrieve a Event
* [list](docs/sdks/event/README.md#list) - List a batch of Events
* [retrieve](docs/sdks/event/README.md#retrieve) - Retrieve a Event

### [marketingautomation.list](docs/sdks/list/README.md)

* [getLists](docs/sdks/list/README.md#getlists) - List a batch of Lists
* [addList](docs/sdks/list/README.md#addlist) - Create a List
* [getList](docs/sdks/list/README.md#getlist) - Retrieve a List
* [list](docs/sdks/list/README.md#list) - List a batch of Lists
* [create](docs/sdks/list/README.md#create) - Create a List
* [retrieve](docs/sdks/list/README.md#retrieve) - Retrieve a List

### [marketingautomation.message](docs/sdks/message/README.md)

* [getMessages](docs/sdks/message/README.md#getmessages) - List a batch of Messages
* [getMessage](docs/sdks/message/README.md#getmessage) - Retrieve a Message
* [list](docs/sdks/message/README.md#list) - List a batch of Messages
* [retrieve](docs/sdks/message/README.md#retrieve) - Retrieve a Message

### [marketingautomation.template](docs/sdks/template/README.md)

* [getTemplates](docs/sdks/template/README.md#gettemplates) - List a batch of Templates
* [addTemplate](docs/sdks/template/README.md#addtemplate) - Create a Template
* [getTemplate](docs/sdks/template/README.md#gettemplate) - Retrieve a Template
* [list](docs/sdks/template/README.md#list) - List a batch of Templates
* [create](docs/sdks/template/README.md#create) - Create a Template
* [retrieve](docs/sdks/template/README.md#retrieve) - Retrieve a Template

### [marketingautomation.user](docs/sdks/user/README.md)

* [getMarketingAutomationUsers](docs/sdks/user/README.md#getmarketingautomationusers) - List a batch of Users
* [getMarketingAutomationUser](docs/sdks/user/README.md#getmarketingautomationuser) - Retrieve a User
* [list](docs/sdks/user/README.md#list) - List a batch of Users
* [retrieve](docs/sdks/user/README.md#retrieve) - Retrieve a User


### [ats.activity](docs/sdks/activity/README.md)
Expand Down Expand Up @@ -368,8 +367,8 @@ run();

### [ats.department](docs/sdks/department/README.md)

* [getDepartments](docs/sdks/department/README.md#getdepartments) - List a batch of Departments
* [getDepartment](docs/sdks/department/README.md#getdepartment) - Retrieve a Department
* [list](docs/sdks/department/README.md#list) - List a batch of Departments
* [retrieve](docs/sdks/department/README.md#retrieve) - Retrieve a Department

### [ats.interview](docs/sdks/interview/README.md)

Expand Down Expand Up @@ -399,8 +398,8 @@ run();

### [ats.rejectreason](docs/sdks/rejectreason/README.md)

* [getRejectReasons](docs/sdks/rejectreason/README.md#getrejectreasons) - List a batch of RejectReasons
* [getRejectReason](docs/sdks/rejectreason/README.md#getrejectreason) - Retrieve a RejectReason
* [list](docs/sdks/rejectreason/README.md#list) - List a batch of RejectReasons
* [retrieve](docs/sdks/rejectreason/README.md#retrieve) - Retrieve a RejectReason

### [ats.scorecard](docs/sdks/scorecard/README.md)

Expand Down Expand Up @@ -556,8 +555,8 @@ run();

### [filestorage.users](docs/sdks/panorafilestorageusers/README.md)

* [getUsers](docs/sdks/panorafilestorageusers/README.md#getusers) - List a batch of Users
* [getUser](docs/sdks/panorafilestorageusers/README.md#getuser) - Retrieve a User
* [list](docs/sdks/panorafilestorageusers/README.md#list) - List a batch of Users
* [retrieve](docs/sdks/panorafilestorageusers/README.md#retrieve) - Retrieve a User
<!-- End Available Resources and Operations [operations] -->

<!-- Start Error Handling [errors] -->
Expand All @@ -583,7 +582,7 @@ const panora = new Panora({
async function run() {
let result;
try {
result = await panora.appControllerHello();
result = await panora.home();
} catch (err) {
switch (true) {
case err instanceof SDKValidationError: {
Expand Down Expand Up @@ -629,7 +628,7 @@ const panora = new Panora({
});

async function run() {
const result = await panora.appControllerHello();
const result = await panora.home();

// Handle the result
console.log(result);
Expand All @@ -653,7 +652,7 @@ const panora = new Panora({
});

async function run() {
const result = await panora.appControllerHello();
const result = await panora.home();

// Handle the result
console.log(result);
Expand Down Expand Up @@ -733,7 +732,7 @@ const panora = new Panora({
});

async function run() {
const result = await panora.appControllerHello();
const result = await panora.home();

// Handle the result
console.log(result);
Expand All @@ -744,6 +743,71 @@ run();
```
<!-- End Authentication [security] -->

<!-- Start Retries [retries] -->
## Retries

Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.

To change the default retry strategy for a single API call, simply provide a retryConfig object to the call:
```typescript
import { Panora } from "@panora/sdk";

const panora = new Panora({
bearer: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
const result = await panora.home({
retries: {
strategy: "backoff",
backoff: {
initialInterval: 1,
maxInterval: 50,
exponent: 1.1,
maxElapsedTime: 100,
},
retryConnectionErrors: false,
},
});

// Handle the result
console.log(result);
}

run();

```

If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization:
```typescript
import { Panora } from "@panora/sdk";

const panora = new Panora({
retryConfig: {
strategy: "backoff",
backoff: {
initialInterval: 1,
maxInterval: 50,
exponent: 1.1,
maxElapsedTime: 100,
},
retryConnectionErrors: false,
},
bearer: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
const result = await panora.home();

// Handle the result
console.log(result);
}

run();

```
<!-- End Retries [retries] -->

<!-- Placeholder for Future Speakeasy SDK Sections -->

# Development
Expand Down
11 changes: 11 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@


## 2024-07-25 06:24:50
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.345.4 (2.378.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.1.0] .
### Releases
- [NPM v0.1.0] https://www.npmjs.com/package/@panora/sdk/v/0.1.0 - .
Loading

0 comments on commit 1229377

Please sign in to comment.