Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.463.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot authored and frankie567 committed Jan 7, 2025
1 parent cb88bea commit 821ba6b
Show file tree
Hide file tree
Showing 14 changed files with 158 additions and 57 deletions.
39 changes: 20 additions & 19 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.20.1
version: 0.20.2
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.462.2
speakeasyVersion: 1.463.1
sources:
Polar-OAS:
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:607e467c0856266aea8ad0ddd5affb2c5a5abbfb7545aa7683c6a2d0624ff7aa
sourceBlobDigest: sha256:398c9f59267a22778a0c1d81a0af8aba96905725604b19b09ed181396b0b56d3
sourceRevisionDigest: sha256:55ee1d9374a298fcda484dba06760585ab24920edfd149d9d6e33b7c16cdf394
sourceBlobDigest: sha256:722c5521b0cef657dbbbc89b7cb84028771c1d72e4d391e2eee0255d75f5aa9f
tags:
- latest
- speakeasy-sdk-regen-1735950342
- speakeasy-sdk-regen-1736209623
- 0.1.0
targets:
polar:
source: Polar-OAS
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:607e467c0856266aea8ad0ddd5affb2c5a5abbfb7545aa7683c6a2d0624ff7aa
sourceBlobDigest: sha256:398c9f59267a22778a0c1d81a0af8aba96905725604b19b09ed181396b0b56d3
sourceRevisionDigest: sha256:55ee1d9374a298fcda484dba06760585ab24920edfd149d9d6e33b7c16cdf394
sourceBlobDigest: sha256:722c5521b0cef657dbbbc89b7cb84028771c1d72e4d391e2eee0255d75f5aa9f
codeSamplesNamespace: polar-oas-ts-code-samples
codeSamplesRevisionDigest: sha256:abf0eb0704ef28a21d95cee996b4eb314974c6ac6e30aaa19359c94ab632fefe
codeSamplesRevisionDigest: sha256:bc200279c8511b7acf979a931934d50e1088be4bc68e82f04347b9f853ceee59
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,4 +348,14 @@ Based on:
### Generated
- [typescript v0.20.1] .
### Releases
- [NPM v0.20.1] https://www.npmjs.com/package/@polar-sh/sdk/v/0.20.1 - .
- [NPM v0.20.1] https://www.npmjs.com/package/@polar-sh/sdk/v/0.20.1 - .

## 2025-01-07 00:26:57
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.463.1 (2.486.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.20.2] .
### Releases
- [NPM v0.20.2] https://www.npmjs.com/package/@polar-sh/sdk/v/0.20.2 - .
21 changes: 21 additions & 0 deletions docs/models/operations/orderslistqueryparamproductidfilter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# OrdersListQueryParamProductIDFilter

Filter by product ID.


## Supported Types

### `string`

```typescript
const value: string = "<value>";
```

### `string[]`

```typescript
const value: string[] = [
"<value>",
];
```

2 changes: 1 addition & 1 deletion docs/models/operations/orderslistrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let value: OrdersListRequest = {};
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `organizationId` | *operations.OrdersListQueryParamOrganizationIDFilter* | :heavy_minus_sign: | Filter by organization ID. |
| `productId` | *operations.QueryParamProductIDFilter* | :heavy_minus_sign: | Filter by product ID. |
| `productId` | *operations.OrdersListQueryParamProductIDFilter* | :heavy_minus_sign: | Filter by product ID. |
| `productPriceType` | *operations.ProductPriceTypeFilter* | :heavy_minus_sign: | Filter by product price type. `recurring` will return orders corresponding to subscriptions creations or renewals. `one_time` will return orders corresponding to one-time purchases. |
| `discountId` | *operations.QueryParamDiscountIDFilter* | :heavy_minus_sign: | Filter by discount ID. |
| `customerId` | *operations.OrdersListQueryParamCustomerIDFilter* | :heavy_minus_sign: | Filter by customer ID. |
Expand Down
1 change: 1 addition & 0 deletions docs/models/operations/productslistrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ let value: ProductsListRequest = {};

