@seamapi/http 1.42.0 → 1.44.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 +48 -25
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +45 -3
- package/lib/seam/connect/routes/devices/simulate/simulate.d.ts +26 -0
- package/lib/seam/connect/routes/devices/simulate/simulate.js +18 -0
- package/lib/seam/connect/routes/devices/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/locks/simulate/simulate.js +0 -9
- package/lib/seam/connect/routes/locks/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +7 -4
- package/lib/seam/connect/routes/seam-http-endpoints.js +21 -6
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/seam/connect/routes/spaces/spaces.d.ts +13 -0
- package/lib/seam/connect/routes/spaces/spaces.js +9 -0
- package/lib/seam/connect/routes/spaces/spaces.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/devices/simulate/simulate.ts +74 -0
- package/src/lib/seam/connect/routes/locks/simulate/simulate.ts +0 -15
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +51 -10
- package/src/lib/seam/connect/routes/spaces/spaces.ts +35 -0
- package/src/lib/version.ts +1 -1
package/dist/connect.cjs
CHANGED
|
@@ -3985,6 +3985,15 @@ var _SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
|
|
|
3985
3985
|
options
|
|
3986
3986
|
});
|
|
3987
3987
|
}
|
|
3988
|
+
connectToHub(parameters, options = {}) {
|
|
3989
|
+
return new SeamHttpRequest(this, {
|
|
3990
|
+
pathname: "/devices/simulate/connect_to_hub",
|
|
3991
|
+
method: "POST",
|
|
3992
|
+
body: parameters,
|
|
3993
|
+
responseKey: void 0,
|
|
3994
|
+
options
|
|
3995
|
+
});
|
|
3996
|
+
}
|
|
3988
3997
|
disconnect(parameters, options = {}) {
|
|
3989
3998
|
return new SeamHttpRequest(this, {
|
|
3990
3999
|
pathname: "/devices/simulate/disconnect",
|
|
@@ -3994,6 +4003,15 @@ var _SeamHttpDevicesSimulate = class _SeamHttpDevicesSimulate {
|
|
|
3994
4003
|
options
|
|
3995
4004
|
});
|
|
3996
4005
|
}
|
|
4006
|
+
disconnectFromHub(parameters, options = {}) {
|
|
4007
|
+
return new SeamHttpRequest(this, {
|
|
4008
|
+
pathname: "/devices/simulate/disconnect_from_hub",
|
|
4009
|
+
method: "POST",
|
|
4010
|
+
body: parameters,
|
|
4011
|
+
responseKey: void 0,
|
|
4012
|
+
options
|
|
4013
|
+
});
|
|
4014
|
+
}
|
|
3997
4015
|
remove(parameters, options = {}) {
|
|
3998
4016
|
return new SeamHttpRequest(this, {
|
|
3999
4017
|
pathname: "/devices/simulate/remove",
|
|
@@ -4368,11 +4386,6 @@ var _SeamHttpLocksSimulate = class _SeamHttpLocksSimulate {
|
|
|
4368
4386
|
constructor(apiKeyOrOptions = {}) {
|
|
4369
4387
|
this.ltsVersion = seamApiLtsVersion;
|
|
4370
4388
|
const options = parseOptions(apiKeyOrOptions);
|
|
4371
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
4372
|
-
throw new Error(
|
|
4373
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
4374
|
-
);
|
|
4375
|
-
}
|
|
4376
4389
|
this.client = "client" in options ? options.client : createClient(options);
|
|
4377
4390
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
4378
4391
|
}
|
|
@@ -4450,11 +4463,6 @@ var _SeamHttpLocksSimulate = class _SeamHttpLocksSimulate {
|
|
|
4450
4463
|
await clientSessions.get();
|
|
4451
4464
|
}
|
|
4452
4465
|
keypadCodeEntry(parameters, options = {}) {
|
|
4453
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
4454
|
-
throw new Error(
|
|
4455
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
4456
|
-
);
|
|
4457
|
-
}
|
|
4458
4466
|
return new SeamHttpRequest(this, {
|
|
4459
4467
|
pathname: "/locks/simulate/keypad_code_entry",
|
|
4460
4468
|
method: "POST",
|
|
@@ -4464,11 +4472,6 @@ var _SeamHttpLocksSimulate = class _SeamHttpLocksSimulate {
|
|
|
4464
4472
|
});
|
|
4465
4473
|
}
|
|
4466
4474
|
manualLockViaKeypad(parameters, options = {}) {
|
|
4467
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
4468
|
-
throw new Error(
|
|
4469
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
4470
|
-
);
|
|
4471
|
-
}
|
|
4472
4475
|
return new SeamHttpRequest(this, {
|
|
4473
4476
|
pathname: "/locks/simulate/manual_lock_via_keypad",
|
|
4474
4477
|
method: "POST",
|
|
@@ -6152,6 +6155,15 @@ var _SeamHttpSpaces = class _SeamHttpSpaces {
|
|
|
6152
6155
|
options
|
|
6153
6156
|
});
|
|
6154
6157
|
}
|
|
6158
|
+
getRelated(parameters, options = {}) {
|
|
6159
|
+
return new SeamHttpRequest(this, {
|
|
6160
|
+
pathname: "/spaces/get_related",
|
|
6161
|
+
method: "POST",
|
|
6162
|
+
body: parameters,
|
|
6163
|
+
responseKey: "batch",
|
|
6164
|
+
options
|
|
6165
|
+
});
|
|
6166
|
+
}
|
|
6155
6167
|
list(parameters, options = {}) {
|
|
6156
6168
|
return new SeamHttpRequest(this, {
|
|
6157
6169
|
pathname: "/spaces/list",
|
|
@@ -9126,6 +9138,13 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9126
9138
|
return seam.connect(...args);
|
|
9127
9139
|
};
|
|
9128
9140
|
}
|
|
9141
|
+
get ["/devices/simulate/connect_to_hub"]() {
|
|
9142
|
+
const { client, defaults } = this;
|
|
9143
|
+
return function devicesSimulateConnectToHub(...args) {
|
|
9144
|
+
const seam = SeamHttpDevicesSimulate.fromClient(client, defaults);
|
|
9145
|
+
return seam.connectToHub(...args);
|
|
9146
|
+
};
|
|
9147
|
+
}
|
|
9129
9148
|
get ["/devices/simulate/disconnect"]() {
|
|
9130
9149
|
const { client, defaults } = this;
|
|
9131
9150
|
return function devicesSimulateDisconnect(...args) {
|
|
@@ -9133,6 +9152,13 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9133
9152
|
return seam.disconnect(...args);
|
|
9134
9153
|
};
|
|
9135
9154
|
}
|
|
9155
|
+
get ["/devices/simulate/disconnect_from_hub"]() {
|
|
9156
|
+
const { client, defaults } = this;
|
|
9157
|
+
return function devicesSimulateDisconnectFromHub(...args) {
|
|
9158
|
+
const seam = SeamHttpDevicesSimulate.fromClient(client, defaults);
|
|
9159
|
+
return seam.disconnectFromHub(...args);
|
|
9160
|
+
};
|
|
9161
|
+
}
|
|
9136
9162
|
get ["/devices/simulate/remove"]() {
|
|
9137
9163
|
const { client, defaults } = this;
|
|
9138
9164
|
return function devicesSimulateRemove(...args) {
|
|
@@ -9205,11 +9231,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9205
9231
|
}
|
|
9206
9232
|
get ["/locks/simulate/keypad_code_entry"]() {
|
|
9207
9233
|
const { client, defaults } = this;
|
|
9208
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9209
|
-
throw new Error(
|
|
9210
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9211
|
-
);
|
|
9212
|
-
}
|
|
9213
9234
|
return function locksSimulateKeypadCodeEntry(...args) {
|
|
9214
9235
|
const seam = SeamHttpLocksSimulate.fromClient(client, defaults);
|
|
9215
9236
|
return seam.keypadCodeEntry(...args);
|
|
@@ -9217,11 +9238,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9217
9238
|
}
|
|
9218
9239
|
get ["/locks/simulate/manual_lock_via_keypad"]() {
|
|
9219
9240
|
const { client, defaults } = this;
|
|
9220
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9221
|
-
throw new Error(
|
|
9222
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9223
|
-
);
|
|
9224
|
-
}
|
|
9225
9241
|
return function locksSimulateManualLockViaKeypad(...args) {
|
|
9226
9242
|
const seam = SeamHttpLocksSimulate.fromClient(client, defaults);
|
|
9227
9243
|
return seam.manualLockViaKeypad(...args);
|
|
@@ -9477,6 +9493,13 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9477
9493
|
return seam.get(...args);
|
|
9478
9494
|
};
|
|
9479
9495
|
}
|
|
9496
|
+
get ["/spaces/get_related"]() {
|
|
9497
|
+
const { client, defaults } = this;
|
|
9498
|
+
return function spacesGetRelated(...args) {
|
|
9499
|
+
const seam = SeamHttpSpaces.fromClient(client, defaults);
|
|
9500
|
+
return seam.getRelated(...args);
|
|
9501
|
+
};
|
|
9502
|
+
}
|
|
9480
9503
|
get ["/spaces/list"]() {
|
|
9481
9504
|
const { client, defaults } = this;
|
|
9482
9505
|
return function spacesList(...args) {
|