From cddeb0e3be780d9ef106b2d15ccb143b96052fca Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 22 Oct 2024 00:27:26 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.420.0 --- .speakeasy/gen.lock | 20 +++++---- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 10 ++--- RELEASES.md | 12 +++++- docs/models/components/prices.md | 2 +- .../models/components/productonetimecreate.md | 4 +- .../productpricerecurringfixedcreate.md | 2 +- .../productrecurringcreateprices.md | 6 +-- docs/models/components/productsortproperty.md | 15 +++++++ docs/models/operations/productslistrequest.md | 18 ++++---- jsr.json | 2 +- package-lock.json | 4 +- package.json | 2 +- src/funcs/productsList.ts | 2 + src/lib/config.ts | 6 +-- src/models/components/index.ts | 1 + src/models/components/productsortproperty.ts | 41 +++++++++++++++++++ src/models/operations/productslist.ts | 16 ++++++++ 18 files changed, 126 insertions(+), 39 deletions(-) create mode 100644 docs/models/components/productsortproperty.md create mode 100644 src/models/components/productsortproperty.ts diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 2363662..b878448 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 983150e6-ebc8-43fe-9b18-750461aad344 management: - docChecksum: 9c75e35c4deaf4f580167375d2140a4e + docChecksum: 55c784471708066dc800f92d1ff780b7 docVersion: 0.1.0 - speakeasyVersion: 1.419.0 - generationVersion: 2.438.3 - releaseVersion: 0.13.2 - configChecksum: 7c209f6b2f5ea0b82122d1c472d26f97 + speakeasyVersion: 1.420.0 + generationVersion: 2.438.15 + releaseVersion: 0.13.3 + configChecksum: c69e4eeb974795587bf2c9f864a9fd82 repoURL: https://github.com/polarsource/polar-js.git installationURL: https://github.com/polarsource/polar-js published: true @@ -334,6 +334,7 @@ generatedFiles: - docs/models/components/productpricetype.md - docs/models/components/productrecurringcreate.md - docs/models/components/productrecurringcreateprices.md + - docs/models/components/productsortproperty.md - docs/models/components/productupdate.md - docs/models/components/productupdateprices.md - docs/models/components/properties.md @@ -925,6 +926,7 @@ generatedFiles: - src/models/components/productpricerecurringfreecreate.ts - src/models/components/productpricetype.ts - src/models/components/productrecurringcreate.ts + - src/models/components/productsortproperty.ts - src/models/components/productupdate.ts - src/models/components/reactions.ts - src/models/components/repositoryinput.ts @@ -1972,7 +1974,7 @@ examples: speakeasy-default-checkout-links:list: responses: "200": - application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "metadata": {}, "client_secret": "", "success_url": "https://crooked-overload.name/", "product_price_id": "", "product_price": {"created_at": "2022-04-05T09:49:38.010Z", "modified_at": "2022-03-17T01:57:00.187Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "year"}, "url": "https://acidic-avalanche.info"}, {"created_at": "2023-06-17T08:36:51.636Z", "modified_at": "2022-03-22T06:10:55.267Z", "id": "", "metadata": {"key": "", "key1": "", "key2": ""}, "client_secret": "", "success_url": "https://ugly-jungle.com", "product_price_id": "", "product_price": {"created_at": "2022-01-21T00:48:05.986Z", "modified_at": "2024-09-10T07:49:25.657Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "year"}, "url": "https://blue-technologist.com/"}, {"created_at": "2023-05-20T11:06:26.987Z", "modified_at": "2023-04-12T03:59:08.538Z", "id": "", "metadata": {"key": ""}, "client_secret": "", "success_url": "https://careless-lid.org/", "product_price_id": "", "product_price": {"created_at": "2022-12-03T21:35:05.453Z", "modified_at": "2023-03-06T16:40:09.484Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "month"}, "url": "https://animated-ostrich.org"}], "pagination": {"total_count": 918561, "max_page": 84189}} + application/json: {"items": [{"created_at": "2023-08-23T19:26:20.850Z", "modified_at": "2024-01-14T10:26:00.433Z", "id": "", "metadata": {}, "client_secret": "", "success_url": "https://crooked-overload.name/", "product_price_id": "", "product_price": {"created_at": "2024-01-14T10:26:00.433Z", "modified_at": "2022-07-14T18:23:27.528Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 152837, "maximum_amount": 635532, "preset_amount": 639387}, "url": "https://acidic-avalanche.info"}, {"created_at": "2023-06-17T08:36:51.636Z", "modified_at": "2022-03-22T06:10:55.267Z", "id": "", "metadata": {"key": "", "key1": "", "key2": ""}, "client_secret": "", "success_url": "https://ugly-jungle.com", "product_price_id": "", "product_price": {"created_at": "2022-04-05T09:49:38.010Z", "modified_at": "2022-03-17T01:57:00.187Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "year"}, "url": "https://blue-technologist.com/"}, {"created_at": "2023-05-20T11:06:26.987Z", "modified_at": "2023-04-12T03:59:08.538Z", "id": "", "metadata": {"key": ""}, "client_secret": "", "success_url": "https://careless-lid.org/", "product_price_id": "", "product_price": {"created_at": "2022-03-01T20:22:54.911Z", "modified_at": "2023-02-08T01:09:52.088Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 73227}, "url": "https://animated-ostrich.org"}], "pagination": {"total_count": 918561, "max_page": 84189}} "422": {} checkout-links:create: speakeasy-default-checkout-links:create: @@ -1980,7 +1982,7 @@ examples: application/json: {"product_price_id": ""} responses: "201": - application/json: {"created_at": "2023-06-18T07:14:55.338Z", "modified_at": "2023-12-01T17:06:07.804Z", "id": "", "metadata": {"key": ""}, "client_secret": "", "success_url": "https://black-and-white-secrecy.org/", "product_price_id": "", "product_price": {"created_at": "2022-04-09T14:25:29.356Z", "modified_at": "2024-05-18T17:03:53.906Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 586220, "recurring_interval": "year"}, "url": "https://harmful-disposer.com"} + application/json: {"created_at": "2023-06-18T07:14:55.338Z", "modified_at": "2023-12-01T17:06:07.804Z", "id": "", "metadata": {"key": ""}, "client_secret": "", "success_url": "https://black-and-white-secrecy.org/", "product_price_id": "", "product_price": {"created_at": "2023-04-03T12:48:32.253Z", "modified_at": "2022-05-28T06:20:22.766Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 796474, "maximum_amount": 951062, "preset_amount": 86, "recurring_interval": "month"}, "url": "https://harmful-disposer.com"} "422": {} checkout-links:get: speakeasy-default-checkout-links:get: @@ -1989,7 +1991,7 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "metadata": {"key": "", "key1": ""}, "client_secret": "", "success_url": "https://willing-impostor.info", "product_price_id": "", "product_price": {"created_at": "2024-10-24T02:41:21.259Z", "modified_at": "2023-04-26T04:53:50.189Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 78888, "recurring_interval": "month"}, "url": "https://burdensome-marketplace.net/"} + application/json: {"created_at": "2024-02-07T13:54:48.821Z", "modified_at": "2023-09-05T11:33:52.011Z", "id": "", "metadata": {"key": "", "key1": ""}, "client_secret": "", "success_url": "https://willing-impostor.info", "product_price_id": "", "product_price": {"created_at": "2023-08-20T11:11:04.610Z", "modified_at": "2023-07-26T06:33:15.810Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 458049, "maximum_amount": 450824, "preset_amount": 262795}, "url": "https://burdensome-marketplace.net/"} "404": application/json: {"detail": ""} "422": {} @@ -2000,7 +2002,7 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2024-07-28T19:04:48.565Z", "modified_at": "2023-10-17T10:52:42.015Z", "id": "", "metadata": {"key": ""}, "client_secret": "", "success_url": "https://powerless-juggernaut.org", "product_price_id": "", "product_price": {"created_at": "2023-05-05T18:16:40.936Z", "modified_at": "2022-12-08T09:52:54.805Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "month"}, "url": "https://uniform-euphonium.info"} + application/json: {"created_at": "2024-07-28T19:04:48.565Z", "modified_at": "2023-10-17T10:52:42.015Z", "id": "", "metadata": {"key": ""}, "client_secret": "", "success_url": "https://powerless-juggernaut.org", "product_price_id": "", "product_price": {"created_at": "2023-01-13T16:52:57.274Z", "modified_at": "2024-12-22T15:27:45.882Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 488852, "maximum_amount": 984008, "preset_amount": 54062}, "url": "https://uniform-euphonium.info"} "404": application/json: {"detail": ""} "422": {} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 801da55..64f7937 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -15,7 +15,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true typescript: - version: 0.13.2 + version: 0.13.3 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 25943af..4fac569 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.419.0 +speakeasyVersion: 1.420.0 sources: Polar-OAS: sourceNamespace: polar-oas - sourceRevisionDigest: sha256:11d104b8badf78c97e402074e8410736da2ade4da62bc2b6b5d6fc4fa2c6f749 - sourceBlobDigest: sha256:f08236b46e40d4b60554aac287a0268ce101aeefda19b36c22f9fdfde9068091 + sourceRevisionDigest: sha256:a53271a526352407a56a330114f34000ed294192c2282469a0ce080e6b034d0f + sourceBlobDigest: sha256:7d0dddbc1b652f122a0fdfe0e312a72cade0d322590a5bb99e6dda789c61c5eb tags: - latest - main @@ -11,8 +11,8 @@ targets: polar: source: Polar-OAS sourceNamespace: polar-oas - sourceRevisionDigest: sha256:11d104b8badf78c97e402074e8410736da2ade4da62bc2b6b5d6fc4fa2c6f749 - sourceBlobDigest: sha256:f08236b46e40d4b60554aac287a0268ce101aeefda19b36c22f9fdfde9068091 + sourceRevisionDigest: sha256:a53271a526352407a56a330114f34000ed294192c2282469a0ce080e6b034d0f + sourceBlobDigest: sha256:7d0dddbc1b652f122a0fdfe0e312a72cade0d322590a5bb99e6dda789c61c5eb workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index dbda818..3d9b512 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -138,4 +138,14 @@ Based on: ### Generated - [typescript v0.13.2] . ### Releases -- [NPM v0.13.2] https://www.npmjs.com/package/@polar-sh/sdk/v/0.13.2 - . \ No newline at end of file +- [NPM v0.13.2] https://www.npmjs.com/package/@polar-sh/sdk/v/0.13.2 - . + +## 2024-10-22 00:26:13 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.420.0 (2.438.15) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.13.3] . +### Releases +- [NPM v0.13.3] https://www.npmjs.com/package/@polar-sh/sdk/v/0.13.3 - . \ No newline at end of file diff --git a/docs/models/components/prices.md b/docs/models/components/prices.md index 211f570..26fda57 100644 --- a/docs/models/components/prices.md +++ b/docs/models/components/prices.md @@ -7,7 +7,7 @@ ```typescript const value: components.ProductPriceOneTimeFixedCreate = { - priceAmount: 150525, + priceAmount: 85413, }; ``` diff --git a/docs/models/components/productonetimecreate.md b/docs/models/components/productonetimecreate.md index 10f09a5..877db4f 100644 --- a/docs/models/components/productonetimecreate.md +++ b/docs/models/components/productonetimecreate.md @@ -10,9 +10,7 @@ import { ProductOneTimeCreate } from "@polar-sh/sdk/models/components"; let value: ProductOneTimeCreate = { name: "", prices: [ - { - priceAmount: 526773, - }, + {}, ], }; ``` diff --git a/docs/models/components/productpricerecurringfixedcreate.md b/docs/models/components/productpricerecurringfixedcreate.md index ded79fe..4b2c95d 100644 --- a/docs/models/components/productpricerecurringfixedcreate.md +++ b/docs/models/components/productpricerecurringfixedcreate.md @@ -8,7 +8,7 @@ Schema to create a recurring product price, i.e. a subscription. import { ProductPriceRecurringFixedCreate } from "@polar-sh/sdk/models/components"; let value: ProductPriceRecurringFixedCreate = { - priceAmount: 524212, + priceAmount: 475876, recurringInterval: "month", }; ``` diff --git a/docs/models/components/productrecurringcreateprices.md b/docs/models/components/productrecurringcreateprices.md index 1e519d2..8195cac 100644 --- a/docs/models/components/productrecurringcreateprices.md +++ b/docs/models/components/productrecurringcreateprices.md @@ -10,8 +10,8 @@ List of available prices for this product. ```typescript const value: components.ProductPriceRecurringFixedCreate[] = [ { - priceAmount: 858165, - recurringInterval: "year", + priceAmount: 778968, + recurringInterval: "month", }, ]; ``` @@ -21,7 +21,7 @@ const value: components.ProductPriceRecurringFixedCreate[] = [ ```typescript const value: components.ProductPriceRecurringFreeCreate[] = [ { - recurringInterval: "month", + recurringInterval: "year", }, ]; ``` diff --git a/docs/models/components/productsortproperty.md b/docs/models/components/productsortproperty.md new file mode 100644 index 0000000..1bb3b3c --- /dev/null +++ b/docs/models/components/productsortproperty.md @@ -0,0 +1,15 @@ +# ProductSortProperty + +## Example Usage + +```typescript +import { ProductSortProperty } from "@polar-sh/sdk/models/components"; + +let value: ProductSortProperty = "price_amount"; +``` + +## Values + +```typescript +"created_at" | "-created_at" | "name" | "-name" | "price_type" | "-price_type" | "price_amount_type" | "-price_amount_type" | "price_amount" | "-price_amount" +``` \ No newline at end of file diff --git a/docs/models/operations/productslistrequest.md b/docs/models/operations/productslistrequest.md index 960c731..845a5f0 100644 --- a/docs/models/operations/productslistrequest.md +++ b/docs/models/operations/productslistrequest.md @@ -12,11 +12,13 @@ let value: ProductsListRequest = { ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `organizationId` | *operations.ProductsListQueryParamOrganizationIDFilter* | :heavy_check_mark: | Filter by organization ID. | -| `isArchived` | *boolean* | :heavy_minus_sign: | Filter on archived products. | -| `isRecurring` | *boolean* | :heavy_minus_sign: | Filter on recurring products. If `true`, only subscriptions tiers are returned. If `false`, only one-time purchase products are returned. | -| `benefitId` | *operations.QueryParamBenefitIDFilter* | :heavy_minus_sign: | Filter products granting specific benefit. | -| `page` | *number* | :heavy_minus_sign: | Page number, defaults to 1. | -| `limit` | *number* | :heavy_minus_sign: | Size of a page, defaults to 10. Maximum is 100. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `organizationId` | *operations.ProductsListQueryParamOrganizationIDFilter* | :heavy_check_mark: | Filter by organization ID. | +| `query` | *string* | :heavy_minus_sign: | Filter by product name. | +| `isArchived` | *boolean* | :heavy_minus_sign: | Filter on archived products. | +| `isRecurring` | *boolean* | :heavy_minus_sign: | Filter on recurring products. If `true`, only subscriptions tiers are returned. If `false`, only one-time purchase products are returned. | +| `benefitId` | *operations.QueryParamBenefitIDFilter* | :heavy_minus_sign: | Filter products granting specific benefit. | +| `page` | *number* | :heavy_minus_sign: | Page number, defaults to 1. | +| `limit` | *number* | :heavy_minus_sign: | Size of a page, defaults to 10. Maximum is 100. | +| `sorting` | [components.ProductSortProperty](../../models/components/productsortproperty.md)[] | :heavy_minus_sign: | Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order. | \ No newline at end of file diff --git a/jsr.json b/jsr.json index 151a9a1..7837613 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@polar-sh/sdk", - "version": "0.13.2", + "version": "0.13.3", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 225216b..d803bcd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@polar-sh/sdk", - "version": "0.13.2", + "version": "0.13.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@polar-sh/sdk", - "version": "0.13.2", + "version": "0.13.3", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", diff --git a/package.json b/package.json index c2288d4..25b2a47 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@polar-sh/sdk", - "version": "0.13.2", + "version": "0.13.3", "author": "Speakeasy", "main": "./index.js", "sideEffects": false, diff --git a/src/funcs/productsList.ts b/src/funcs/productsList.ts index c0a36b1..0f37b63 100644 --- a/src/funcs/productsList.ts +++ b/src/funcs/productsList.ts @@ -74,6 +74,8 @@ export async function productsList( "limit": payload.limit, "organization_id": payload.organization_id, "page": payload.page, + "query": payload.query, + "sorting": payload.sorting, }); const headers = new Headers({ diff --git a/src/lib/config.ts b/src/lib/config.ts index 212677e..aa5f204 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -60,7 +60,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.1.0", - sdkVersion: "0.13.2", - genVersion: "2.438.3", - userAgent: "speakeasy-sdk/typescript 0.13.2 2.438.3 0.1.0 @polar-sh/sdk", + sdkVersion: "0.13.3", + genVersion: "2.438.15", + userAgent: "speakeasy-sdk/typescript 0.13.3 2.438.15 0.1.0 @polar-sh/sdk", } as const; diff --git a/src/models/components/index.ts b/src/models/components/index.ts index 356bd14..eb237d5 100644 --- a/src/models/components/index.ts +++ b/src/models/components/index.ts @@ -201,6 +201,7 @@ export * from "./productpricerecurringfree.js"; export * from "./productpricerecurringfreecreate.js"; export * from "./productpricetype.js"; export * from "./productrecurringcreate.js"; +export * from "./productsortproperty.js"; export * from "./productupdate.js"; export * from "./reactions.js"; export * from "./repositoryinput.js"; diff --git a/src/models/components/productsortproperty.ts b/src/models/components/productsortproperty.ts new file mode 100644 index 0000000..532c57f --- /dev/null +++ b/src/models/components/productsortproperty.ts @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { ClosedEnum } from "../../types/enums.js"; + +export const ProductSortProperty = { + CreatedAt: "created_at", + MinusCreatedAt: "-created_at", + Name: "name", + MinusName: "-name", + PriceType: "price_type", + MinusPriceType: "-price_type", + PriceAmountType: "price_amount_type", + MinusPriceAmountType: "-price_amount_type", + PriceAmount: "price_amount", + MinusPriceAmount: "-price_amount", +} as const; +export type ProductSortProperty = ClosedEnum; + +/** @internal */ +export const ProductSortProperty$inboundSchema: z.ZodNativeEnum< + typeof ProductSortProperty +> = z.nativeEnum(ProductSortProperty); + +/** @internal */ +export const ProductSortProperty$outboundSchema: z.ZodNativeEnum< + typeof ProductSortProperty +> = ProductSortProperty$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ProductSortProperty$ { + /** @deprecated use `ProductSortProperty$inboundSchema` instead. */ + export const inboundSchema = ProductSortProperty$inboundSchema; + /** @deprecated use `ProductSortProperty$outboundSchema` instead. */ + export const outboundSchema = ProductSortProperty$outboundSchema; +} diff --git a/src/models/operations/productslist.ts b/src/models/operations/productslist.ts index e8df9a8..2301c11 100644 --- a/src/models/operations/productslist.ts +++ b/src/models/operations/productslist.ts @@ -21,6 +21,10 @@ export type ProductsListRequest = { * Filter by organization ID. */ organizationId: string | Array; + /** + * Filter by product name. + */ + query?: string | null | undefined; /** * Filter on archived products. */ @@ -41,6 +45,10 @@ export type ProductsListRequest = { * Size of a page, defaults to 10. Maximum is 100. */ limit?: number | undefined; + /** + * Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order. + */ + sorting?: Array | null | undefined; }; export type ProductsListResponse = { @@ -117,11 +125,14 @@ export const ProductsListRequest$inboundSchema: z.ZodType< unknown > = z.object({ organization_id: z.union([z.string(), z.array(z.string())]), + query: z.nullable(z.string()).optional(), is_archived: z.nullable(z.boolean()).optional(), is_recurring: z.nullable(z.boolean()).optional(), benefit_id: z.nullable(z.union([z.string(), z.array(z.string())])).optional(), page: z.number().int().default(1), limit: z.number().int().default(10), + sorting: z.nullable(z.array(components.ProductSortProperty$inboundSchema)) + .optional(), }).transform((v) => { return remap$(v, { "organization_id": "organizationId", @@ -134,11 +145,13 @@ export const ProductsListRequest$inboundSchema: z.ZodType< /** @internal */ export type ProductsListRequest$Outbound = { organization_id: string | Array; + query?: string | null | undefined; is_archived?: boolean | null | undefined; is_recurring?: boolean | null | undefined; benefit_id?: string | Array | null | undefined; page: number; limit: number; + sorting?: Array | null | undefined; }; /** @internal */ @@ -148,11 +161,14 @@ export const ProductsListRequest$outboundSchema: z.ZodType< ProductsListRequest > = z.object({ organizationId: z.union([z.string(), z.array(z.string())]), + query: z.nullable(z.string()).optional(), isArchived: z.nullable(z.boolean()).optional(), isRecurring: z.nullable(z.boolean()).optional(), benefitId: z.nullable(z.union([z.string(), z.array(z.string())])).optional(), page: z.number().int().default(1), limit: z.number().int().default(10), + sorting: z.nullable(z.array(components.ProductSortProperty$outboundSchema)) + .optional(), }).transform((v) => { return remap$(v, { organizationId: "organization_id",