@vulog/aima-client 1.0.8 → 1.0.9

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/dist/index.d.mts CHANGED
@@ -14,6 +14,13 @@ type ClientOptions = {
14
14
  onRefreshToken?: (refreshToken: string) => void;
15
15
  onLog?: (...args: any[]) => void;
16
16
  };
17
+ type ClientError = {
18
+ formattedError: {
19
+ status: number;
20
+ data: any;
21
+ };
22
+ originalError: any;
23
+ };
17
24
  type Client = AxiosInstance & {
18
25
  refreshToken?: string;
19
26
  signInWithPassword: (username: string, password: string) => Promise<void>;
@@ -21,4 +28,4 @@ type Client = AxiosInstance & {
21
28
 
22
29
  declare const getClient: (options: ClientOptions) => Client;
23
30
 
24
- export { type ClientOptions, getClient };
31
+ export { type Client, type ClientError, type ClientOptions, getClient };
package/dist/index.d.ts CHANGED
@@ -14,6 +14,13 @@ type ClientOptions = {
14
14
  onRefreshToken?: (refreshToken: string) => void;
15
15
  onLog?: (...args: any[]) => void;
16
16
  };
17
+ type ClientError = {
18
+ formattedError: {
19
+ status: number;
20
+ data: any;
21
+ };
22
+ originalError: any;
23
+ };
17
24
  type Client = AxiosInstance & {
18
25
  refreshToken?: string;
19
26
  signInWithPassword: (username: string, password: string) => Promise<void>;
@@ -21,4 +28,4 @@ type Client = AxiosInstance & {
21
28
 
22
29
  declare const getClient: (options: ClientOptions) => Client;
23
30
 
24
- export { type ClientOptions, getClient };
31
+ export { type Client, type ClientError, type ClientOptions, getClient };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vulog/aima-client",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import getClient from './getClient';
2
- import { ClientOptions } from './types';
2
+ import { ClientOptions, Client, ClientError } from './types';
3
3
 
4
- export { ClientOptions, getClient };
4
+ export { ClientOptions, getClient, Client, ClientError };