@seamapi/http 1.44.0 → 1.45.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/README.md +6 -6
- package/dist/connect.d.cts +1 -1
- package/dist/index.cjs +10597 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -3
- package/index.d.ts +1 -2
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/lib/version.ts +1 -1
package/README.md
CHANGED
|
@@ -83,7 +83,7 @@ $ npm install -D @seamapi/types@latest
|
|
|
83
83
|
#### List devices
|
|
84
84
|
|
|
85
85
|
```ts
|
|
86
|
-
import { SeamHttp } from '@seamapi/http
|
|
86
|
+
import { SeamHttp } from '@seamapi/http'
|
|
87
87
|
|
|
88
88
|
const seam = new SeamHttp()
|
|
89
89
|
const devices = await seam.devices.list()
|
|
@@ -92,7 +92,7 @@ const devices = await seam.devices.list()
|
|
|
92
92
|
#### Unlock a door
|
|
93
93
|
|
|
94
94
|
```ts
|
|
95
|
-
import { SeamHttp } from '@seamapi/http
|
|
95
|
+
import { SeamHttp } from '@seamapi/http'
|
|
96
96
|
|
|
97
97
|
const seam = new SeamHttp()
|
|
98
98
|
const lock = await seam.locks.get({ name: 'Front Door' })
|
|
@@ -277,7 +277,7 @@ import {
|
|
|
277
277
|
SeamHttp,
|
|
278
278
|
isSeamActionAttemptFailedError,
|
|
279
279
|
isSeamActionAttemptTimeoutError,
|
|
280
|
-
} from '@seamapi/http
|
|
280
|
+
} from '@seamapi/http'
|
|
281
281
|
|
|
282
282
|
const seam = new SeamHttp('your-api-key', {
|
|
283
283
|
waitForActionAttempt: {
|
|
@@ -495,7 +495,7 @@ Options are deep merged with the default options.
|
|
|
495
495
|
The Axios client is exposed and may be used or configured directly:
|
|
496
496
|
|
|
497
497
|
```ts
|
|
498
|
-
import { SeamHttp, DevicesListResponse } from '@seamapi/http
|
|
498
|
+
import { SeamHttp, DevicesListResponse } from '@seamapi/http'
|
|
499
499
|
|
|
500
500
|
const seam = new SeamHttp()
|
|
501
501
|
|
|
@@ -518,7 +518,7 @@ The `SeamHttpEndpoints` class offers an alternative path-based interface to ever
|
|
|
518
518
|
Each endpoint is exposed as simple property that returns the corresponding method from `SeamHttp`.
|
|
519
519
|
|
|
520
520
|
```ts
|
|
521
|
-
import { SeamHttpEndpoints } from '@seamapi/http
|
|
521
|
+
import { SeamHttpEndpoints } from '@seamapi/http'
|
|
522
522
|
|
|
523
523
|
const seam = new SeamHttpEndpoints()
|
|
524
524
|
const devices = await seam['/devices/list']()
|
|
@@ -532,7 +532,7 @@ Do not use the undocumented API in production environments.
|
|
|
532
532
|
Seam is not responsible for any issues you may encounter with the undocumented API.
|
|
533
533
|
|
|
534
534
|
```ts
|
|
535
|
-
import { SeamHttp } from '@seamapi/http
|
|
535
|
+
import { SeamHttp } from '@seamapi/http'
|
|
536
536
|
|
|
537
537
|
const seam = new SeamHttp({ isUndocumentedApiEnabled: true })
|
|
538
538
|
```
|
package/dist/connect.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
export * from '@seamapi/url-search-params-serializer';
|
|
1
2
|
import { RouteRequestBody, RouteResponse, RouteRequestParams, ActionAttempt, openapi } from '@seamapi/types/connect';
|
|
2
3
|
import { AxiosRequestConfig, AxiosInstance, Method } from 'axios';
|
|
3
4
|
import { AxiosRetry } from 'axios-retry';
|
|
4
|
-
export * from '@seamapi/url-search-params-serializer';
|
|
5
5
|
|
|
6
6
|
type Client = AxiosInstance;
|
|
7
7
|
interface ClientOptions {
|