@zengenti/contensis-react-base 3.0.0-beta.4 → 3.0.0-beta.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.
- package/README.md +4 -4
- package/cjs/{App-581b6653.js → App-2ff001f6.js} +139 -124
- package/cjs/App-2ff001f6.js.map +1 -0
- package/cjs/{RouteLoader-282c03ab.js → RouteLoader-2ed14766.js} +44 -30
- package/cjs/RouteLoader-2ed14766.js.map +1 -0
- package/cjs/ToJs-09204afd.js +129 -0
- package/cjs/ToJs-09204afd.js.map +1 -0
- package/cjs/{actions-12871aca.js → actions-6b9ef168.js} +9 -8
- package/cjs/actions-6b9ef168.js.map +1 -0
- package/cjs/client.js +43 -22
- package/cjs/client.js.map +1 -1
- package/cjs/contensis-react-base.js +46 -49
- package/cjs/contensis-react-base.js.map +1 -1
- package/cjs/forms.js +275 -275
- package/cjs/forms.js.map +1 -1
- package/cjs/fromJSLeaveImmer-65d26804.js +28 -0
- package/cjs/fromJSLeaveImmer-65d26804.js.map +1 -0
- package/cjs/{login-81d7f9ef.js → login-d67b82aa.js} +113 -79
- package/cjs/login-d67b82aa.js.map +1 -0
- package/cjs/{reducers-fde41d6b.js → reducers-3a4f8971.js} +26 -25
- package/cjs/reducers-3a4f8971.js.map +1 -0
- package/cjs/redux.js +13 -14
- package/cjs/redux.js.map +1 -1
- package/cjs/routing.js +9 -8
- package/cjs/routing.js.map +1 -1
- package/cjs/search.js +418 -256
- package/cjs/search.js.map +1 -1
- package/cjs/{selectors-ed26ed97.js → selectors-2c1b1183.js} +8 -4
- package/cjs/selectors-2c1b1183.js.map +1 -0
- package/cjs/user.js +32 -23
- package/cjs/user.js.map +1 -1
- package/cjs/util.js +49 -46
- package/cjs/util.js.map +1 -1
- package/cjs/{version-f061e409.js → version-951bc80c.js} +58 -52
- package/cjs/version-951bc80c.js.map +1 -0
- package/cjs/{version-0c190929.js → version-dcfdafd9.js} +5 -5
- package/cjs/{version-0c190929.js.map → version-dcfdafd9.js.map} +1 -1
- package/esm/{App-122f28a3.js → App-7b3aee16.js} +120 -124
- package/esm/App-7b3aee16.js.map +1 -0
- package/esm/{RouteLoader-c2faac87.js → RouteLoader-d4b4d320.js} +37 -23
- package/esm/RouteLoader-d4b4d320.js.map +1 -0
- package/esm/ToJs-2627ce21.js +99 -0
- package/esm/ToJs-2627ce21.js.map +1 -0
- package/esm/{actions-3cc39599.js → actions-5437f43d.js} +8 -7
- package/esm/actions-5437f43d.js.map +1 -0
- package/esm/client.js +22 -20
- package/esm/client.js.map +1 -1
- package/esm/contensis-react-base.js +28 -31
- package/esm/contensis-react-base.js.map +1 -1
- package/esm/forms.js +5 -5
- package/esm/forms.js.map +1 -1
- package/esm/fromJSLeaveImmer-e2f0f331.js +26 -0
- package/esm/fromJSLeaveImmer-e2f0f331.js.map +1 -0
- package/esm/{login-92db44d1.js → login-f6dfbe1b.js} +97 -60
- package/esm/login-f6dfbe1b.js.map +1 -0
- package/esm/{reducers-d6c0edb1.js → reducers-8e5d6232.js} +26 -25
- package/esm/reducers-8e5d6232.js.map +1 -0
- package/esm/redux.js +14 -13
- package/esm/redux.js.map +1 -1
- package/esm/routing.js +9 -8
- package/esm/routing.js.map +1 -1
- package/esm/search.js +387 -244
- package/esm/search.js.map +1 -1
- package/esm/{selectors-82e71d8e.js → selectors-65f0f31c.js} +9 -6
- package/esm/selectors-65f0f31c.js.map +1 -0
- package/esm/user.js +31 -22
- package/esm/user.js.map +1 -1
- package/esm/util.js +18 -11
- package/esm/util.js.map +1 -1
- package/esm/version-696796d7.js +15 -0
- package/esm/{version-59c8f9be.js.map → version-696796d7.js.map} +1 -1
- package/esm/{version-cb9cd09d.js → version-b2ca1dab.js} +38 -31
- package/esm/version-b2ca1dab.js.map +1 -0
- package/models/redux/appstate.d.ts +5 -10
- package/models/redux/reducers/navigation.d.ts +1 -6
- package/models/redux/reducers/version.d.ts +1 -5
- package/models/redux/selectors/navigation.d.ts +2 -1
- package/models/routing/redux/actions.d.ts +1 -1
- package/models/routing/redux/reducers.d.ts +1 -21
- package/models/routing/redux/selectors.d.ts +1 -1
- package/models/routing/routes.d.ts +3 -2
- package/models/routing/util/expressions.d.ts +3 -2
- package/models/routing/util/queries.d.ts +1 -1
- package/models/search/containers/withListing.d.ts +1 -1
- package/models/search/containers/withSearch.d.ts +1 -1
- package/models/search/hooks/useListing.hook.d.ts +3 -0
- package/models/search/hooks/useMinilist.hook.d.ts +2 -9
- package/models/search/index.d.ts +1 -0
- package/models/search/models/Queries.d.ts +8 -5
- package/models/search/models/Search.d.ts +58 -26
- package/models/search/models/SearchActions.d.ts +4 -3
- package/models/search/models/SearchProps.d.ts +25 -2
- package/models/search/models/SearchState.d.ts +5 -1
- package/models/search/models/index.d.ts +2 -1
- package/models/search/redux/actions.d.ts +2 -1
- package/models/search/redux/reducers.d.ts +230 -314
- package/models/search/redux/sagas.d.ts +5 -5
- package/models/search/redux/selectors.d.ts +5 -10
- package/models/search/search/expressions.d.ts +2 -6
- package/models/search/transformations/entry-to-filteritem.mapper.d.ts +2 -1
- package/models/search/transformations/filter-to-filterexpression.mapper.d.ts +6 -0
- package/models/search/transformations/filters-to-filterexpressions.mapper.d.ts +3 -0
- package/models/search/transformations/index.d.ts +3 -0
- package/models/search/transformations/state-to-searchuri.d.ts +2 -13
- package/models/server/util/headers.d.ts +3 -2
- package/models/testImmer/redux/reducer.d.ts +1 -7
- package/models/user/components/Login.d.ts +1 -2
- package/models/user/components/LoginForm.d.ts +1 -2
- package/models/user/hocs/withLogin.d.ts +2 -2
- package/models/user/hooks/useChangePassword.d.ts +5 -5
- package/models/user/hooks/useForgotPassword.d.ts +6 -6
- package/models/user/hooks/useLogin.d.ts +9 -45
- package/models/user/hooks/useRegistration.d.ts +4 -4
- package/models/user/redux/reducers.d.ts +5 -32
- package/models/user/redux/sagas/login.d.ts +11 -8
- package/models/user/redux/selectors.d.ts +33 -71
- package/models/user/util/LoginHelper.class.d.ts +4 -3
- package/models/util/json-mapper.d.ts +9 -3
- package/models/util/merge.d.ts +1 -0
- package/package-lock.json +2006 -4796
- package/package.json +47 -48
- package/cjs/App-581b6653.js.map +0 -1
- package/cjs/RouteLoader-282c03ab.js.map +0 -1
- package/cjs/ToJs-87edc45d.js +0 -230
- package/cjs/ToJs-87edc45d.js.map +0 -1
- package/cjs/actions-12871aca.js.map +0 -1
- package/cjs/fromJSLeaveImmer-9b550c8e.js +0 -40
- package/cjs/fromJSLeaveImmer-9b550c8e.js.map +0 -1
- package/cjs/login-81d7f9ef.js.map +0 -1
- package/cjs/reducers-fde41d6b.js.map +0 -1
- package/cjs/selectors-ed26ed97.js.map +0 -1
- package/cjs/version-f061e409.js.map +0 -1
- package/esm/App-122f28a3.js.map +0 -1
- package/esm/RouteLoader-c2faac87.js.map +0 -1
- package/esm/ToJs-52fee252.js +0 -199
- package/esm/ToJs-52fee252.js.map +0 -1
- package/esm/actions-3cc39599.js.map +0 -1
- package/esm/fromJSLeaveImmer-e44d1a91.js +0 -38
- package/esm/fromJSLeaveImmer-e44d1a91.js.map +0 -1
- package/esm/login-92db44d1.js.map +0 -1
- package/esm/reducers-d6c0edb1.js.map +0 -1
- package/esm/selectors-82e71d8e.js.map +0 -1
- package/esm/version-59c8f9be.js +0 -15
- package/esm/version-cb9cd09d.js.map +0 -1
- package/models/search/transformations/filters-to-filterexpression.d.ts +0 -1
- package/models/search/transformations/filters-to-filterexpression.mapper.d.ts +0 -2
- package/models/server/features/caching/cacheHashing.d.ts +0 -1
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { IExpression, ILogicalExpression, VersionStatus } from 'contensis-core-api';
|
|
2
2
|
import { CustomWhereClause, WeightedSearchField } from '../models/Search';
|
|
3
|
-
import { FieldOperators } from '../models/Queries';
|
|
3
|
+
import { FieldOperators, FilterExpression } from '../models/Queries';
|
|
4
4
|
export declare const fieldExpression: (field: string | string[], value: any, operator?: FieldOperators, weight?: number | undefined) => IExpression[];
|
|
5
5
|
export declare const contentTypeIdExpression: (contentTypeIds: string[], webpageTemplates?: string[] | undefined, assetTypes?: string[] | undefined) => ILogicalExpression[];
|
|
6
|
-
export declare const filterExpressions: (filters:
|
|
7
|
-
key: string;
|
|
8
|
-
value: string;
|
|
9
|
-
operator: FieldOperators;
|
|
10
|
-
}[]) => IExpression[];
|
|
6
|
+
export declare const filterExpressions: (filters: FilterExpression[]) => IExpression[];
|
|
11
7
|
export declare const dataFormatExpression: (contentTypeIds: string[], dataFormat?: string) => ILogicalExpression[];
|
|
12
8
|
export declare const featuredResultsExpression: ({ contentTypeId, fieldId, fieldValue, }?: {
|
|
13
9
|
contentTypeId?: string | string[] | undefined;
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare
|
|
3
|
-
state: AppState;
|
|
4
|
-
facet?: string;
|
|
5
|
-
orderBy?: string;
|
|
6
|
-
pageIndex: number;
|
|
7
|
-
term?: string;
|
|
8
|
-
};
|
|
9
|
-
declare const mapStateToSearchUri: (params: SearchStateParams) => {
|
|
10
|
-
path: Location['pathname'];
|
|
11
|
-
search: Location['search'];
|
|
12
|
-
hash: Location['hash'];
|
|
13
|
-
};
|
|
1
|
+
import { NavigateMapper } from '../models/Search';
|
|
2
|
+
declare const mapStateToSearchUri: NavigateMapper;
|
|
14
3
|
export default mapStateToSearchUri;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Response } from 'express';
|
|
2
|
-
|
|
2
|
+
import { AppState } from "../../redux/appstate";
|
|
3
|
+
export declare const addStandardHeaders: (state: AppState, response: Response, packagejson: any, groups: {
|
|
3
4
|
globalGroups?: any[];
|
|
4
5
|
allowedGroups?: any[];
|
|
5
6
|
}) => void;
|
|
6
|
-
export declare const addVarnishAuthenticationHeaders: (state:
|
|
7
|
+
export declare const addVarnishAuthenticationHeaders: (state: AppState, response: Response, groups?: {
|
|
7
8
|
globalGroups?: any[];
|
|
8
9
|
allowedGroups?: any[];
|
|
9
10
|
}) => void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export default LoginForm;
|
|
2
|
-
declare function LoginForm({
|
|
3
|
-
loginException: any;
|
|
2
|
+
declare function LoginForm({ authenticationError, loading, loginUser }: {
|
|
4
3
|
authenticationError: any;
|
|
5
4
|
loading: any;
|
|
6
5
|
loginUser: any;
|
|
@@ -3,8 +3,8 @@ declare function withLogin(WrappedComponent: any): import("react-redux").Connect
|
|
|
3
3
|
[key: string]: any;
|
|
4
4
|
}>, import("react-redux").Omit<{
|
|
5
5
|
[key: string]: any;
|
|
6
|
-
}, "error" | "
|
|
6
|
+
}, "error" | "isError" | "isLoading" | "user" | "isAuthenticated" | "isAuthenticationError" | "loginUser" | "logoutUser" | "authenticationError"> | import("react-redux").Omit<import("react").ClassAttributes<import("react").Component<{
|
|
7
7
|
[key: string]: any;
|
|
8
8
|
}, any, any>> & {
|
|
9
9
|
[key: string]: any;
|
|
10
|
-
}, "error" | "
|
|
10
|
+
}, "error" | "isError" | "isLoading" | "user" | "isAuthenticated" | "isAuthenticationError" | "loginUser" | "logoutUser" | "authenticationError">>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export default useChangePassword;
|
|
2
2
|
declare function useChangePassword(): {
|
|
3
|
-
isLoading:
|
|
4
|
-
isSuccess:
|
|
5
|
-
userId:
|
|
6
|
-
isLoggedIn:
|
|
7
|
-
error:
|
|
3
|
+
isLoading: any;
|
|
4
|
+
isSuccess: any;
|
|
5
|
+
userId: any;
|
|
6
|
+
isLoggedIn: any;
|
|
7
|
+
error: any;
|
|
8
8
|
changePassword: (userId: any, currentPassword: any, newPassword: any) => any;
|
|
9
9
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export default useForgotPassword;
|
|
2
2
|
declare function useForgotPassword(): {
|
|
3
|
-
isLoading:
|
|
4
|
-
isSuccess:
|
|
5
|
-
error:
|
|
3
|
+
isLoading: any;
|
|
4
|
+
isSuccess: any;
|
|
5
|
+
error: any;
|
|
6
6
|
requestPasswordReset: (userEmailObject: any) => any;
|
|
7
7
|
setNewPassword: {
|
|
8
8
|
queryString: any;
|
|
9
|
-
isLoading:
|
|
10
|
-
isSuccess:
|
|
11
|
-
error:
|
|
9
|
+
isLoading: any;
|
|
10
|
+
isSuccess: any;
|
|
11
|
+
error: any;
|
|
12
12
|
submit: (resetPasswordObject: any) => any;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
@@ -2,49 +2,13 @@ export default useLogin;
|
|
|
2
2
|
declare function useLogin(): {
|
|
3
3
|
loginUser: (username: any, password: any) => any;
|
|
4
4
|
logoutUser: (redirectPath: any) => any;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
authenticationError: boolean;
|
|
15
|
-
authenticationErrorMessage: string | null;
|
|
16
|
-
clientCredentials: {
|
|
17
|
-
bearerToken: string;
|
|
18
|
-
bearerTokenExpiryDate: Date;
|
|
19
|
-
refreshToken: string;
|
|
20
|
-
refreshTokenExpiryDate: Date;
|
|
21
|
-
contensisClassicToken: string;
|
|
22
|
-
} | null;
|
|
23
|
-
error: boolean;
|
|
24
|
-
errorMessage: string | null;
|
|
25
|
-
loading: boolean;
|
|
26
|
-
};
|
|
27
|
-
groups: import("contensis-management-api/lib/models").Group[];
|
|
28
|
-
isZengentiStaff?: boolean | undefined;
|
|
29
|
-
registration?: {
|
|
30
|
-
error: Error | null;
|
|
31
|
-
loading: boolean;
|
|
32
|
-
success: boolean;
|
|
33
|
-
} | undefined;
|
|
34
|
-
passwordResetRequest?: {
|
|
35
|
-
isSending: boolean;
|
|
36
|
-
sent: boolean;
|
|
37
|
-
error: Error | null;
|
|
38
|
-
} | undefined;
|
|
39
|
-
resetPassword?: {
|
|
40
|
-
isSending: boolean;
|
|
41
|
-
sent: boolean;
|
|
42
|
-
error: Error | null;
|
|
43
|
-
} | undefined;
|
|
44
|
-
changePassword?: {
|
|
45
|
-
isSending: boolean;
|
|
46
|
-
sent: boolean;
|
|
47
|
-
error: Error | null;
|
|
48
|
-
} | undefined;
|
|
49
|
-
} & import("contensis-management-api/lib/models").User;
|
|
5
|
+
errorMessage: any;
|
|
6
|
+
isAuthenticated: any;
|
|
7
|
+
isAuthenticationError: any;
|
|
8
|
+
isError: any;
|
|
9
|
+
isLoading: any;
|
|
10
|
+
user: any;
|
|
11
|
+
authenticationError: any;
|
|
12
|
+
authenticationErrorMessage: any;
|
|
13
|
+
error: any;
|
|
50
14
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export default useRegistration;
|
|
2
2
|
declare function useRegistration(): {
|
|
3
3
|
registerUser: (user: any, mappers: any) => any;
|
|
4
|
-
error:
|
|
5
|
-
isLoading:
|
|
6
|
-
isSuccess:
|
|
7
|
-
user:
|
|
4
|
+
error: any;
|
|
5
|
+
isLoading: any;
|
|
6
|
+
isSuccess: any;
|
|
7
|
+
user: any;
|
|
8
8
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
export declare const initialUserState: {
|
|
2
2
|
authenticationState: {
|
|
3
|
-
authenticated: boolean;
|
|
4
|
-
authenticationError: boolean;
|
|
5
|
-
authenticationErrorMessage: null;
|
|
6
3
|
clientCredentials: null;
|
|
7
|
-
error: boolean;
|
|
8
4
|
errorMessage: null;
|
|
9
|
-
|
|
5
|
+
isAuthenticated: boolean;
|
|
6
|
+
isAuthenticationError: boolean;
|
|
7
|
+
isError: boolean;
|
|
8
|
+
isLoading: boolean;
|
|
10
9
|
};
|
|
11
10
|
passwordResetRequest: {
|
|
12
11
|
isSending: boolean;
|
|
@@ -25,31 +24,5 @@ export declare const initialUserState: {
|
|
|
25
24
|
};
|
|
26
25
|
groups: never[];
|
|
27
26
|
};
|
|
28
|
-
declare const _default:
|
|
29
|
-
readonly authenticationState: {
|
|
30
|
-
readonly authenticated: boolean;
|
|
31
|
-
readonly authenticationError: boolean;
|
|
32
|
-
readonly authenticationErrorMessage: null;
|
|
33
|
-
readonly clientCredentials: null;
|
|
34
|
-
readonly error: boolean;
|
|
35
|
-
readonly errorMessage: null;
|
|
36
|
-
readonly loading: boolean;
|
|
37
|
-
};
|
|
38
|
-
readonly passwordResetRequest: {
|
|
39
|
-
readonly isSending: boolean;
|
|
40
|
-
readonly sent: boolean;
|
|
41
|
-
readonly error: null;
|
|
42
|
-
};
|
|
43
|
-
readonly resetPassword: {
|
|
44
|
-
readonly isSending: boolean;
|
|
45
|
-
readonly sent: boolean;
|
|
46
|
-
readonly error: null;
|
|
47
|
-
};
|
|
48
|
-
readonly changePassword: {
|
|
49
|
-
readonly isSending: boolean;
|
|
50
|
-
readonly sent: boolean;
|
|
51
|
-
readonly error: null;
|
|
52
|
-
};
|
|
53
|
-
readonly groups: readonly never[];
|
|
54
|
-
}>(base?: Base | undefined, action: any) => Base;
|
|
27
|
+
declare const _default: never;
|
|
55
28
|
export default _default;
|
|
@@ -6,17 +6,14 @@ export function handleRequiresLoginSaga(action: any): Generator<import("redux-sa
|
|
|
6
6
|
}[]> | import("redux-saga/effects").PutEffect<{
|
|
7
7
|
type: string;
|
|
8
8
|
authenticationState: {
|
|
9
|
-
|
|
10
|
-
message: any;
|
|
11
|
-
stack: any;
|
|
12
|
-
};
|
|
9
|
+
isLoading: boolean;
|
|
13
10
|
};
|
|
14
11
|
}> | import("redux-saga/effects").CallEffect<Generator<Promise<{
|
|
15
12
|
authenticationState: {
|
|
16
|
-
authenticated: boolean;
|
|
17
|
-
authenticationError: boolean;
|
|
18
|
-
error: boolean;
|
|
19
13
|
clientCredentials: null;
|
|
14
|
+
isAuthenticated: boolean;
|
|
15
|
+
isAuthenticationError: boolean;
|
|
16
|
+
isError: boolean;
|
|
20
17
|
};
|
|
21
18
|
user: Error | {
|
|
22
19
|
groups: any;
|
|
@@ -28,7 +25,13 @@ export function handleRequiresLoginSaga(action: any): Generator<import("redux-sa
|
|
|
28
25
|
}>, void, {
|
|
29
26
|
authenticationState: any;
|
|
30
27
|
user: any;
|
|
31
|
-
}
|
|
28
|
+
}>> | import("redux-saga/effects").PutEffect<{
|
|
29
|
+
type: string;
|
|
30
|
+
authenticationState: {
|
|
31
|
+
isError: boolean;
|
|
32
|
+
errorMessage: any;
|
|
33
|
+
};
|
|
34
|
+
}>, any, [any, any]>> | import("redux-saga/effects").PutEffect<{
|
|
32
35
|
type: string;
|
|
33
36
|
securityToken: any;
|
|
34
37
|
}>, void, any>;
|
|
@@ -1,72 +1,34 @@
|
|
|
1
|
+
import { StateType } from "../../config";
|
|
1
2
|
import { AppState } from "../../redux/appstate";
|
|
2
|
-
export declare const selectUserIsLoading: (state: AppState) =>
|
|
3
|
-
export declare const selectUserIsAuthenticated: (state: AppState) =>
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export declare const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
error: Error | null;
|
|
35
|
-
loading: boolean;
|
|
36
|
-
success: boolean;
|
|
37
|
-
} | undefined;
|
|
38
|
-
passwordResetRequest?: {
|
|
39
|
-
isSending: boolean;
|
|
40
|
-
sent: boolean;
|
|
41
|
-
error: Error | null;
|
|
42
|
-
} | undefined;
|
|
43
|
-
resetPassword?: {
|
|
44
|
-
isSending: boolean;
|
|
45
|
-
sent: boolean;
|
|
46
|
-
error: Error | null;
|
|
47
|
-
} | undefined;
|
|
48
|
-
changePassword?: {
|
|
49
|
-
isSending: boolean;
|
|
50
|
-
sent: boolean;
|
|
51
|
-
error: Error | null;
|
|
52
|
-
} | undefined;
|
|
53
|
-
} & import("contensis-management-api/lib/models").User;
|
|
54
|
-
export declare const selectUserIsZengentiStaff: (state: AppState) => boolean | undefined;
|
|
55
|
-
export declare const selectUserGuid: (state: AppState) => string;
|
|
56
|
-
export declare const selectUsername: (state: AppState) => string;
|
|
57
|
-
export declare const selectUserEmail: (state: AppState) => string;
|
|
58
|
-
export declare const selectUserGroups: (state: AppState) => import("contensis-management-api/lib/models").Group[];
|
|
59
|
-
export declare const selectUserSecurityToken: (state: AppState) => string | undefined;
|
|
60
|
-
export declare const selectUserRegistration: (state: AppState) => {};
|
|
61
|
-
export declare const selectUserRegistrationError: (state: AppState) => false | Error;
|
|
62
|
-
export declare const selectUserRegistrationIsLoading: (state: AppState) => boolean;
|
|
63
|
-
export declare const selectUserRegistrationIsSuccess: (state: AppState) => boolean;
|
|
64
|
-
export declare const selectPasswordResetRequestSending: (state: AppState) => boolean | undefined;
|
|
65
|
-
export declare const selectPasswordResetRequestSent: (state: AppState) => boolean | undefined;
|
|
66
|
-
export declare const selectPasswordResetRequestError: (state: AppState) => Error | null | undefined;
|
|
67
|
-
export declare const selectResetPasswordSending: (state: AppState) => boolean | undefined;
|
|
68
|
-
export declare const selectResetPasswordSent: (state: AppState) => boolean | undefined;
|
|
69
|
-
export declare const selectResetPasswordError: (state: AppState) => Error | null | undefined;
|
|
70
|
-
export declare const selectChangePasswordSending: (state: AppState) => boolean | undefined;
|
|
71
|
-
export declare const selectChangePasswordSent: (state: AppState) => boolean | undefined;
|
|
72
|
-
export declare const selectChangePasswordError: (state: AppState) => Error | null | undefined;
|
|
3
|
+
export declare const selectUserIsLoading: (state: AppState) => any;
|
|
4
|
+
export declare const selectUserIsAuthenticated: (state: AppState) => any;
|
|
5
|
+
export declare const selectUserIsAuthenticationError: (state: AppState) => any;
|
|
6
|
+
export declare const selectUserIsError: (state: AppState) => any;
|
|
7
|
+
/**
|
|
8
|
+
* DEPRECATED 12/2021 - use selectUserErrorMessage instead
|
|
9
|
+
* @param state AppState
|
|
10
|
+
* @returns string
|
|
11
|
+
*/
|
|
12
|
+
export declare const selectUserAuthenticationErrorMessage: (state: AppState) => any;
|
|
13
|
+
export declare const selectUserErrorMessage: (state: AppState) => any;
|
|
14
|
+
export declare const selectClientCredentials: (state: AppState, returnType?: StateType | undefined) => any;
|
|
15
|
+
export declare const selectUser: (state: AppState, returnType?: StateType | undefined) => any;
|
|
16
|
+
export declare const selectUserIsZengentiStaff: (state: AppState) => any;
|
|
17
|
+
export declare const selectUserGuid: (state: AppState) => any;
|
|
18
|
+
export declare const selectUsername: (state: AppState) => any;
|
|
19
|
+
export declare const selectUserEmail: (state: AppState) => any;
|
|
20
|
+
export declare const selectUserGroups: (state: AppState, returnType?: StateType | undefined) => any;
|
|
21
|
+
export declare const selectUserSecurityToken: (state: AppState) => any;
|
|
22
|
+
export declare const selectUserRegistration: (state: AppState, returnType?: StateType | undefined) => any;
|
|
23
|
+
export declare const selectUserRegistrationError: (state: AppState) => any;
|
|
24
|
+
export declare const selectUserRegistrationIsLoading: (state: AppState) => any;
|
|
25
|
+
export declare const selectUserRegistrationIsSuccess: (state: AppState) => any;
|
|
26
|
+
export declare const selectPasswordResetRequestSending: (state: AppState) => any;
|
|
27
|
+
export declare const selectPasswordResetRequestSent: (state: AppState) => any;
|
|
28
|
+
export declare const selectPasswordResetRequestError: (state: AppState) => any;
|
|
29
|
+
export declare const selectResetPasswordSending: (state: AppState) => any;
|
|
30
|
+
export declare const selectResetPasswordSent: (state: AppState) => any;
|
|
31
|
+
export declare const selectResetPasswordError: (state: AppState) => any;
|
|
32
|
+
export declare const selectChangePasswordSending: (state: AppState) => any;
|
|
33
|
+
export declare const selectChangePasswordSent: (state: AppState) => any;
|
|
34
|
+
export declare const selectChangePasswordError: (state: AppState) => any;
|
|
@@ -23,10 +23,10 @@ export class LoginHelper {
|
|
|
23
23
|
clientCredentials: any;
|
|
24
24
|
}): Promise<{
|
|
25
25
|
authenticationState: {
|
|
26
|
-
authenticated: boolean;
|
|
27
|
-
authenticationError: boolean;
|
|
28
|
-
error: boolean;
|
|
29
26
|
clientCredentials: null;
|
|
27
|
+
isAuthenticated: boolean;
|
|
28
|
+
isAuthenticationError: boolean;
|
|
29
|
+
isError: boolean;
|
|
30
30
|
};
|
|
31
31
|
user: Error | {
|
|
32
32
|
groups: any;
|
|
@@ -41,6 +41,7 @@ export class LoginHelper {
|
|
|
41
41
|
static ClientRedirectToAccessDeniedPage(originalPath: any): void;
|
|
42
42
|
static ClientRedirectToPath(redirectPath: any): void;
|
|
43
43
|
static WsFedLogin(redirectUri: any): Promise<void>;
|
|
44
|
+
static RemoveSecurityTokenQuery(): void;
|
|
44
45
|
static WsFedLogout(redirectPath: any): Promise<void>;
|
|
45
46
|
static GetCredentialsForSecurityToken(securityToken: any): Promise<undefined[] | Error[] | {
|
|
46
47
|
message: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { Entry } from 'contensis-delivery-api/lib/models';
|
|
1
2
|
import mapJson from 'jsonpath-mapper';
|
|
2
|
-
import MappingTemplate from 'jsonpath-mapper/dist/models/Template';
|
|
3
|
-
import {
|
|
3
|
+
import MappingTemplate, { PureJsFunction } from 'jsonpath-mapper/dist/models/Template';
|
|
4
|
+
import { AppState } from "../redux/appstate";
|
|
5
|
+
import { EntryMapper, RouteNode } from "../routing/routes";
|
|
4
6
|
export { default as mapJson, jpath } from 'jsonpath-mapper';
|
|
5
7
|
declare type Mappers<S> = {
|
|
6
8
|
[contentTypeId: string]: MappingTemplate<S>;
|
|
@@ -77,5 +79,9 @@ export declare const useComposerMapper: <S extends {
|
|
|
77
79
|
* @param mapping the jsonpath-mapper mapping template to apply when the route is resolved
|
|
78
80
|
* @returns {mappedEntry}
|
|
79
81
|
*/
|
|
80
|
-
export declare const entryMapper: (mapping:
|
|
82
|
+
export declare const entryMapper: (mapping: MappingTemplate<RouteNode & Entry & {
|
|
83
|
+
state?: AppState;
|
|
84
|
+
}> | PureJsFunction<RouteNode & Entry & {
|
|
85
|
+
state?: AppState;
|
|
86
|
+
}>) => EntryMapper;
|
|
81
87
|
export default mapJson;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const combineMerge: (target: any, source: any, options: any) => any;
|