Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.453.8
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot authored and frankie567 committed Dec 10, 2024
1 parent 03a3145 commit b793a7f
Show file tree
Hide file tree
Showing 428 changed files with 3,660 additions and 9,469 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/react-query
/__tests__
/models
/models/errors
Expand Down
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
**/*
!/FUNCTIONS.md
!/RUNTIMES.md
!/REACT_QUERY.md
!/**/*.ts
!/**/*.js
!/**/*.map
Expand Down
242 changes: 160 additions & 82 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

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.17.4
version: 0.18.0
additionalDependencies:
dependencies:
standardwebhooks: ^1.0.0
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.448.2
speakeasyVersion: 1.453.8
sources:
Polar-OAS:
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:16fb7d1b5edc47777780bef6125b331a8da1908673a62508b8d4bf195faef4b8
sourceBlobDigest: sha256:ad8b93bb52261c812faaeb35a67601df96e2d194b52535059176d5488101e192
sourceRevisionDigest: sha256:437b1239e8f81495c940e3330207c4b8cdc74a8422690aabc5d4885627f7b62c
sourceBlobDigest: sha256:615278c4cec988d0ee67769a6dcbed439fd0d7308bba4c93d07fe55275a995fe
tags:
- latest
- speakeasy-sdk-regen-1733135864
- speakeasy-sdk-regen-1733790537
- 0.1.0
targets:
polar:
source: Polar-OAS
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:16fb7d1b5edc47777780bef6125b331a8da1908673a62508b8d4bf195faef4b8
sourceBlobDigest: sha256:ad8b93bb52261c812faaeb35a67601df96e2d194b52535059176d5488101e192
sourceRevisionDigest: sha256:437b1239e8f81495c940e3330207c4b8cdc74a8422690aabc5d4885627f7b62c
sourceBlobDigest: sha256:615278c4cec988d0ee67769a6dcbed439fd0d7308bba4c93d07fe55275a995fe
codeSamplesNamespace: polar-oas-code-samples
codeSamplesRevisionDigest: sha256:ff1b71de064fe3b9b1cd23d6efeeadf98e4b56e3242df9c01c60a966bef410a1
codeSamplesRevisionDigest: sha256:968c7411e857388510a1375655911b69303c791a75f0a6bfda9c180187525c55
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
211 changes: 181 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,189 @@ For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).
```typescript
import { Polar } from "@polar-sh/sdk";

const polar = new Polar({
accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
});
const polar = new Polar();

async function run() {
const result = await polar.users.benefits.list({});
const result = await polar.endpointcheckoutCreatedPost({
data: {
createdAt: new Date("2024-11-12T14:26:42.882Z"),
modifiedAt: new Date("2023-05-28T05:08:06.235Z"),
id: "<value>",
status: "failed",
clientSecret: "<value>",
url: "https://heavy-beret.com/",
expiresAt: new Date("2022-02-25T02:26:48.460Z"),
successUrl: "https://sardonic-final.info/",
embedOrigin: "<value>",
amount: 962818,
taxAmount: 6400,
currency: "Yen",
subtotalAmount: 648726,
totalAmount: 210702,
productId: "<value>",
productPriceId: "<value>",
discountId: "<value>",
allowDiscountCodes: true,
isDiscountApplicable: false,
isFreeProductPrice: false,
isPaymentRequired: false,
isPaymentSetupRequired: false,
isPaymentFormRequired: false,
customerId: "<value>",
customerName: "<value>",
customerEmail: "[email protected]",
customerIpAddress: "<value>",
customerBillingAddress: {
country: "South Africa",
},
customerTaxId: "<id>",
paymentProcessorMetadata: {},
metadata: {
"key": 18677,
"key1": 95370,
},
product: {
createdAt: new Date("2022-04-02T00:05:42.586Z"),
modifiedAt: new Date("2023-12-16T03:02:38.803Z"),
id: "<value>",
name: "<value>",
description:
"for embarrassment untidy long-term near honestly separate yet",
isRecurring: true,
isArchived: false,
organizationId: "<value>",
prices: [
{
createdAt: new Date("2024-11-19T15:59:15.588Z"),
modifiedAt: new Date("2022-11-17T00:11:23.972Z"),
id: "<value>",
isArchived: false,
productId: "<value>",
priceCurrency: "<value>",
minimumAmount: 363560,
maximumAmount: 75876,
presetAmount: 82334,
},
],
benefits: [
{
createdAt: new Date("2023-08-22T00:47:02.059Z"),
modifiedAt: new Date("2023-06-04T10:32:44.101Z"),
id: "<value>",
type: "license_keys",
description: "within jacket unless",
selectable: false,
deletable: false,
organizationId: "<value>",
},
],
medias: [
{
id: "<value>",
organizationId: "<value>",
name: "<value>",
path: "/private/var",
mimeType: "<value>",
size: 245189,
storageVersion: "<value>",
checksumEtag: "<value>",
checksumSha256Base64: "<value>",
checksumSha256Hex: "<value>",
lastModifiedAt: new Date("2022-11-03T15:00:03.276Z"),
version: "<value>",
isUploaded: false,
createdAt: new Date("2024-06-07T13:47:02.365Z"),
sizeReadable: "<value>",
publicUrl: "https://webbed-experience.name/",
},
],
},
productPrice: {
createdAt: new Date("2024-02-15T09:22:19.644Z"),
modifiedAt: new Date("2022-12-28T20:59:29.904Z"),
id: "<value>",
isArchived: false,
productId: "<value>",
priceCurrency: "<value>",
minimumAmount: 417896,
maximumAmount: 962818,
presetAmount: 6400,
recurringInterval: "month",
},
discount: {
duration: "repeating",
type: "fixed",
basisPoints: 341163,
id: "<value>",
name: "<value>",
code: "<value>",
},
subscriptionId: "<value>",
attachedCustomFields: [
{
customFieldId: "<value>",
customField: {
createdAt: new Date("2022-08-19T22:18:44.316Z"),
modifiedAt: new Date("2023-04-29T23:39:10.699Z"),
id: "<value>",
metadata: {
"key": false,
},
slug: "<value>",
name: "<value>",
organizationId: "<value>",
properties: {
options: [
{
value: "<value>",
label: "<value>",
},
],
},
},
order: 996863,
required: false,
},
{
customFieldId: "<value>",
customField: {
createdAt: new Date("2023-07-03T09:46:29.338Z"),
modifiedAt: new Date("2024-01-25T18:08:49.597Z"),
id: "<value>",
metadata: {
"key": false,
},
slug: "<value>",
name: "<value>",
organizationId: "<value>",
properties: {},
},
order: 72589,
required: true,
},
{
customFieldId: "<value>",
customField: {
createdAt: new Date("2024-07-31T13:25:31.669Z"),
modifiedAt: new Date("2022-11-12T09:40:10.044Z"),
id: "<value>",
metadata: {
"key": "<value>",
},
slug: "<value>",
name: "<value>",
organizationId: "<value>",
properties: {},
},
order: 161325,
required: true,
},
],
},
});

for await (const page of result) {
// Handle the page
console.log(page);
}
// Handle the result
console.log(result);
}

run();
Expand Down Expand Up @@ -144,18 +316,6 @@ app.post("/webhook", express.raw({ type: "application/json" }), (req: Request, r
* [list](docs/sdks/advertisements/README.md#list) - List Campaigns
* [get](docs/sdks/advertisements/README.md#get) - Get Campaign

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

* [list](docs/sdks/articles/README.md#list) - List Articles
* [create](docs/sdks/articles/README.md#create) - Create Article
* [export](docs/sdks/articles/README.md#export) - Export Articles
* [get](docs/sdks/articles/README.md#get) - Get Article
* [update](docs/sdks/articles/README.md#update) - Update Article
* [delete](docs/sdks/articles/README.md#delete) - Delete Article
* [receivers](docs/sdks/articles/README.md#receivers) - Get Article Receivers Count
* [preview](docs/sdks/articles/README.md#preview) - Send Article Preview
* [send](docs/sdks/articles/README.md#send) - Send Article

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

* [list](docs/sdks/benefits/README.md#list) - List Benefits
Expand All @@ -175,7 +335,7 @@ app.post("/webhook", express.raw({ type: "application/json" }), (req: Request, r

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

* [~~create~~](docs/sdks/checkouts/README.md#create) - Create Checkout :warning: **Deprecated** Use `create` instead.
* [~~create~~](docs/sdks/checkouts/README.md#create) - Create Checkout :warning: **Deprecated** Use [create](docs/sdks/custom/README.md#create) instead.
* [~~get~~](docs/sdks/checkouts/README.md#get) - Get Checkout :warning: **Deprecated**

#### [checkouts.custom](docs/sdks/custom/README.md)
Expand Down Expand Up @@ -340,15 +500,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).

- [`advertisementsGet`](docs/sdks/advertisements/README.md#get) - Get Campaign
- [`advertisementsList`](docs/sdks/advertisements/README.md#list) - List Campaigns
- [`articlesCreate`](docs/sdks/articles/README.md#create) - Create Article
- [`articlesDelete`](docs/sdks/articles/README.md#delete) - Delete Article
- [`articlesExport`](docs/sdks/articles/README.md#export) - Export Articles
- [`articlesGet`](docs/sdks/articles/README.md#get) - Get Article
- [`articlesList`](docs/sdks/articles/README.md#list) - List Articles
- [`articlesPreview`](docs/sdks/articles/README.md#preview) - Send Article Preview
- [`articlesReceivers`](docs/sdks/articles/README.md#receivers) - Get Article Receivers Count
- [`articlesSend`](docs/sdks/articles/README.md#send) - Send Article
- [`articlesUpdate`](docs/sdks/articles/README.md#update) - Update Article
- [`benefitsCreate`](docs/sdks/benefits/README.md#create) - Create Benefit
- [`benefitsDelete`](docs/sdks/benefits/README.md#delete) - Delete Benefit
- [`benefitsGet`](docs/sdks/benefits/README.md#get) - Get Benefit
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,4 +278,14 @@ Based on:
### Generated
- [typescript v0.17.4] .
### Releases
- [NPM v0.17.4] https://www.npmjs.com/package/@polar-sh/sdk/v/0.17.4 - .
- [NPM v0.17.4] https://www.npmjs.com/package/@polar-sh/sdk/v/0.17.4 - .

## 2024-12-10 00:28:53
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.453.8 (2.474.15) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.18.0] .
### Releases
- [NPM v0.18.0] https://www.npmjs.com/package/@polar-sh/sdk/v/0.18.0 - .
Loading

0 comments on commit b793a7f

Please sign in to comment.