@seamapi/http 1.53.0 → 1.54.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 +90 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/index.cjs +90 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.js +24 -0
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js +12 -0
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/thermostats.js +3 -0
- package/lib/seam/connect/routes/thermostats/thermostats.js.map +1 -1
- package/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.js +15 -0
- package/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.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 +40 -0
- package/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +20 -0
- package/src/lib/seam/connect/routes/thermostats/thermostats.ts +5 -0
- package/src/lib/seam/connect/routes/user-identities/enrollment-automations/enrollment-automations.ts +25 -0
- package/src/lib/version.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6656,6 +6656,11 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6656
6656
|
constructor(apiKeyOrOptions = {}) {
|
|
6657
6657
|
this.ltsVersion = seamApiLtsVersion;
|
|
6658
6658
|
const options = parseOptions(apiKeyOrOptions);
|
|
6659
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
6660
|
+
throw new Error(
|
|
6661
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6662
|
+
);
|
|
6663
|
+
}
|
|
6659
6664
|
this.client = "client" in options ? options.client : createClient(options);
|
|
6660
6665
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
6661
6666
|
}
|
|
@@ -6736,6 +6741,11 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6736
6741
|
await clientSessions.get();
|
|
6737
6742
|
}
|
|
6738
6743
|
create(parameters, options = {}) {
|
|
6744
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6745
|
+
throw new Error(
|
|
6746
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6747
|
+
);
|
|
6748
|
+
}
|
|
6739
6749
|
return new SeamHttpRequest(this, {
|
|
6740
6750
|
pathname: "/thermostats/daily_programs/create",
|
|
6741
6751
|
method: "POST",
|
|
@@ -6745,6 +6755,11 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6745
6755
|
});
|
|
6746
6756
|
}
|
|
6747
6757
|
delete(parameters, options = {}) {
|
|
6758
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6759
|
+
throw new Error(
|
|
6760
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6761
|
+
);
|
|
6762
|
+
}
|
|
6748
6763
|
return new SeamHttpRequest(this, {
|
|
6749
6764
|
pathname: "/thermostats/daily_programs/delete",
|
|
6750
6765
|
method: "POST",
|
|
@@ -6754,6 +6769,11 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6754
6769
|
});
|
|
6755
6770
|
}
|
|
6756
6771
|
update(parameters, options = {}) {
|
|
6772
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6773
|
+
throw new Error(
|
|
6774
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6775
|
+
);
|
|
6776
|
+
}
|
|
6757
6777
|
return new SeamHttpRequest(this, {
|
|
6758
6778
|
pathname: "/thermostats/daily_programs/update",
|
|
6759
6779
|
method: "PATCH",
|
|
@@ -7224,6 +7244,11 @@ var _SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
7224
7244
|
});
|
|
7225
7245
|
}
|
|
7226
7246
|
updateWeeklyProgram(parameters, options = {}) {
|
|
7247
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7248
|
+
throw new Error(
|
|
7249
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7250
|
+
);
|
|
7251
|
+
}
|
|
7227
7252
|
return new SeamHttpRequest(this, {
|
|
7228
7253
|
pathname: "/thermostats/update_weekly_program",
|
|
7229
7254
|
method: "POST",
|
|
@@ -7980,6 +8005,11 @@ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentities
|
|
|
7980
8005
|
constructor(apiKeyOrOptions = {}) {
|
|
7981
8006
|
this.ltsVersion = seamApiLtsVersion;
|
|
7982
8007
|
const options = parseOptions(apiKeyOrOptions);
|
|
8008
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
8009
|
+
throw new Error(
|
|
8010
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8011
|
+
);
|
|
8012
|
+
}
|
|
7983
8013
|
this.client = "client" in options ? options.client : createClient(options);
|
|
7984
8014
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7985
8015
|
}
|
|
@@ -8060,6 +8090,11 @@ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentities
|
|
|
8060
8090
|
await clientSessions.get();
|
|
8061
8091
|
}
|
|
8062
8092
|
delete(parameters, options = {}) {
|
|
8093
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
8094
|
+
throw new Error(
|
|
8095
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8096
|
+
);
|
|
8097
|
+
}
|
|
8063
8098
|
return new SeamHttpRequest(this, {
|
|
8064
8099
|
pathname: "/user_identities/enrollment_automations/delete",
|
|
8065
8100
|
method: "POST",
|
|
@@ -8069,6 +8104,11 @@ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentities
|
|
|
8069
8104
|
});
|
|
8070
8105
|
}
|
|
8071
8106
|
get(parameters, options = {}) {
|
|
8107
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
8108
|
+
throw new Error(
|
|
8109
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8110
|
+
);
|
|
8111
|
+
}
|
|
8072
8112
|
return new SeamHttpRequest(this, {
|
|
8073
8113
|
pathname: "/user_identities/enrollment_automations/get",
|
|
8074
8114
|
method: "POST",
|
|
@@ -8078,6 +8118,11 @@ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentities
|
|
|
8078
8118
|
});
|
|
8079
8119
|
}
|
|
8080
8120
|
launch(parameters, options = {}) {
|
|
8121
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
8122
|
+
throw new Error(
|
|
8123
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8124
|
+
);
|
|
8125
|
+
}
|
|
8081
8126
|
return new SeamHttpRequest(this, {
|
|
8082
8127
|
pathname: "/user_identities/enrollment_automations/launch",
|
|
8083
8128
|
method: "POST",
|
|
@@ -8087,6 +8132,11 @@ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentities
|
|
|
8087
8132
|
});
|
|
8088
8133
|
}
|
|
8089
8134
|
list(parameters, options = {}) {
|
|
8135
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
8136
|
+
throw new Error(
|
|
8137
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
8138
|
+
);
|
|
8139
|
+
}
|
|
8090
8140
|
return new SeamHttpRequest(this, {
|
|
8091
8141
|
pathname: "/user_identities/enrollment_automations/list",
|
|
8092
8142
|
method: "POST",
|
|
@@ -10117,6 +10167,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10117
10167
|
}
|
|
10118
10168
|
get ["/thermostats/update_weekly_program"]() {
|
|
10119
10169
|
const { client, defaults } = this;
|
|
10170
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10171
|
+
throw new Error(
|
|
10172
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10173
|
+
);
|
|
10174
|
+
}
|
|
10120
10175
|
return function thermostatsUpdateWeeklyProgram(...args) {
|
|
10121
10176
|
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
10122
10177
|
return seam.updateWeeklyProgram(...args);
|
|
@@ -10124,6 +10179,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10124
10179
|
}
|
|
10125
10180
|
get ["/thermostats/daily_programs/create"]() {
|
|
10126
10181
|
const { client, defaults } = this;
|
|
10182
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10183
|
+
throw new Error(
|
|
10184
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10185
|
+
);
|
|
10186
|
+
}
|
|
10127
10187
|
return function thermostatsDailyProgramsCreate(...args) {
|
|
10128
10188
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
10129
10189
|
return seam.create(...args);
|
|
@@ -10131,6 +10191,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10131
10191
|
}
|
|
10132
10192
|
get ["/thermostats/daily_programs/delete"]() {
|
|
10133
10193
|
const { client, defaults } = this;
|
|
10194
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10195
|
+
throw new Error(
|
|
10196
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10197
|
+
);
|
|
10198
|
+
}
|
|
10134
10199
|
return function thermostatsDailyProgramsDelete(...args) {
|
|
10135
10200
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
10136
10201
|
return seam.delete(...args);
|
|
@@ -10138,6 +10203,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10138
10203
|
}
|
|
10139
10204
|
get ["/thermostats/daily_programs/update"]() {
|
|
10140
10205
|
const { client, defaults } = this;
|
|
10206
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10207
|
+
throw new Error(
|
|
10208
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10209
|
+
);
|
|
10210
|
+
}
|
|
10141
10211
|
return function thermostatsDailyProgramsUpdate(...args) {
|
|
10142
10212
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
10143
10213
|
return seam.update(...args);
|
|
@@ -10537,6 +10607,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10537
10607
|
}
|
|
10538
10608
|
get ["/user_identities/enrollment_automations/delete"]() {
|
|
10539
10609
|
const { client, defaults } = this;
|
|
10610
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10611
|
+
throw new Error(
|
|
10612
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10613
|
+
);
|
|
10614
|
+
}
|
|
10540
10615
|
return function userIdentitiesEnrollmentAutomationsDelete(...args) {
|
|
10541
10616
|
const seam = SeamHttpUserIdentitiesEnrollmentAutomations.fromClient(
|
|
10542
10617
|
client,
|
|
@@ -10547,6 +10622,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10547
10622
|
}
|
|
10548
10623
|
get ["/user_identities/enrollment_automations/get"]() {
|
|
10549
10624
|
const { client, defaults } = this;
|
|
10625
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10626
|
+
throw new Error(
|
|
10627
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10628
|
+
);
|
|
10629
|
+
}
|
|
10550
10630
|
return function userIdentitiesEnrollmentAutomationsGet(...args) {
|
|
10551
10631
|
const seam = SeamHttpUserIdentitiesEnrollmentAutomations.fromClient(
|
|
10552
10632
|
client,
|
|
@@ -10557,6 +10637,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10557
10637
|
}
|
|
10558
10638
|
get ["/user_identities/enrollment_automations/launch"]() {
|
|
10559
10639
|
const { client, defaults } = this;
|
|
10640
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10641
|
+
throw new Error(
|
|
10642
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10643
|
+
);
|
|
10644
|
+
}
|
|
10560
10645
|
return function userIdentitiesEnrollmentAutomationsLaunch(...args) {
|
|
10561
10646
|
const seam = SeamHttpUserIdentitiesEnrollmentAutomations.fromClient(
|
|
10562
10647
|
client,
|
|
@@ -10567,6 +10652,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10567
10652
|
}
|
|
10568
10653
|
get ["/user_identities/enrollment_automations/list"]() {
|
|
10569
10654
|
const { client, defaults } = this;
|
|
10655
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10656
|
+
throw new Error(
|
|
10657
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10658
|
+
);
|
|
10659
|
+
}
|
|
10570
10660
|
return function userIdentitiesEnrollmentAutomationsList(...args) {
|
|
10571
10661
|
const seam = SeamHttpUserIdentitiesEnrollmentAutomations.fromClient(
|
|
10572
10662
|
client,
|