@livetiles/reach-plugin-types 0.5.0-preview.914 → 0.5.0-preview.918
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/lib/index.d.ts +8 -9
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -481,17 +481,18 @@ declare module "libs/reach/util/common/src/SortDirection" {
|
|
|
481
481
|
declare module "libs/reach/util/context/src/ErrorContext" {
|
|
482
482
|
import { AuthenticationType } from "libs/shared/util/authentication/src/index";
|
|
483
483
|
export const ErrorContext: import("react").Context<{
|
|
484
|
-
handleFatalError: (error: FatalError) => unknown;
|
|
485
484
|
handleAccessDeniedError: (error: AccessDeniedError) => unknown;
|
|
485
|
+
handleFatalError: (error: FatalError) => unknown;
|
|
486
486
|
handleNotFoundError: (error: NotFoundError) => unknown;
|
|
487
487
|
}>;
|
|
488
|
-
export interface FatalError {
|
|
489
|
-
messageId?: string;
|
|
490
|
-
error: any;
|
|
491
|
-
}
|
|
492
488
|
export interface AccessDeniedError {
|
|
493
489
|
authType?: AuthenticationType;
|
|
494
490
|
error?: any;
|
|
491
|
+
errorMessage?: string;
|
|
492
|
+
}
|
|
493
|
+
export interface FatalError {
|
|
494
|
+
error: any;
|
|
495
|
+
messageId?: string;
|
|
495
496
|
}
|
|
496
497
|
export interface NotFoundError {
|
|
497
498
|
}
|
|
@@ -3552,13 +3553,11 @@ declare module "libs/reach/util/common/src/useReachClassNames" {
|
|
|
3552
3553
|
export function useReachClassNames(): string;
|
|
3553
3554
|
}
|
|
3554
3555
|
declare module "libs/reach/util/common/src/authorization/Authorization" {
|
|
3555
|
-
import { CurrentUser } from "libs/reach/util/common/src/index";
|
|
3556
|
-
import { SubscriptionSummary } from "libs/reach/util/common/src/index";
|
|
3557
|
-
import { FeatureSet } from "libs/reach/util/common/src/index";
|
|
3556
|
+
import { CurrentUser, FeatureSet, SubscriptionSummary } from "libs/reach/util/common/src/index";
|
|
3558
3557
|
export interface UnauthorizedAccessToSubscriptionException {
|
|
3559
3558
|
validSubscriptions: SubscriptionSummary[];
|
|
3560
3559
|
}
|
|
3561
|
-
export function useAuthorizationValidator(func: (user: CurrentUser, features: FeatureSet) => boolean): void;
|
|
3560
|
+
export function useAuthorizationValidator(func: (user: CurrentUser, features: FeatureSet) => boolean, isCheckingFeature?: boolean): void;
|
|
3562
3561
|
}
|
|
3563
3562
|
declare module "libs/reach/util/common/src/authorization/index" {
|
|
3564
3563
|
export * from "libs/reach/util/common/src/authorization/Authorization";
|