Skip to content

Commit 595560a

Browse files
committed
feat: Add networks
1 parent 77cddf7 commit 595560a

File tree

4 files changed

+32
-23
lines changed

4 files changed

+32
-23
lines changed

generate-routes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const routePaths = [
2828
'/devices/unmanaged',
2929
'/events',
3030
'/locks',
31+
'/networks',
3132
'/noise_sensors',
3233
'/noise_sensors/noise_thresholds',
3334
'/phones',

src/lib/seam/connect/routes/index.ts

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/seam/connect/routes/network.ts renamed to src/lib/seam/connect/routes/networks.ts

Lines changed: 25 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/seam/connect/seam-http.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
} from './options.js'
1919
import { limitToSeamHttpRequestOptions, parseOptions } from './parse-options.js'
2020
import {
21+
SeamHttpNetworks,
2122
SeamHttpAccessCodes,
2223
SeamHttpAcs,
2324
SeamHttpActionAttempts,
@@ -171,6 +172,10 @@ export class SeamHttp {
171172
return SeamHttpLocks.fromClient(this.client, this.defaults)
172173
}
173174

175+
get networks(): SeamHttpNetworks {
176+
return SeamHttpNetworks.fromClient(this.client, this.defaults)
177+
}
178+
174179
get noiseSensors(): SeamHttpNoiseSensors {
175180
return SeamHttpNoiseSensors.fromClient(this.client, this.defaults)
176181
}

0 commit comments

Comments
 (0)