@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/connect.cjs
CHANGED
|
@@ -6539,11 +6539,6 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6539
6539
|
constructor(apiKeyOrOptions = {}) {
|
|
6540
6540
|
this.ltsVersion = seamApiLtsVersion;
|
|
6541
6541
|
const options = parseOptions(apiKeyOrOptions);
|
|
6542
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
6543
|
-
throw new Error(
|
|
6544
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6545
|
-
);
|
|
6546
|
-
}
|
|
6547
6542
|
this.client = "client" in options ? options.client : createClient(options);
|
|
6548
6543
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
6549
6544
|
}
|
|
@@ -6624,11 +6619,6 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6624
6619
|
await clientSessions.get();
|
|
6625
6620
|
}
|
|
6626
6621
|
create(parameters, options = {}) {
|
|
6627
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6628
|
-
throw new Error(
|
|
6629
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6630
|
-
);
|
|
6631
|
-
}
|
|
6632
6622
|
return new SeamHttpRequest(this, {
|
|
6633
6623
|
pathname: "/thermostats/daily_programs/create",
|
|
6634
6624
|
method: "POST",
|
|
@@ -6638,11 +6628,6 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6638
6628
|
});
|
|
6639
6629
|
}
|
|
6640
6630
|
delete(parameters, options = {}) {
|
|
6641
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6642
|
-
throw new Error(
|
|
6643
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6644
|
-
);
|
|
6645
|
-
}
|
|
6646
6631
|
return new SeamHttpRequest(this, {
|
|
6647
6632
|
pathname: "/thermostats/daily_programs/delete",
|
|
6648
6633
|
method: "POST",
|
|
@@ -6652,11 +6637,6 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6652
6637
|
});
|
|
6653
6638
|
}
|
|
6654
6639
|
update(parameters, options = {}) {
|
|
6655
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6656
|
-
throw new Error(
|
|
6657
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6658
|
-
);
|
|
6659
|
-
}
|
|
6660
6640
|
return new SeamHttpRequest(this, {
|
|
6661
6641
|
pathname: "/thermostats/daily_programs/update",
|
|
6662
6642
|
method: "PATCH",
|
|
@@ -7127,11 +7107,6 @@ var _SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
7127
7107
|
});
|
|
7128
7108
|
}
|
|
7129
7109
|
updateWeeklyProgram(parameters, options = {}) {
|
|
7130
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7131
|
-
throw new Error(
|
|
7132
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7133
|
-
);
|
|
7134
|
-
}
|
|
7135
7110
|
return new SeamHttpRequest(this, {
|
|
7136
7111
|
pathname: "/thermostats/update_weekly_program",
|
|
7137
7112
|
method: "POST",
|
|
@@ -10074,11 +10049,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10074
10049
|
}
|
|
10075
10050
|
get ["/thermostats/update_weekly_program"]() {
|
|
10076
10051
|
const { client, defaults } = this;
|
|
10077
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10078
|
-
throw new Error(
|
|
10079
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10080
|
-
);
|
|
10081
|
-
}
|
|
10082
10052
|
return function thermostatsUpdateWeeklyProgram(...args) {
|
|
10083
10053
|
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
10084
10054
|
return seam.updateWeeklyProgram(...args);
|
|
@@ -10086,11 +10056,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10086
10056
|
}
|
|
10087
10057
|
get ["/thermostats/daily_programs/create"]() {
|
|
10088
10058
|
const { client, defaults } = this;
|
|
10089
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10090
|
-
throw new Error(
|
|
10091
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10092
|
-
);
|
|
10093
|
-
}
|
|
10094
10059
|
return function thermostatsDailyProgramsCreate(...args) {
|
|
10095
10060
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
10096
10061
|
return seam.create(...args);
|
|
@@ -10098,11 +10063,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10098
10063
|
}
|
|
10099
10064
|
get ["/thermostats/daily_programs/delete"]() {
|
|
10100
10065
|
const { client, defaults } = this;
|
|
10101
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10102
|
-
throw new Error(
|
|
10103
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10104
|
-
);
|
|
10105
|
-
}
|
|
10106
10066
|
return function thermostatsDailyProgramsDelete(...args) {
|
|
10107
10067
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
10108
10068
|
return seam.delete(...args);
|
|
@@ -10110,11 +10070,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10110
10070
|
}
|
|
10111
10071
|
get ["/thermostats/daily_programs/update"]() {
|
|
10112
10072
|
const { client, defaults } = this;
|
|
10113
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10114
|
-
throw new Error(
|
|
10115
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10116
|
-
);
|
|
10117
|
-
}
|
|
10118
10073
|
return function thermostatsDailyProgramsUpdate(...args) {
|
|
10119
10074
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
10120
10075
|
return seam.update(...args);
|