From e178ec4302367a1829a5a60d4f05b0bcb6c2083a Mon Sep 17 00:00:00 2001 From: Amadeo Pellicce Date: Fri, 18 Oct 2024 17:43:16 -0700 Subject: [PATCH] new package version --- sdks/sdk-greenhouse/greenhouse.oas.json | 21 +++++++++++++++++++ sdks/sdk-greenhouse/greenhouse.oas.types.d.ts | 4 ++++ sdks/sdk-greenhouse/package.json | 2 +- sdks/sdk-greenhouse/src/greenhouse.oas.ts | 15 +++++++++++++ 4 files changed, 41 insertions(+), 1 deletion(-) diff --git a/sdks/sdk-greenhouse/greenhouse.oas.json b/sdks/sdk-greenhouse/greenhouse.oas.json index f639393..3decbd9 100644 --- a/sdks/sdk-greenhouse/greenhouse.oas.json +++ b/sdks/sdk-greenhouse/greenhouse.oas.json @@ -233,6 +233,27 @@ "description": "Filter openings by status. Can be \"open\", \"closed\", or \"all\". Defaults to \"open\".", "default": "open" } + }, + { + "in": "query", + "name": "per_page", + "description": "Return up to this number of objects per response. Must be an integer between 1 and 50. Defaults to 50.", + "schema": { + "type": "number", + "minimum": 1, + "maximum": 50, + "description": "Return up to this number of objects per response. Must be an integer between 1 and 50. Defaults to 50.", + "default": 50 + } + }, + { + "in": "query", + "name": "page", + "description": "A cursor for use in pagination. Returns the n-th chunk of per_page objects.", + "schema": { + "type": "number", + "description": "A cursor for use in pagination. Returns the n-th chunk of per_page objects." + } } ], "requestBody": { diff --git a/sdks/sdk-greenhouse/greenhouse.oas.types.d.ts b/sdks/sdk-greenhouse/greenhouse.oas.types.d.ts index 3260132..f138e40 100644 --- a/sdks/sdk-greenhouse/greenhouse.oas.types.d.ts +++ b/sdks/sdk-greenhouse/greenhouse.oas.types.d.ts @@ -397,6 +397,10 @@ export interface operations { query?: { /** @description Filter openings by status. Can be "open", "closed", or "all". Defaults to "open". */ status?: string + /** @description Return up to this number of objects per response. Must be an integer between 1 and 50. Defaults to 50. */ + per_page?: number + /** @description A cursor for use in pagination. Returns the n-th chunk of per_page objects. */ + page?: number } path: { /** @description The ID of the job to retrieve openings for */ diff --git a/sdks/sdk-greenhouse/package.json b/sdks/sdk-greenhouse/package.json index f0b2149..2d71d19 100644 --- a/sdks/sdk-greenhouse/package.json +++ b/sdks/sdk-greenhouse/package.json @@ -1,6 +1,6 @@ { "name": "@opensdks/sdk-greenhouse", - "version": "0.0.7", + "version": "0.0.8", "type": "module", "exports": { ".": { diff --git a/sdks/sdk-greenhouse/src/greenhouse.oas.ts b/sdks/sdk-greenhouse/src/greenhouse.oas.ts index 9bd986e..ca9c433 100644 --- a/sdks/sdk-greenhouse/src/greenhouse.oas.ts +++ b/sdks/sdk-greenhouse/src/greenhouse.oas.ts @@ -372,6 +372,21 @@ export const oas: OpenAPISpec = createDocument({ 'Filter openings by status. Can be "open", "closed", or "all". Defaults to "open".', ) .default('open'), + per_page: z + .number() + .min(1) + .max(50) + .optional() + .describe( + 'Return up to this number of objects per response. Must be an integer between 1 and 50. Defaults to 50.', + ) + .default(50), + page: z + .number() + .optional() + .describe( + 'A cursor for use in pagination. Returns the n-th chunk of per_page objects.', + ), }), response: z.array(greenhouseOpening), }),