@torrow/sdk-client 0.1.0 → 0.3.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 CHANGED
@@ -6,6 +6,8 @@ TypeScript/Node client SDK for the Torrow REST API.
6
6
  - `HttpClient`, `RawClient`, `TorrowHttpError`
7
7
  - domain facades from `resources/*`
8
8
  - OpenAPI types (`paths`, `components`)
9
+ - enum-like wire constants: `DeviceTypeValues`, `AccountTypeValues`, `VerificationMethodValues`, `TokenStatusValues`, `CaseStateValues`, …
10
+ - communication helpers: `communicationHref`, `resolveCommunicationBrand` (icons: optional `@torrow/sdk-brand-assets`)
9
11
 
10
12
  ## Install
11
13
 
@@ -16,11 +18,14 @@ npm install @torrow/sdk-client
16
18
  ## Usage
17
19
 
18
20
  ```ts
19
- import { TorrowClient } from "@torrow/sdk-client";
21
+ import { TorrowClient, communicationHref, resolveCommunicationBrand } from "@torrow/sdk-client";
20
22
 
21
23
  const client = new TorrowClient({
22
24
  getAccessToken: async () => process.env.TORROW_ACCESS_TOKEN?.trim() || undefined,
23
25
  });
26
+
27
+ const href = communicationHref(comm);
28
+ const brand = resolveCommunicationBrand(comm);
24
29
  ```
25
30
 
26
31
  ## Field docs package