@sales-planner/http-client 0.16.1 → 0.16.2
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 +11 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -86,7 +86,17 @@ const result = await client.shops.deleteData(shopId);
|
|
|
86
86
|
console.log(result); // { skusDeleted, salesHistoryDeleted, brandsDeleted, ... }
|
|
87
87
|
```
|
|
88
88
|
|
|
89
|
-
Other system clients:
|
|
89
|
+
Other system clients:
|
|
90
|
+
|
|
91
|
+
```typescript
|
|
92
|
+
// Get current user with roles and tenants
|
|
93
|
+
const me = await client.me.getMe();
|
|
94
|
+
console.log(me.email, me.roles, me.tenants);
|
|
95
|
+
|
|
96
|
+
// Get entities metadata (for UI documentation)
|
|
97
|
+
const metadata = await client.metadata.getEntitiesMetadata();
|
|
98
|
+
console.log(metadata); // { entities: [...], version: "..." }
|
|
99
|
+
```
|
|
90
100
|
|
|
91
101
|
## Error Handling
|
|
92
102
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sales-planner/http-client",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2",
|
|
4
4
|
"description": "HTTP client for Sales Planner API",
|
|
5
5
|
"author": "Damir Manapov",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,17 +23,17 @@
|
|
|
23
23
|
"dist",
|
|
24
24
|
"README.md"
|
|
25
25
|
],
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@sales-planner/shared": "0.14.1"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"typescript": "^5.7.3"
|
|
31
|
+
},
|
|
26
32
|
"scripts": {
|
|
27
33
|
"build": "tsc",
|
|
28
34
|
"typecheck": "tsc --noEmit",
|
|
29
35
|
"lint": "biome lint --error-on-warnings src",
|
|
30
36
|
"format": "biome format --write src",
|
|
31
37
|
"format:check": "biome format src"
|
|
32
|
-
},
|
|
33
|
-
"dependencies": {
|
|
34
|
-
"@sales-planner/shared": "workspace:*"
|
|
35
|
-
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"typescript": "^5.7.3"
|
|
38
38
|
}
|
|
39
|
-
}
|
|
39
|
+
}
|