@tolt/api 0.6.0 → 0.6.1

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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -18,9 +18,9 @@ const client = new ToltApiClient({
18
18
  token: process.env.TOLT_API_KEY!, // your Tolt API key
19
19
  });
20
20
 
21
- const transactions = await client.transactions.listTransactions();
21
+ const transactions = await client.transactions.list();
22
22
  const overview = await client.reports.overview();
23
- const clicks = await client.clicks.listClicks();
23
+ const clicks = await client.clicks.list();
24
24
  ```
25
25
 
26
26
  Sub-clients cover the whole API: `transactions`, `commissions`, `customers`, `partners`, `programs`, `links`, `promotionCodes`, `groups`, `flows`, `clicks`, `reports`. Every path, request, and response is typed from the spec.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolt/api",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "TypeScript SDK for the Tolt Public API",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {