@anzusystems/common-admin 0.0.41 → 0.0.43
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.
|
@@ -2802,10 +2802,15 @@ export declare const ANotFoundView: DefineComponent<{
|
|
|
2802
2802
|
};
|
|
2803
2803
|
}>>, {}>;
|
|
2804
2804
|
|
|
2805
|
-
declare class AnzuApiForbiddenError extends Error {
|
|
2805
|
+
export declare class AnzuApiForbiddenError extends Error {
|
|
2806
2806
|
constructor(cause?: Error, message?: string);
|
|
2807
2807
|
}
|
|
2808
2808
|
|
|
2809
|
+
export declare class AnzuApiForbiddenOperationError extends Error {
|
|
2810
|
+
detail: string;
|
|
2811
|
+
constructor(axiosError: AxiosError, cause?: Error, message?: string);
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2809
2814
|
export declare class AnzuApiResponseCodeError extends Error {
|
|
2810
2815
|
code: number;
|
|
2811
2816
|
constructor(code: number, cause?: Error, message?: string);
|
|
@@ -2816,6 +2821,12 @@ export declare class AnzuApiValidationError extends Error {
|
|
|
2816
2821
|
constructor(axiosError: AxiosError, system: string, entity: string, cause?: Error, message?: string);
|
|
2817
2822
|
}
|
|
2818
2823
|
|
|
2824
|
+
export declare interface AnzuApiValidationResponseData {
|
|
2825
|
+
contextId: string;
|
|
2826
|
+
error: string;
|
|
2827
|
+
fields: ValidationResponseDataFields;
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2819
2830
|
export declare class AnzuFatalError extends Error {
|
|
2820
2831
|
constructor(cause?: Error, message?: string);
|
|
2821
2832
|
}
|
|
@@ -3369,6 +3380,12 @@ export declare const AUserAndTimeTrackingFields: DefineComponent<{
|
|
|
3369
3380
|
|
|
3370
3381
|
export declare const AvailableLanguagesSymbol: unique symbol;
|
|
3371
3382
|
|
|
3383
|
+
export declare const axiosErrorResponseHasForbiddenOperationData: (error: Error) => any;
|
|
3384
|
+
|
|
3385
|
+
export declare const axiosErrorResponseHasValidationData: (error: Error) => any;
|
|
3386
|
+
|
|
3387
|
+
export declare const axiosErrorResponseIsForbidden: (error: Error) => boolean;
|
|
3388
|
+
|
|
3372
3389
|
export declare const booleanToInteger: (value: boolean) => 1 | 0;
|
|
3373
3390
|
|
|
3374
3391
|
export declare const browserHistoryReplaceUrlByRouter: (router: Router, to: RouteLocationRaw) => void;
|
|
@@ -3565,6 +3582,16 @@ export declare type IntegerId = number;
|
|
|
3565
3582
|
|
|
3566
3583
|
export declare type IntegerIdNullable = number | null;
|
|
3567
3584
|
|
|
3585
|
+
export declare const isAnzuApiForbiddenError: (error: any) => error is AnzuApiForbiddenError;
|
|
3586
|
+
|
|
3587
|
+
export declare const isAnzuApiForbiddenOperationError: (error: any) => error is AnzuApiForbiddenOperationError;
|
|
3588
|
+
|
|
3589
|
+
export declare const isAnzuApiResponseCodeError: (error: any) => error is AnzuApiResponseCodeError;
|
|
3590
|
+
|
|
3591
|
+
export declare const isAnzuApiValidationError: (error: any) => error is AnzuApiValidationError;
|
|
3592
|
+
|
|
3593
|
+
export declare const isAnzuFatalError: (error: any) => error is AnzuFatalError;
|
|
3594
|
+
|
|
3568
3595
|
/**
|
|
3569
3596
|
* @template T Type used for request payload, by default same as Response type
|
|
3570
3597
|
* @template R Response type override, optional
|
|
@@ -4892,11 +4919,15 @@ export declare function useValidate(): {
|
|
|
4892
4919
|
};
|
|
4893
4920
|
};
|
|
4894
4921
|
|
|
4895
|
-
declare interface ValidationError {
|
|
4922
|
+
export declare interface ValidationError {
|
|
4896
4923
|
field: string;
|
|
4897
4924
|
errors: string[];
|
|
4898
4925
|
}
|
|
4899
4926
|
|
|
4927
|
+
declare interface ValidationResponseDataFields {
|
|
4928
|
+
[key: string]: string[];
|
|
4929
|
+
}
|
|
4930
|
+
|
|
4900
4931
|
export declare type ValidationScope = string | number | boolean | symbol | undefined;
|
|
4901
4932
|
|
|
4902
4933
|
export declare interface ValueObjectOption<T> {
|
package/dist/common-admin.es.js
CHANGED
|
@@ -11427,6 +11427,8 @@ export {
|
|
|
11427
11427
|
Eh as AUnauthorizedView,
|
|
11428
11428
|
yh as AUserAndTimeTrackingFields,
|
|
11429
11429
|
dl as Acl,
|
|
11430
|
+
ft as AnzuApiForbiddenError,
|
|
11431
|
+
ht as AnzuApiForbiddenOperationError,
|
|
11430
11432
|
pt as AnzuApiResponseCodeError,
|
|
11431
11433
|
mt as AnzuApiValidationError,
|
|
11432
11434
|
Fe as AnzuFatalError,
|
|
@@ -11463,6 +11465,9 @@ export {
|
|
|
11463
11465
|
Zh as arrayFromArgs,
|
|
11464
11466
|
Gh as arrayItemToggle,
|
|
11465
11467
|
Kh as arrayToString,
|
|
11468
|
+
Mt as axiosErrorResponseHasForbiddenOperationData,
|
|
11469
|
+
At as axiosErrorResponseHasValidationData,
|
|
11470
|
+
Dt as axiosErrorResponseIsForbidden,
|
|
11466
11471
|
Lh as booleanToInteger,
|
|
11467
11472
|
Qh as browserHistoryReplaceUrlByRouter,
|
|
11468
11473
|
Qs as browserHistoryReplaceUrlByString,
|
|
@@ -11479,6 +11484,11 @@ export {
|
|
|
11479
11484
|
rg as defineCached,
|
|
11480
11485
|
lt as eventClickBlur,
|
|
11481
11486
|
le as i18n,
|
|
11487
|
+
Fr as isAnzuApiForbiddenError,
|
|
11488
|
+
Li as isAnzuApiForbiddenOperationError,
|
|
11489
|
+
Er as isAnzuApiResponseCodeError,
|
|
11490
|
+
Pr as isAnzuApiValidationError,
|
|
11491
|
+
Ir as isAnzuFatalError,
|
|
11482
11492
|
Oe as isArray,
|
|
11483
11493
|
ar as isBoolean,
|
|
11484
11494
|
sl as isCreatedByAware,
|