diff --git a/package-lock.json b/package-lock.json index 4be4d548..1638a5eb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "@seamapi/blueprint": "^0.51.1", "@seamapi/fake-seam-connect": "^1.77.0", "@seamapi/smith": "^0.5.2", - "@seamapi/types": "1.560.0", + "@seamapi/types": "1.561.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.560.0" + "@seamapi/types": "^1.561.0" }, "peerDependenciesMeta": { "@seamapi/types": { @@ -1371,9 +1371,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.560.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.560.0.tgz", - "integrity": "sha512-YzuMhXcs1nv8pQmM2McktaV1jwBKsX5sen65qY8P0P9JlC4mKfRspV1AACIKEzH+dY9CUC7VvsPstESRttbkgQ==", + "version": "1.561.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.561.0.tgz", + "integrity": "sha512-3rId5m6LaS15OuugQqg6n+ilqp94Smtkpxj5oTID8ATSOAOUb4pKskwj6Bu7X6Fh6u/UmT2bTytat9Ws5SYvpw==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 88337c89..c40d2e6f 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "npm": ">=10.1.0" }, "peerDependencies": { - "@seamapi/types": "^1.560.0" + "@seamapi/types": "^1.561.0" }, "peerDependenciesMeta": { "@seamapi/types": { @@ -102,7 +102,7 @@ "@seamapi/blueprint": "^0.51.1", "@seamapi/fake-seam-connect": "^1.77.0", "@seamapi/smith": "^0.5.2", - "@seamapi/types": "1.560.0", + "@seamapi/types": "1.561.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 8e2a2688..2e639586 100644 --- a/src/lib/seam/connect/routes/seam-http-endpoints.ts +++ b/src/lib/seam/connect/routes/seam-http-endpoints.ts @@ -585,6 +585,9 @@ import { SeamHttpSeamCustomerV1Portals, } from './seam/customer/v1/portals/index.js' import { + type SeamCustomerV1ReservationsGetOptions, + type SeamCustomerV1ReservationsGetParameters, + type SeamCustomerV1ReservationsGetRequest, type SeamCustomerV1ReservationsListOptions, type SeamCustomerV1ReservationsListParameters, type SeamCustomerV1ReservationsListRequest, @@ -2991,6 +2994,27 @@ export class SeamHttpEndpoints { } } + get '/seam/customer/v1/reservations/get'(): ( + parameters?: SeamCustomerV1ReservationsGetParameters, + options?: SeamCustomerV1ReservationsGetOptions, + ) => SeamCustomerV1ReservationsGetRequest { + const { client, defaults } = this + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } + return function seamCustomerV1ReservationsGet( + ...args: Parameters + ): ReturnType { + const seam = SeamHttpSeamCustomerV1Reservations.fromClient( + client, + defaults, + ) + return seam.get(...args) + } + } + get '/seam/customer/v1/reservations/list'(): ( parameters?: SeamCustomerV1ReservationsListParameters, options?: SeamCustomerV1ReservationsListOptions, @@ -4199,6 +4223,7 @@ export type SeamHttpEndpointQueryPaths = | '/seam/customer/v1/automations/get' | '/seam/customer/v1/events/list' | '/seam/customer/v1/portals/get' + | '/seam/customer/v1/reservations/get' | '/seam/customer/v1/reservations/list' | '/seam/customer/v1/settings/get' | '/seam/partner/v1/building_blocks/spaces/auto_map' diff --git a/src/lib/seam/connect/routes/seam/customer/v1/reservations/reservations.ts b/src/lib/seam/connect/routes/seam/customer/v1/reservations/reservations.ts index cfa6c09c..b14646dc 100644 --- a/src/lib/seam/connect/routes/seam/customer/v1/reservations/reservations.ts +++ b/src/lib/seam/connect/routes/seam/customer/v1/reservations/reservations.ts @@ -171,6 +171,24 @@ export class SeamHttpSeamCustomerV1Reservations { await clientSessions.get() } + get( + parameters?: SeamCustomerV1ReservationsGetParameters, + options: SeamCustomerV1ReservationsGetOptions = {}, + ): SeamCustomerV1ReservationsGetRequest { + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } + return new SeamHttpRequest(this, { + pathname: '/seam/customer/v1/reservations/get', + method: 'POST', + body: parameters, + responseKey: 'reservation', + options, + }) + } + list( parameters?: SeamCustomerV1ReservationsListParameters, options: SeamCustomerV1ReservationsListOptions = {}, @@ -190,6 +208,29 @@ export class SeamHttpSeamCustomerV1Reservations { } } +export type SeamCustomerV1ReservationsGetParameters = + RouteRequestBody<'/seam/customer/v1/reservations/get'> + +/** + * @deprecated Use SeamCustomerV1ReservationsGetParameters instead. + */ +export type SeamCustomerV1ReservationsGetParams = + SeamCustomerV1ReservationsGetParameters + +/** + * @deprecated Use SeamCustomerV1ReservationsGetRequest instead. + */ +export type SeamCustomerV1ReservationsGetResponse = SetNonNullable< + Required> +> + +export type SeamCustomerV1ReservationsGetRequest = SeamHttpRequest< + SeamCustomerV1ReservationsGetResponse, + 'reservation' +> + +export interface SeamCustomerV1ReservationsGetOptions {} + export type SeamCustomerV1ReservationsListParameters = RouteRequestBody<'/seam/customer/v1/reservations/list'>