diff --git a/package-lock.json b/package-lock.json index 816b889c..53a8db58 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.4.4", - "@seamapi/types": "1.468.0", + "@seamapi/types": "1.469.0", "@swc/core": "^1.11.29", "@types/eslint": "^8.44.2", "@types/jsonwebtoken": "^9.0.6", @@ -50,7 +50,7 @@ "npm": ">=10.1.0" }, "peerDependencies": { - "@seamapi/types": "^1.468.0" + "@seamapi/types": "^1.469.0" }, "peerDependenciesMeta": { "@seamapi/types": { @@ -1216,9 +1216,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.468.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.468.0.tgz", - "integrity": "sha512-0GSeUx34aGgiu8FZR8GxvXpOS+nkyqiCEb2HPt/YSlDgghc1rb7ZYe8KtLgRNzbCgvgnySky0INNgCqcoGgF/Q==", + "version": "1.469.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.469.0.tgz", + "integrity": "sha512-PFbPByD/o8aXJw33LZq/b0Dz1FGKyWgSu1jafcrE+JB/NQysFOt9vIGRNCbMn9HMykGdxNvcpLeqHkGfI++Kmg==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index c614749a..6d895730 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "npm": ">=10.1.0" }, "peerDependencies": { - "@seamapi/types": "^1.468.0" + "@seamapi/types": "^1.469.0" }, "peerDependenciesMeta": { "@seamapi/types": { @@ -101,7 +101,7 @@ "@seamapi/blueprint": "^0.51.1", "@seamapi/fake-seam-connect": "^1.77.0", "@seamapi/smith": "^0.4.4", - "@seamapi/types": "1.468.0", + "@seamapi/types": "1.469.0", "@swc/core": "^1.11.29", "@types/eslint": "^8.44.2", "@types/jsonwebtoken": "^9.0.6", diff --git a/src/lib/seam/connect/routes/seam-http-endpoints.ts b/src/lib/seam/connect/routes/seam-http-endpoints.ts index ef4b8b2c..6390a948 100644 --- a/src/lib/seam/connect/routes/seam-http-endpoints.ts +++ b/src/lib/seam/connect/routes/seam-http-endpoints.ts @@ -3347,11 +3347,6 @@ export class SeamHttpEndpoints { options?: ThermostatsUpdateWeeklyProgramOptions, ) => ThermostatsUpdateWeeklyProgramRequest { const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } return function thermostatsUpdateWeeklyProgram( ...args: Parameters ): ReturnType { @@ -3365,11 +3360,6 @@ export class SeamHttpEndpoints { options?: ThermostatsDailyProgramsCreateOptions, ) => ThermostatsDailyProgramsCreateRequest { const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } return function thermostatsDailyProgramsCreate( ...args: Parameters ): ReturnType { @@ -3383,11 +3373,6 @@ export class SeamHttpEndpoints { options?: ThermostatsDailyProgramsDeleteOptions, ) => ThermostatsDailyProgramsDeleteRequest { const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } return function thermostatsDailyProgramsDelete( ...args: Parameters ): ReturnType { @@ -3401,11 +3386,6 @@ export class SeamHttpEndpoints { options?: ThermostatsDailyProgramsUpdateOptions, ) => ThermostatsDailyProgramsUpdateRequest { const { client, defaults } = this - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } return function thermostatsDailyProgramsUpdate( ...args: Parameters ): ReturnType { diff --git a/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts b/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts index edfe8607..3406bc03 100644 --- a/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +++ b/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts @@ -44,11 +44,6 @@ export class SeamHttpThermostatsDailyPrograms { constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) { const options = parseOptions(apiKeyOrOptions) - if (!options.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } this.client = 'client' in options ? options.client : createClient(options) this.defaults = limitToSeamHttpRequestOptions(options) } @@ -175,11 +170,6 @@ export class SeamHttpThermostatsDailyPrograms { parameters?: ThermostatsDailyProgramsCreateParameters, options: ThermostatsDailyProgramsCreateOptions = {}, ): ThermostatsDailyProgramsCreateRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } return new SeamHttpRequest(this, { pathname: '/thermostats/daily_programs/create', method: 'POST', @@ -193,11 +183,6 @@ export class SeamHttpThermostatsDailyPrograms { parameters?: ThermostatsDailyProgramsDeleteParameters, options: ThermostatsDailyProgramsDeleteOptions = {}, ): ThermostatsDailyProgramsDeleteRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } return new SeamHttpRequest(this, { pathname: '/thermostats/daily_programs/delete', method: 'POST', @@ -211,11 +196,6 @@ export class SeamHttpThermostatsDailyPrograms { parameters?: ThermostatsDailyProgramsUpdateParameters, options: ThermostatsDailyProgramsUpdateOptions = {}, ): ThermostatsDailyProgramsUpdateRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } return new SeamHttpRequest(this, { pathname: '/thermostats/daily_programs/update', method: 'PATCH', diff --git a/src/lib/seam/connect/routes/thermostats/thermostats.ts b/src/lib/seam/connect/routes/thermostats/thermostats.ts index d5cc73ae..da325fcd 100644 --- a/src/lib/seam/connect/routes/thermostats/thermostats.ts +++ b/src/lib/seam/connect/routes/thermostats/thermostats.ts @@ -373,11 +373,6 @@ export class SeamHttpThermostats { parameters?: ThermostatsUpdateWeeklyProgramParameters, options: ThermostatsUpdateWeeklyProgramOptions = {}, ): ThermostatsUpdateWeeklyProgramRequest { - if (!this.defaults.isUndocumentedApiEnabled) { - throw new Error( - 'Cannot use undocumented API without isUndocumentedApiEnabled', - ) - } return new SeamHttpRequest(this, { pathname: '/thermostats/update_weekly_program', method: 'POST',