@profcomff/api-uilib 2024.7.2-5.1 → 2024.7.25

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 +5 -16
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -8,22 +8,11 @@
8
8
  ## Использование
9
9
 
10
10
  ```ts
11
- import { createClient } from '@profcomff/api-uilib';
11
+ import { client } from @profcomff/api-uilib;
12
12
 
13
- // Setup client with base API path
14
- // You can use environment `import.meta.env.VITE_API_URL` for example
15
- const apiClient = createClient("https://api.test.profcomff.com");
16
-
17
- // Setup token for requests to API
18
- // It is optional, only for routes with authention
19
- setupAuth("myApiTokenHere");
20
-
21
- // Make request
22
- const me_with_scopes = await apiClient.GET("/auth/me", {
23
- params: {
24
- query: {
25
- info: ["session_scopes"]
26
- }
27
- }
13
+ const me = await client.GET('/auth/me', {
14
+ params: {
15
+ info: ["groups", "indirect_groups", "session_scopes", "user_scopes", "auth_methods"],
16
+ },
28
17
  });
29
18
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@profcomff/api-uilib",
3
- "version": "2024.07.25.1",
3
+ "version": "2024.07.25",
4
4
  "description": "API wrappers, autogenerated from openapi.json files",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.d.ts",