| Field | Type | Required | Description |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id` | *operations.QueryParamProductIDFilter* | :heavy_minus_sign: | Filter by product ID. |
| `organizationId` | *operations.ProductsListQueryParamOrganizationIDFilter* | :heavy_minus_sign: | Filter by organization ID. |
| `query` | *string* | :heavy_minus_sign: | Filter by product name. |
| `isArchived` | *boolean* | :heavy_minus_sign: | Filter on archived products. |
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": "@polar-sh/sdk",
"version": "0.20.1",
"version": "0.20.2",
"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": "@polar-sh/sdk",
"version": "0.20.1",
"version": "0.20.2",
"author": "Speakeasy",
"main": "./index.js",
"sideEffects": false,
Expand Down
1 change: 1 addition & 0 deletions src/funcs/productsList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export async function productsList(

const query = encodeFormQuery({
"benefit_id": payload.benefit_id,
"id": payload.id,
"is_archived": payload.is_archived,
"is_recurring": payload.is_recurring,
"limit": payload.limit,
Expand Down
6 changes: 3 additions & 3 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "0.1.0",
sdkVersion: "0.20.1",
genVersion: "2.486.1",
userAgent: "speakeasy-sdk/typescript 0.20.1 2.486.1 0.1.0 @polar-sh/sdk",
sdkVersion: "0.20.2",
genVersion: "2.486.6",
userAgent: "speakeasy-sdk/typescript 0.20.2 2.486.6 0.1.0 @polar-sh/sdk",
} as const;
49 changes: 28 additions & 21 deletions src/models/operations/orderslist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type OrdersListQueryParamOrganizationIDFilter = string | Array<string>;
/**
* Filter by product ID.
*/
export type QueryParamProductIDFilter = string | Array<string>;
export type OrdersListQueryParamProductIDFilter = string | Array<string>;

/**
* Filter by product price type. `recurring` will return orders corresponding to subscriptions creations or renewals. `one_time` will return orders corresponding to one-time purchases.
Expand Down Expand Up @@ -141,50 +141,57 @@ export function ordersListQueryParamOrganizationIDFilterFromJSON(
}

/** @internal */
export const QueryParamProductIDFilter$inboundSchema: z.ZodType<
QueryParamProductIDFilter,
export const OrdersListQueryParamProductIDFilter$inboundSchema: z.ZodType<
OrdersListQueryParamProductIDFilter,
z.ZodTypeDef,
unknown
> = z.union([z.string(), z.array(z.string())]);

/** @internal */
export type QueryParamProductIDFilter$Outbound = string | Array<string>;
export type OrdersListQueryParamProductIDFilter$Outbound =
| string
| Array<string>;

/** @internal */
export const QueryParamProductIDFilter$outboundSchema: z.ZodType<
QueryParamProductIDFilter$Outbound,
export const OrdersListQueryParamProductIDFilter$outboundSchema: z.ZodType<
OrdersListQueryParamProductIDFilter$Outbound,
z.ZodTypeDef,
QueryParamProductIDFilter
OrdersListQueryParamProductIDFilter
> = z.union([z.string(), z.array(z.string())]);

/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export namespace QueryParamProductIDFilter$ {
/** @deprecated use `QueryParamProductIDFilter$inboundSchema` instead. */
export const inboundSchema = QueryParamProductIDFilter$inboundSchema;
/** @deprecated use `QueryParamProductIDFilter$outboundSchema` instead. */
export const outboundSchema = QueryParamProductIDFilter$outboundSchema;
/** @deprecated use `QueryParamProductIDFilter$Outbound` instead. */
export type Outbound = QueryParamProductIDFilter$Outbound;
export namespace OrdersListQueryParamProductIDFilter$ {
/** @deprecated use `OrdersListQueryParamProductIDFilter$inboundSchema` instead. */
export const inboundSchema =
OrdersListQueryParamProductIDFilter$inboundSchema;
/** @deprecated use `OrdersListQueryParamProductIDFilter$outboundSchema` instead. */
export const outboundSchema =
OrdersListQueryParamProductIDFilter$outboundSchema;
/** @deprecated use `OrdersListQueryParamProductIDFilter$Outbound` instead. */
export type Outbound = OrdersListQueryParamProductIDFilter$Outbound;
}

export function queryParamProductIDFilterToJSON(
queryParamProductIDFilter: QueryParamProductIDFilter,
export function ordersListQueryParamProductIDFilterToJSON(
ordersListQueryParamProductIDFilter: OrdersListQueryParamProductIDFilter,
): string {
return JSON.stringify(
QueryParamProductIDFilter$outboundSchema.parse(queryParamProductIDFilter),
OrdersListQueryParamProductIDFilter$outboundSchema.parse(
ordersListQueryParamProductIDFilter,
),
);
}

export function queryParamProductIDFilterFromJSON(
export function ordersListQueryParamProductIDFilterFromJSON(
jsonString: string,
): SafeParseResult<QueryParamProductIDFilter, SDKValidationError> {
): SafeParseResult<OrdersListQueryParamProductIDFilter, SDKValidationError> {
return safeParse(
jsonString,
(x) => QueryParamProductIDFilter$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'QueryParamProductIDFilter' from JSON`,
(x) =>
OrdersListQueryParamProductIDFilter$inboundSchema.parse(JSON.parse(x)),
`Failed to parse 'OrdersListQueryParamProductIDFilter' from JSON`,
);
}

Expand Down
Loading

0 comments on commit 821ba6b

Please sign in to comment.