@tammsyr/admin-api-client 1.0.0 → 1.0.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.
- package/README.md +5 -5
- package/index.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @tammsyr/admin-api-client
|
|
2
2
|
|
|
3
3
|
TypeScript client for TAMM Admin Service API - Auto-generated from OpenAPI specification.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @
|
|
8
|
+
npm install @tammsyr/admin-api-client
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Quick Start
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { AdminApiClient } from '@
|
|
14
|
+
import { AdminApiClient } from '@tammsyr/admin-api-client';
|
|
15
15
|
|
|
16
16
|
// Create client instance
|
|
17
17
|
const adminClient = new AdminApiClient({
|
|
@@ -69,7 +69,7 @@ client.clearToken();
|
|
|
69
69
|
### Using Individual API Classes
|
|
70
70
|
|
|
71
71
|
```typescript
|
|
72
|
-
import { Admins, HttpClient } from '@
|
|
72
|
+
import { Admins, HttpClient } from '@tammsyr/admin-api-client';
|
|
73
73
|
|
|
74
74
|
const httpClient = new HttpClient({
|
|
75
75
|
baseURL: 'http://localhost:3006',
|
|
@@ -101,7 +101,7 @@ import type {
|
|
|
101
101
|
AdminRoleDto,
|
|
102
102
|
AdminPermissionDto,
|
|
103
103
|
// ... all other types
|
|
104
|
-
} from '@
|
|
104
|
+
} from '@tammsyr/admin-api-client';
|
|
105
105
|
```
|
|
106
106
|
|
|
107
107
|
## Error Handling
|
package/index.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
2
|
+
* @tammsyr/admin-api-client
|
|
3
3
|
*
|
|
4
4
|
* TypeScript client for TAMM Admin Service API
|
|
5
5
|
* Auto-generated from OpenAPI specification
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* ```typescript
|
|
9
|
-
* import { AdminApiClient } from '@
|
|
9
|
+
* import { AdminApiClient } from '@tammsyr/admin-api-client';
|
|
10
10
|
*
|
|
11
11
|
* const client = new AdminApiClient({
|
|
12
12
|
* baseURL: 'http://localhost:3006',
|