@fill-easy/api 1.0.13 → 1.0.14

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 +30 -39
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,39 +1,30 @@
1
- # Fill Easy API SDK
2
-
3
- Type-safe SDK for Fill Easy API, generated from OpenAPI specification.
4
-
5
- Read full docs here: https://fill-easy.gitbook.io/fill-easy-docs
6
-
7
- Made with https://openapi-ts.dev/
8
-
9
- ## Installation
10
-
11
- ```bash
12
- npm install @fill-easy/api
13
- ```
14
-
15
- ## Usage
16
-
17
- ```typescript
18
- import { createApiClient } from "@fill-easy/api"
19
-
20
- const client = createApiClient({
21
- baseUrl: "https://sandbox.staging-api.fill-easy.com",
22
- clientId: "...",
23
- clientSecret: "...",
24
- })
25
-
26
- // Fully typed API calls
27
- const { data, error } = await client.POST("/iamsmart/v2/request/auth", {
28
- body: {
29
- redirect: "https://example.com/callback",
30
- source: "Android_Chrome",
31
- },
32
- })
33
-
34
- if (error) {
35
- console.error(error)
36
- } else {
37
- console.log(data)
38
- }
39
- ```
1
+ # Fill Easy API SDK
2
+ Fill Easy Services API using https://openapi-ts.dev/
3
+
4
+ Read full docs here: https://docs.fill-easy.com
5
+
6
+ ## Usage
7
+
8
+ ```typescript
9
+ import { createApiClient } from "@fill-easy/api"
10
+
11
+ const client = createApiClient({
12
+ baseUrl: "https://sandbox.staging-api.fill-easy.com",
13
+ clientId: "...",
14
+ clientSecret: "...",
15
+ })
16
+
17
+ // Fully typed API calls
18
+ const { data, error } = await client.POST("/iamsmart/v2/request/auth", {
19
+ body: {
20
+ redirect: "https://example.com/callback",
21
+ source: "Android_Chrome",
22
+ },
23
+ })
24
+
25
+ if (error) {
26
+ console.error(error)
27
+ } else {
28
+ console.log(data)
29
+ }
30
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fill-easy/api",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "type": "module",
5
5
  "description": "Type-safe SDK for Fill Easy API",
6
6
  "main": "dist/index.js",