@seamapi/http 1.55.0 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect.cjs +0 -45
- package/dist/connect.cjs.map +1 -1
- package/dist/index.cjs +0 -45
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.js +0 -12
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js +0 -12
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/thermostats.js +0 -3
- package/lib/seam/connect/routes/thermostats/thermostats.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +0 -20
- package/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +0 -20
- package/src/lib/seam/connect/routes/thermostats/thermostats.ts +0 -5
- package/src/lib/version.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6779,11 +6779,6 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6779
6779
|
constructor(apiKeyOrOptions = {}) {
|
|
6780
6780
|
this.ltsVersion = seamApiLtsVersion;
|
|
6781
6781
|
const options = parseOptions(apiKeyOrOptions);
|
|
6782
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
6783
|
-
throw new Error(
|
|
6784
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6785
|
-
);
|
|
6786
|
-
}
|
|
6787
6782
|
this.client = "client" in options ? options.client : createClient(options);
|
|
6788
6783
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
6789
6784
|
}
|
|
@@ -6864,11 +6859,6 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6864
6859
|
await clientSessions.get();
|
|
6865
6860
|
}
|
|
6866
6861
|
create(parameters, options = {}) {
|
|
6867
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6868
|
-
throw new Error(
|
|
6869
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6870
|
-
);
|
|
6871
|
-
}
|
|
6872
6862
|
return new SeamHttpRequest(this, {
|
|
6873
6863
|
pathname: "/thermostats/daily_programs/create",
|
|
6874
6864
|
method: "POST",
|
|
@@ -6878,11 +6868,6 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6878
6868
|
});
|
|
6879
6869
|
}
|
|
6880
6870
|
delete(parameters, options = {}) {
|
|
6881
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6882
|
-
throw new Error(
|
|
6883
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6884
|
-
);
|
|
6885
|
-
}
|
|
6886
6871
|
return new SeamHttpRequest(this, {
|
|
6887
6872
|
pathname: "/thermostats/daily_programs/delete",
|
|
6888
6873
|
method: "POST",
|
|
@@ -6892,11 +6877,6 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6892
6877
|
});
|
|
6893
6878
|
}
|
|
6894
6879
|
update(parameters, options = {}) {
|
|
6895
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6896
|
-
throw new Error(
|
|
6897
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6898
|
-
);
|
|
6899
|
-
}
|
|
6900
6880
|
return new SeamHttpRequest(this, {
|
|
6901
6881
|
pathname: "/thermostats/daily_programs/update",
|
|
6902
6882
|
method: "PATCH",
|
|
@@ -7367,11 +7347,6 @@ var _SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
7367
7347
|
});
|
|
7368
7348
|
}
|
|
7369
7349
|
updateWeeklyProgram(parameters, options = {}) {
|
|
7370
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7371
|
-
throw new Error(
|
|
7372
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7373
|
-
);
|
|
7374
|
-
}
|
|
7375
7350
|
return new SeamHttpRequest(this, {
|
|
7376
7351
|
pathname: "/thermostats/update_weekly_program",
|
|
7377
7352
|
method: "POST",
|
|
@@ -10314,11 +10289,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10314
10289
|
}
|
|
10315
10290
|
get ["/thermostats/update_weekly_program"]() {
|
|
10316
10291
|
const { client, defaults } = this;
|
|
10317
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10318
|
-
throw new Error(
|
|
10319
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10320
|
-
);
|
|
10321
|
-
}
|
|
10322
10292
|
return function thermostatsUpdateWeeklyProgram(...args) {
|
|
10323
10293
|
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
10324
10294
|
return seam.updateWeeklyProgram(...args);
|
|
@@ -10326,11 +10296,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10326
10296
|
}
|
|
10327
10297
|
get ["/thermostats/daily_programs/create"]() {
|
|
10328
10298
|
const { client, defaults } = this;
|
|
10329
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10330
|
-
throw new Error(
|
|
10331
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10332
|
-
);
|
|
10333
|
-
}
|
|
10334
10299
|
return function thermostatsDailyProgramsCreate(...args) {
|
|
10335
10300
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
10336
10301
|
return seam.create(...args);
|
|
@@ -10338,11 +10303,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10338
10303
|
}
|
|
10339
10304
|
get ["/thermostats/daily_programs/delete"]() {
|
|
10340
10305
|
const { client, defaults } = this;
|
|
10341
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10342
|
-
throw new Error(
|
|
10343
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10344
|
-
);
|
|
10345
|
-
}
|
|
10346
10306
|
return function thermostatsDailyProgramsDelete(...args) {
|
|
10347
10307
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
10348
10308
|
return seam.delete(...args);
|
|
@@ -10350,11 +10310,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10350
10310
|
}
|
|
10351
10311
|
get ["/thermostats/daily_programs/update"]() {
|
|
10352
10312
|
const { client, defaults } = this;
|
|
10353
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10354
|
-
throw new Error(
|
|
10355
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10356
|
-
);
|
|
10357
|
-
}
|
|
10358
10313
|
return function thermostatsDailyProgramsUpdate(...args) {
|
|
10359
10314
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
10360
10315
|
return seam.update(...args);
|