@sudobility/testomniac_client 0.0.85 → 0.0.87
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 +18 -11
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# @sudobility/
|
|
1
|
+
# @sudobility/testomniac_client
|
|
2
2
|
|
|
3
3
|
API client SDK for Starter with TanStack Query hooks.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
bun add @sudobility/
|
|
8
|
+
bun add @sudobility/testomniac_client
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Peer dependencies:
|
|
@@ -17,14 +17,21 @@ bun add react @tanstack/react-query @sudobility/types
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
19
|
```ts
|
|
20
|
-
import { StarterClient } from
|
|
21
|
-
import {
|
|
20
|
+
import { StarterClient } from '@sudobility/testomniac_client';
|
|
21
|
+
import {
|
|
22
|
+
useHistories,
|
|
23
|
+
useHistoriesTotal,
|
|
24
|
+
} from '@sudobility/testomniac_client/hooks';
|
|
22
25
|
|
|
23
26
|
// Create the HTTP client (dependency-injected NetworkClient)
|
|
24
|
-
const client = new StarterClient({
|
|
27
|
+
const client = new StarterClient({
|
|
28
|
+
baseUrl: 'https://api.example.com',
|
|
29
|
+
networkClient,
|
|
30
|
+
});
|
|
25
31
|
|
|
26
32
|
// In a React component:
|
|
27
|
-
const { data, createHistory, updateHistory, deleteHistory } =
|
|
33
|
+
const { data, createHistory, updateHistory, deleteHistory } =
|
|
34
|
+
useHistories(config);
|
|
28
35
|
const { data: total } = useHistoriesTotal(config);
|
|
29
36
|
```
|
|
30
37
|
|
|
@@ -59,11 +66,11 @@ bun run verify # All checks + build (use before commit)
|
|
|
59
66
|
|
|
60
67
|
## Related Packages
|
|
61
68
|
|
|
62
|
-
- **
|
|
63
|
-
- **
|
|
64
|
-
- **
|
|
65
|
-
- **
|
|
66
|
-
- **
|
|
69
|
+
- **testomniac_types** -- Shared type definitions (imported for API types)
|
|
70
|
+
- **testomniac_api** -- Backend server this client communicates with
|
|
71
|
+
- **testomniac_lib** -- Business logic library that wraps this client's hooks
|
|
72
|
+
- **testomniac_app** -- Web frontend (consumes transitively via testomniac_lib)
|
|
73
|
+
- **testomniac_app_rn** -- React Native app (consumes transitively via testomniac_lib)
|
|
67
74
|
|
|
68
75
|
## License
|
|
69
76
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sudobility/testomniac_client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.87",
|
|
4
4
|
"description": "Testomniac API client library with TanStack Query hooks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"react": ">=18.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@sudobility/testomniac_types": "^0.0.
|
|
43
|
+
"@sudobility/testomniac_types": "^0.0.68",
|
|
44
44
|
"@sudobility/types": "^1.9.62",
|
|
45
45
|
"@tanstack/react-query": "^5.90.5",
|
|
46
46
|
"@types/react": "^19.2.2",
|
|
@@ -58,6 +58,6 @@
|
|
|
58
58
|
},
|
|
59
59
|
"repository": {
|
|
60
60
|
"type": "git",
|
|
61
|
-
"url": "https://github.com/johnqh/
|
|
61
|
+
"url": "https://github.com/johnqh/entitytestomniac_client.git"
|
|
62
62
|
}
|
|
63
63
|
}
|