diff --git a/package-lock.json b/package-lock.json index 6b9fad96..e54590ae 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.768.1", + "@seamapi/types": "1.772.0", "@swc/core": "^1.11.29", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^24.10.9", @@ -49,7 +49,7 @@ "npm": ">=10.9.4" }, "peerDependencies": { - "@seamapi/types": "^1.768.1" + "@seamapi/types": "^1.772.0" }, "peerDependenciesMeta": { "@seamapi/types": { @@ -1405,9 +1405,9 @@ "license": "MIT" }, "node_modules/@seamapi/types": { - "version": "1.768.1", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.768.1.tgz", - "integrity": "sha512-BBYgxv+gaE0rz2iekFB5tYm3VzQ8o/xEGbsZy0AXg/FpVtsTxT2f0481XEh6a7UXEJYYEtHZvA7/bXJyXymcnA==", + "version": "1.772.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.772.0.tgz", + "integrity": "sha512-/MFq/zRLLo4/QDgOR1jIPWfqGeAAlH4plSRLJ0njdfV0AHFqODlCUp8uE2oOO6LYsNOXXPltG1hLR6TDIMBXPg==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index ed07cd4d..8a8c6bdd 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "npm": ">=10.9.4" }, "peerDependencies": { - "@seamapi/types": "^1.768.1" + "@seamapi/types": "^1.772.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.768.1", + "@seamapi/types": "1.772.0", "@swc/core": "^1.11.29", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^24.10.9", diff --git a/src/lib/seam/connect/routes/seam-http-endpoints.ts b/src/lib/seam/connect/routes/seam-http-endpoints.ts index db4bfb1f..8760bab6 100644 --- a/src/lib/seam/connect/routes/seam-http-endpoints.ts +++ b/src/lib/seam/connect/routes/seam-http-endpoints.ts @@ -708,6 +708,9 @@ import { type SeamCustomerV1PortalsGetOptions, type SeamCustomerV1PortalsGetParameters, type SeamCustomerV1PortalsGetRequest, + type SeamCustomerV1PortalsUpdateOptions, + type SeamCustomerV1PortalsUpdateParameters, + type SeamCustomerV1PortalsUpdateRequest, SeamHttpSeamCustomerV1Portals, } from './seam/customer/v1/portals/index.js' import { @@ -3684,6 +3687,24 @@ export class SeamHttpEndpoints { } } + get '/seam/customer/v1/portals/update'(): ( + parameters?: SeamCustomerV1PortalsUpdateParameters, + options?: SeamCustomerV1PortalsUpdateOptions, + ) => SeamCustomerV1PortalsUpdateRequest { + const { client, defaults } = this + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } + return function seamCustomerV1PortalsUpdate( + ...args: Parameters + ): ReturnType { + const seam = SeamHttpSeamCustomerV1Portals.fromClient(client, defaults) + return seam.update(...args) + } + } + get '/seam/customer/v1/reservations/get'(): ( parameters?: SeamCustomerV1ReservationsGetParameters, options?: SeamCustomerV1ReservationsGetOptions, @@ -5278,6 +5299,7 @@ export type SeamHttpEndpointMutationPaths = | '/seam/customer/v1/connectors/update' | '/seam/customer/v1/customers/automations/update' | '/seam/customer/v1/customers/open_portal' + | '/seam/customer/v1/portals/update' | '/seam/customer/v1/settings/update' | '/seam/customer/v1/spaces/create' | '/seam/customer/v1/spaces/push_common_areas' diff --git a/src/lib/seam/connect/routes/seam/customer/v1/portals/portals.ts b/src/lib/seam/connect/routes/seam/customer/v1/portals/portals.ts index 0a9746f5..049ca791 100644 --- a/src/lib/seam/connect/routes/seam/customer/v1/portals/portals.ts +++ b/src/lib/seam/connect/routes/seam/customer/v1/portals/portals.ts @@ -185,6 +185,24 @@ export class SeamHttpSeamCustomerV1Portals { options, }) } + + update( + parameters?: SeamCustomerV1PortalsUpdateParameters, + options: SeamCustomerV1PortalsUpdateOptions = {}, + ): SeamCustomerV1PortalsUpdateRequest { + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } + return new SeamHttpRequest(this, { + pathname: '/seam/customer/v1/portals/update', + method: 'PATCH', + body: parameters, + responseKey: undefined, + options, + }) + } } export type SeamCustomerV1PortalsGetParameters = @@ -208,3 +226,26 @@ export type SeamCustomerV1PortalsGetRequest = SeamHttpRequest< > export interface SeamCustomerV1PortalsGetOptions {} + +export type SeamCustomerV1PortalsUpdateParameters = + RouteRequestBody<'/seam/customer/v1/portals/update'> + +/** + * @deprecated Use SeamCustomerV1PortalsUpdateParameters instead. + */ +export type SeamCustomerV1PortalsUpdateBody = + SeamCustomerV1PortalsUpdateParameters + +/** + * @deprecated Use SeamCustomerV1PortalsUpdateRequest instead. + */ +export type SeamCustomerV1PortalsUpdateResponse = SetNonNullable< + Required> +> + +export type SeamCustomerV1PortalsUpdateRequest = SeamHttpRequest< + void, + undefined +> + +export interface SeamCustomerV1PortalsUpdateOptions {}