@navservice/core 1.122.0 → 1.123.0
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import t from ".";
|
|
2
2
|
import z4 from "zod/v4";
|
|
3
|
+
import { AxiosResponse, AxiosError } from "axios";
|
|
3
4
|
declare namespace TypeControllerResponse {
|
|
4
5
|
const BaseResponseSchema: z4.ZodObject<{
|
|
5
6
|
status: z4.ZodUnion<readonly [z4.ZodLiteral<200>, z4.ZodLiteral<201>, z4.ZodLiteral<202>, z4.ZodLiteral<204>, z4.ZodLiteral<400>, z4.ZodLiteral<401>, z4.ZodLiteral<403>, z4.ZodLiteral<404>, z4.ZodLiteral<409>, z4.ZodLiteral<422>, z4.ZodLiteral<500>, z4.ZodLiteral<428>, z4.ZodLiteral<405>]>;
|
|
@@ -25,6 +26,7 @@ declare namespace TypeControllerResponse {
|
|
|
25
26
|
results?: T;
|
|
26
27
|
};
|
|
27
28
|
export type Output<T = unknown> = BaseResponse<T>;
|
|
29
|
+
export type AxiosRes<T = unknown> = AxiosResponse<BaseResponse<T>>;
|
|
28
30
|
const FileResponseParamsSchema: z4.ZodObject<{
|
|
29
31
|
status: z4.ZodUnion<readonly [z4.ZodLiteral<200>, z4.ZodLiteral<201>, z4.ZodLiteral<202>, z4.ZodLiteral<204>, z4.ZodLiteral<400>, z4.ZodLiteral<401>, z4.ZodLiteral<403>, z4.ZodLiteral<404>, z4.ZodLiteral<409>, z4.ZodLiteral<422>, z4.ZodLiteral<500>, z4.ZodLiteral<428>, z4.ZodLiteral<405>]>;
|
|
30
32
|
message: z4.ZodOptional<z4.ZodString>;
|
|
@@ -49,6 +51,7 @@ declare namespace TypeControllerResponse {
|
|
|
49
51
|
results?: T;
|
|
50
52
|
};
|
|
51
53
|
type Output<T = unknown> = BaseResponse<T>;
|
|
54
|
+
type AxiosErr<T = unknown> = AxiosError<BaseResponse<T>>;
|
|
52
55
|
}
|
|
53
56
|
export {};
|
|
54
57
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import t from ".";
|
|
2
2
|
import z4 from "zod/v4";
|
|
3
|
+
import { AxiosResponse, AxiosError } from "axios";
|
|
3
4
|
declare namespace TypeControllerResponse {
|
|
4
5
|
const BaseResponseSchema: z4.ZodObject<{
|
|
5
6
|
status: z4.ZodUnion<readonly [z4.ZodLiteral<200>, z4.ZodLiteral<201>, z4.ZodLiteral<202>, z4.ZodLiteral<204>, z4.ZodLiteral<400>, z4.ZodLiteral<401>, z4.ZodLiteral<403>, z4.ZodLiteral<404>, z4.ZodLiteral<409>, z4.ZodLiteral<422>, z4.ZodLiteral<500>, z4.ZodLiteral<428>, z4.ZodLiteral<405>]>;
|
|
@@ -25,6 +26,7 @@ declare namespace TypeControllerResponse {
|
|
|
25
26
|
results?: T;
|
|
26
27
|
};
|
|
27
28
|
export type Output<T = unknown> = BaseResponse<T>;
|
|
29
|
+
export type AxiosRes<T = unknown> = AxiosResponse<BaseResponse<T>>;
|
|
28
30
|
const FileResponseParamsSchema: z4.ZodObject<{
|
|
29
31
|
status: z4.ZodUnion<readonly [z4.ZodLiteral<200>, z4.ZodLiteral<201>, z4.ZodLiteral<202>, z4.ZodLiteral<204>, z4.ZodLiteral<400>, z4.ZodLiteral<401>, z4.ZodLiteral<403>, z4.ZodLiteral<404>, z4.ZodLiteral<409>, z4.ZodLiteral<422>, z4.ZodLiteral<500>, z4.ZodLiteral<428>, z4.ZodLiteral<405>]>;
|
|
30
32
|
message: z4.ZodOptional<z4.ZodString>;
|
|
@@ -49,6 +51,7 @@ declare namespace TypeControllerResponse {
|
|
|
49
51
|
results?: T;
|
|
50
52
|
};
|
|
51
53
|
type Output<T = unknown> = BaseResponse<T>;
|
|
54
|
+
type AxiosErr<T = unknown> = AxiosError<BaseResponse<T>>;
|
|
52
55
|
}
|
|
53
56
|
export {};
|
|
54
57
|
}
|