@navservice/core 1.121.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.
package/build/es/index.js
CHANGED
|
@@ -762,7 +762,9 @@ const utils = {
|
|
|
762
762
|
session_sorage: utils_session_storage,
|
|
763
763
|
sistema: utils_sistema,
|
|
764
764
|
hooks: utils_hooks,
|
|
765
|
-
environment: utils_environment
|
|
765
|
+
environment: utils_environment,
|
|
766
|
+
axios: axios,
|
|
767
|
+
zod: v4
|
|
766
768
|
};
|
|
767
769
|
const src_utils = utils;
|
|
768
770
|
export { types as TypesCore, src_utils as utils };
|
|
@@ -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,3 +1,4 @@
|
|
|
1
|
+
import _zod from "zod/v4";
|
|
1
2
|
declare const utils: {
|
|
2
3
|
api: {
|
|
3
4
|
new (): {};
|
|
@@ -183,5 +184,7 @@ declare const utils: {
|
|
|
183
184
|
set(key: import("..").TypesCore.Geral.BaseUrl, props: string): void;
|
|
184
185
|
get(key: import("..").TypesCore.Geral.BaseUrl): import("..").TypesCore.Geral.BaseUrl;
|
|
185
186
|
};
|
|
187
|
+
axios: import("axios").AxiosStatic;
|
|
188
|
+
zod: typeof _zod;
|
|
186
189
|
};
|
|
187
190
|
export default utils;
|
package/build/lib/index.cjs
CHANGED
|
@@ -958,6 +958,8 @@ const _environment = class _environment {
|
|
|
958
958
|
|
|
959
959
|
|
|
960
960
|
|
|
961
|
+
|
|
962
|
+
|
|
961
963
|
const utils = {
|
|
962
964
|
api: utils_api,
|
|
963
965
|
data: utils_data,
|
|
@@ -968,7 +970,9 @@ const utils = {
|
|
|
968
970
|
session_sorage: utils_session_storage,
|
|
969
971
|
sistema: utils_sistema,
|
|
970
972
|
hooks: utils_hooks,
|
|
971
|
-
environment: utils_environment
|
|
973
|
+
environment: utils_environment,
|
|
974
|
+
axios: (external_axios_default()),
|
|
975
|
+
zod: (v4_default())
|
|
972
976
|
};
|
|
973
977
|
/* export default */ const src_utils = (utils);
|
|
974
978
|
|
|
@@ -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,3 +1,4 @@
|
|
|
1
|
+
import _zod from "zod/v4";
|
|
1
2
|
declare const utils: {
|
|
2
3
|
api: {
|
|
3
4
|
new (): {};
|
|
@@ -183,5 +184,7 @@ declare const utils: {
|
|
|
183
184
|
set(key: import("..").TypesCore.Geral.BaseUrl, props: string): void;
|
|
184
185
|
get(key: import("..").TypesCore.Geral.BaseUrl): import("..").TypesCore.Geral.BaseUrl;
|
|
185
186
|
};
|
|
187
|
+
axios: import("axios").AxiosStatic;
|
|
188
|
+
zod: typeof _zod;
|
|
186
189
|
};
|
|
187
190
|
export default utils;
|