diff --git a/package-lock.json b/package-lock.json index 5334d5d3..46b743a5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "@seamapi/blueprint": "^0.52.2", "@seamapi/fake-seam-connect": "^1.77.0", "@seamapi/smith": "^0.5.2", - "@seamapi/types": "1.659.0", + "@seamapi/types": "1.662.0", "@swc/core": "^1.11.29", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^22.15.21", @@ -49,7 +49,7 @@ "npm": ">=10.1.0" }, "peerDependencies": { - "@seamapi/types": "^1.659.0" + "@seamapi/types": "^1.662.0" }, "peerDependenciesMeta": { "@seamapi/types": { @@ -1388,9 +1388,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.659.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.659.0.tgz", - "integrity": "sha512-ILCEjjQC4FLeaA+6aORopN9qzDJrGYDPJObdB9qZjF9E4OKWmiyDq3MAwsp2d2qOGR69PPnc7yw+xHmXrkOm0Q==", + "version": "1.662.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.662.0.tgz", + "integrity": "sha512-//iKPQFUNG/l7a9kE9oiVrV80ykfnarOfoZG1vSh3r6DLiW2IwVWKyXQafpw1un8NcvHXPKU8snz6GiMF8zAQQ==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index d38adee1..fdcdbe42 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "npm": ">=10.1.0" }, "peerDependencies": { - "@seamapi/types": "^1.659.0" + "@seamapi/types": "^1.662.0" }, "peerDependenciesMeta": { "@seamapi/types": { @@ -102,7 +102,7 @@ "@seamapi/blueprint": "^0.52.2", "@seamapi/fake-seam-connect": "^1.77.0", "@seamapi/smith": "^0.5.2", - "@seamapi/types": "1.659.0", + "@seamapi/types": "1.662.0", "@swc/core": "^1.11.29", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^22.15.21", diff --git a/src/lib/seam/connect/routes/seam-http-endpoints.ts b/src/lib/seam/connect/routes/seam-http-endpoints.ts index 38e5533c..cf278af5 100644 --- a/src/lib/seam/connect/routes/seam-http-endpoints.ts +++ b/src/lib/seam/connect/routes/seam-http-endpoints.ts @@ -669,6 +669,9 @@ import { type SeamCustomerV1SpacesListOptions, type SeamCustomerV1SpacesListParameters, type SeamCustomerV1SpacesListRequest, + type SeamCustomerV1SpacesListReservationsOptions, + type SeamCustomerV1SpacesListReservationsParameters, + type SeamCustomerV1SpacesListReservationsRequest, SeamHttpSeamCustomerV1Spaces, } from './seam/customer/v1/spaces/index.js' import { @@ -3434,6 +3437,24 @@ export class SeamHttpEndpoints { } } + get '/seam/customer/v1/spaces/list_reservations'(): ( + parameters?: SeamCustomerV1SpacesListReservationsParameters, + options?: SeamCustomerV1SpacesListReservationsOptions, + ) => SeamCustomerV1SpacesListReservationsRequest { + const { client, defaults } = this + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } + return function seamCustomerV1SpacesListReservations( + ...args: Parameters + ): ReturnType { + const seam = SeamHttpSeamCustomerV1Spaces.fromClient(client, defaults) + return seam.listReservations(...args) + } + } + get '/seam/customer/v1/staff_members/get'(): ( parameters?: SeamCustomerV1StaffMembersGetParameters, options?: SeamCustomerV1StaffMembersGetOptions, @@ -4677,6 +4698,7 @@ export type SeamHttpEndpointQueryPaths = | '/seam/customer/v1/reservations/list' | '/seam/customer/v1/settings/get' | '/seam/customer/v1/spaces/list' + | '/seam/customer/v1/spaces/list_reservations' | '/seam/customer/v1/staff_members/get' | '/seam/customer/v1/staff_members/list' | '/seam/partner/v1/building_blocks/spaces/auto_map' diff --git a/src/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.ts b/src/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.ts index 8b8f6311..c4f62880 100644 --- a/src/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.ts +++ b/src/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.ts @@ -203,6 +203,24 @@ export class SeamHttpSeamCustomerV1Spaces { options, }) } + + listReservations( + parameters?: SeamCustomerV1SpacesListReservationsParameters, + options: SeamCustomerV1SpacesListReservationsOptions = {}, + ): SeamCustomerV1SpacesListReservationsRequest { + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } + return new SeamHttpRequest(this, { + pathname: '/seam/customer/v1/spaces/list_reservations', + method: 'POST', + body: parameters, + responseKey: 'reservations', + options, + }) + } } export type SeamCustomerV1SpacesCreateParameters = @@ -249,3 +267,26 @@ export type SeamCustomerV1SpacesListRequest = SeamHttpRequest< > export interface SeamCustomerV1SpacesListOptions {} + +export type SeamCustomerV1SpacesListReservationsParameters = + RouteRequestBody<'/seam/customer/v1/spaces/list_reservations'> + +/** + * @deprecated Use SeamCustomerV1SpacesListReservationsParameters instead. + */ +export type SeamCustomerV1SpacesListReservationsParams = + SeamCustomerV1SpacesListReservationsParameters + +/** + * @deprecated Use SeamCustomerV1SpacesListReservationsRequest instead. + */ +export type SeamCustomerV1SpacesListReservationsResponse = SetNonNullable< + Required> +> + +export type SeamCustomerV1SpacesListReservationsRequest = SeamHttpRequest< + SeamCustomerV1SpacesListReservationsResponse, + 'reservations' +> + +export interface SeamCustomerV1SpacesListReservationsOptions {}