@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/connect.cjs
CHANGED
|
@@ -6418,6 +6418,11 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6418
6418
|
constructor(apiKeyOrOptions = {}) {
|
|
6419
6419
|
this.ltsVersion = seamApiLtsVersion;
|
|
6420
6420
|
const options = parseOptions(apiKeyOrOptions);
|
|
6421
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
6422
|
+
throw new Error(
|
|
6423
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6424
|
+
);
|
|
6425
|
+
}
|
|
6421
6426
|
this.client = "client" in options ? options.client : createClient(options);
|
|
6422
6427
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
6423
6428
|
}
|
|
@@ -6498,6 +6503,11 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6498
6503
|
await clientSessions.get();
|
|
6499
6504
|
}
|
|
6500
6505
|
create(parameters, options = {}) {
|
|
6506
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6507
|
+
throw new Error(
|
|
6508
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6509
|
+
);
|
|
6510
|
+
}
|
|
6501
6511
|
return new SeamHttpRequest(this, {
|
|
6502
6512
|
pathname: "/thermostats/daily_programs/create",
|
|
6503
6513
|
method: "POST",
|
|
@@ -6507,6 +6517,11 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6507
6517
|
});
|
|
6508
6518
|
}
|
|
6509
6519
|
delete(parameters, options = {}) {
|
|
6520
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6521
|
+
throw new Error(
|
|
6522
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6523
|
+
);
|
|
6524
|
+
}
|
|
6510
6525
|
return new SeamHttpRequest(this, {
|
|
6511
6526
|
pathname: "/thermostats/daily_programs/delete",
|
|
6512
6527
|
method: "POST",
|
|
@@ -6516,6 +6531,11 @@ var _SeamHttpThermostatsDailyPrograms = class _SeamHttpThermostatsDailyPrograms
|
|
|
6516
6531
|
});
|
|
6517
6532
|
}
|
|
6518
6533
|
update(parameters, options = {}) {
|
|
6534
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6535
|
+
throw new Error(
|
|
6536
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6537
|
+
);
|
|
6538
|
+
}
|
|
6519
6539
|
return new SeamHttpRequest(this, {
|
|
6520
6540
|
pathname: "/thermostats/daily_programs/update",
|
|
6521
6541
|
method: "PATCH",
|
|
@@ -6986,6 +7006,11 @@ var _SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
6986
7006
|
});
|
|
6987
7007
|
}
|
|
6988
7008
|
updateWeeklyProgram(parameters, options = {}) {
|
|
7009
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7010
|
+
throw new Error(
|
|
7011
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7012
|
+
);
|
|
7013
|
+
}
|
|
6989
7014
|
return new SeamHttpRequest(this, {
|
|
6990
7015
|
pathname: "/thermostats/update_weekly_program",
|
|
6991
7016
|
method: "POST",
|
|
@@ -7742,6 +7767,11 @@ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentities
|
|
|
7742
7767
|
constructor(apiKeyOrOptions = {}) {
|
|
7743
7768
|
this.ltsVersion = seamApiLtsVersion;
|
|
7744
7769
|
const options = parseOptions(apiKeyOrOptions);
|
|
7770
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
7771
|
+
throw new Error(
|
|
7772
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7773
|
+
);
|
|
7774
|
+
}
|
|
7745
7775
|
this.client = "client" in options ? options.client : createClient(options);
|
|
7746
7776
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7747
7777
|
}
|
|
@@ -7822,6 +7852,11 @@ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentities
|
|
|
7822
7852
|
await clientSessions.get();
|
|
7823
7853
|
}
|
|
7824
7854
|
delete(parameters, options = {}) {
|
|
7855
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7856
|
+
throw new Error(
|
|
7857
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7858
|
+
);
|
|
7859
|
+
}
|
|
7825
7860
|
return new SeamHttpRequest(this, {
|
|
7826
7861
|
pathname: "/user_identities/enrollment_automations/delete",
|
|
7827
7862
|
method: "POST",
|
|
@@ -7831,6 +7866,11 @@ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentities
|
|
|
7831
7866
|
});
|
|
7832
7867
|
}
|
|
7833
7868
|
get(parameters, options = {}) {
|
|
7869
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7870
|
+
throw new Error(
|
|
7871
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7872
|
+
);
|
|
7873
|
+
}
|
|
7834
7874
|
return new SeamHttpRequest(this, {
|
|
7835
7875
|
pathname: "/user_identities/enrollment_automations/get",
|
|
7836
7876
|
method: "POST",
|
|
@@ -7840,6 +7880,11 @@ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentities
|
|
|
7840
7880
|
});
|
|
7841
7881
|
}
|
|
7842
7882
|
launch(parameters, options = {}) {
|
|
7883
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7884
|
+
throw new Error(
|
|
7885
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7886
|
+
);
|
|
7887
|
+
}
|
|
7843
7888
|
return new SeamHttpRequest(this, {
|
|
7844
7889
|
pathname: "/user_identities/enrollment_automations/launch",
|
|
7845
7890
|
method: "POST",
|
|
@@ -7849,6 +7894,11 @@ var _SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentities
|
|
|
7849
7894
|
});
|
|
7850
7895
|
}
|
|
7851
7896
|
list(parameters, options = {}) {
|
|
7897
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7898
|
+
throw new Error(
|
|
7899
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7900
|
+
);
|
|
7901
|
+
}
|
|
7852
7902
|
return new SeamHttpRequest(this, {
|
|
7853
7903
|
pathname: "/user_identities/enrollment_automations/list",
|
|
7854
7904
|
method: "POST",
|
|
@@ -9879,6 +9929,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9879
9929
|
}
|
|
9880
9930
|
get ["/thermostats/update_weekly_program"]() {
|
|
9881
9931
|
const { client, defaults } = this;
|
|
9932
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9933
|
+
throw new Error(
|
|
9934
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9935
|
+
);
|
|
9936
|
+
}
|
|
9882
9937
|
return function thermostatsUpdateWeeklyProgram(...args) {
|
|
9883
9938
|
const seam = SeamHttpThermostats.fromClient(client, defaults);
|
|
9884
9939
|
return seam.updateWeeklyProgram(...args);
|
|
@@ -9886,6 +9941,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9886
9941
|
}
|
|
9887
9942
|
get ["/thermostats/daily_programs/create"]() {
|
|
9888
9943
|
const { client, defaults } = this;
|
|
9944
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9945
|
+
throw new Error(
|
|
9946
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9947
|
+
);
|
|
9948
|
+
}
|
|
9889
9949
|
return function thermostatsDailyProgramsCreate(...args) {
|
|
9890
9950
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
9891
9951
|
return seam.create(...args);
|
|
@@ -9893,6 +9953,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9893
9953
|
}
|
|
9894
9954
|
get ["/thermostats/daily_programs/delete"]() {
|
|
9895
9955
|
const { client, defaults } = this;
|
|
9956
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9957
|
+
throw new Error(
|
|
9958
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9959
|
+
);
|
|
9960
|
+
}
|
|
9896
9961
|
return function thermostatsDailyProgramsDelete(...args) {
|
|
9897
9962
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
9898
9963
|
return seam.delete(...args);
|
|
@@ -9900,6 +9965,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9900
9965
|
}
|
|
9901
9966
|
get ["/thermostats/daily_programs/update"]() {
|
|
9902
9967
|
const { client, defaults } = this;
|
|
9968
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9969
|
+
throw new Error(
|
|
9970
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9971
|
+
);
|
|
9972
|
+
}
|
|
9903
9973
|
return function thermostatsDailyProgramsUpdate(...args) {
|
|
9904
9974
|
const seam = SeamHttpThermostatsDailyPrograms.fromClient(client, defaults);
|
|
9905
9975
|
return seam.update(...args);
|
|
@@ -10299,6 +10369,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10299
10369
|
}
|
|
10300
10370
|
get ["/user_identities/enrollment_automations/delete"]() {
|
|
10301
10371
|
const { client, defaults } = this;
|
|
10372
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10373
|
+
throw new Error(
|
|
10374
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10375
|
+
);
|
|
10376
|
+
}
|
|
10302
10377
|
return function userIdentitiesEnrollmentAutomationsDelete(...args) {
|
|
10303
10378
|
const seam = SeamHttpUserIdentitiesEnrollmentAutomations.fromClient(
|
|
10304
10379
|
client,
|
|
@@ -10309,6 +10384,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10309
10384
|
}
|
|
10310
10385
|
get ["/user_identities/enrollment_automations/get"]() {
|
|
10311
10386
|
const { client, defaults } = this;
|
|
10387
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10388
|
+
throw new Error(
|
|
10389
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10390
|
+
);
|
|
10391
|
+
}
|
|
10312
10392
|
return function userIdentitiesEnrollmentAutomationsGet(...args) {
|
|
10313
10393
|
const seam = SeamHttpUserIdentitiesEnrollmentAutomations.fromClient(
|
|
10314
10394
|
client,
|
|
@@ -10319,6 +10399,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10319
10399
|
}
|
|
10320
10400
|
get ["/user_identities/enrollment_automations/launch"]() {
|
|
10321
10401
|
const { client, defaults } = this;
|
|
10402
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10403
|
+
throw new Error(
|
|
10404
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10405
|
+
);
|
|
10406
|
+
}
|
|
10322
10407
|
return function userIdentitiesEnrollmentAutomationsLaunch(...args) {
|
|
10323
10408
|
const seam = SeamHttpUserIdentitiesEnrollmentAutomations.fromClient(
|
|
10324
10409
|
client,
|
|
@@ -10329,6 +10414,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10329
10414
|
}
|
|
10330
10415
|
get ["/user_identities/enrollment_automations/list"]() {
|
|
10331
10416
|
const { client, defaults } = this;
|
|
10417
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10418
|
+
throw new Error(
|
|
10419
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10420
|
+
);
|
|
10421
|
+
}
|
|
10332
10422
|
return function userIdentitiesEnrollmentAutomationsList(...args) {
|
|
10333
10423
|
const seam = SeamHttpUserIdentitiesEnrollmentAutomations.fromClient(
|
|
10334
10424
|
client,
|