@zengenti/contensis-react-base 2.5.1-beta.3 → 3.0.0-beta.2
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 +8 -2
- package/cjs/{App-fbd91490.js → App-581b6653.js} +20 -19
- package/cjs/App-581b6653.js.map +1 -0
- package/cjs/{RouteLoader-f99cd734.js → RouteLoader-282c03ab.js} +5 -5
- package/cjs/RouteLoader-282c03ab.js.map +1 -0
- package/cjs/ToJs-87edc45d.js +230 -0
- package/cjs/ToJs-87edc45d.js.map +1 -0
- package/cjs/{actions-e9f69947.js → actions-12871aca.js} +9 -13
- package/cjs/actions-12871aca.js.map +1 -0
- package/cjs/client.js +48 -65
- package/cjs/client.js.map +1 -1
- package/cjs/contensis-react-base.js +63 -68
- package/cjs/contensis-react-base.js.map +1 -1
- package/cjs/forms.js +1 -1
- package/cjs/fromJSLeaveImmer-9b550c8e.js +40 -0
- package/cjs/fromJSLeaveImmer-9b550c8e.js.map +1 -0
- package/cjs/{login-4f274c6a.js → login-81d7f9ef.js} +11 -10
- package/cjs/login-81d7f9ef.js.map +1 -0
- package/cjs/{reducers-cb531715.js → reducers-fde41d6b.js} +76 -31
- package/cjs/reducers-fde41d6b.js.map +1 -0
- package/cjs/redux.js +11 -8
- package/cjs/redux.js.map +1 -1
- package/cjs/routing.js +5 -5
- package/cjs/search.js +409 -233
- package/cjs/search.js.map +1 -1
- package/cjs/selectors-ed26ed97.js +141 -0
- package/cjs/selectors-ed26ed97.js.map +1 -0
- package/cjs/user.js +14 -14
- package/cjs/user.js.map +1 -1
- package/cjs/util.js +24 -10
- package/cjs/util.js.map +1 -1
- package/cjs/version-0c190929.js +20 -0
- package/cjs/version-0c190929.js.map +1 -0
- package/cjs/{version-3a808c12.js → version-f061e409.js} +154 -76
- package/cjs/version-f061e409.js.map +1 -0
- package/esm/{App-fbef99b3.js → App-122f28a3.js} +20 -19
- package/esm/App-122f28a3.js.map +1 -0
- package/esm/{RouteLoader-281d47e1.js → RouteLoader-c2faac87.js} +5 -5
- package/esm/RouteLoader-c2faac87.js.map +1 -0
- package/esm/ToJs-52fee252.js +199 -0
- package/esm/ToJs-52fee252.js.map +1 -0
- package/esm/{actions-ddd9c623.js → actions-3cc39599.js} +4 -7
- package/esm/actions-3cc39599.js.map +1 -0
- package/esm/client.js +49 -66
- package/esm/client.js.map +1 -1
- package/esm/contensis-react-base.js +62 -65
- package/esm/contensis-react-base.js.map +1 -1
- package/esm/forms.js +1 -1
- package/esm/fromJSLeaveImmer-e44d1a91.js +38 -0
- package/esm/fromJSLeaveImmer-e44d1a91.js.map +1 -0
- package/esm/{login-1f9ad133.js → login-92db44d1.js} +11 -10
- package/esm/login-92db44d1.js.map +1 -0
- package/esm/{reducers-feab84fc.js → reducers-d6c0edb1.js} +77 -31
- package/esm/reducers-d6c0edb1.js.map +1 -0
- package/esm/redux.js +9 -8
- package/esm/redux.js.map +1 -1
- package/esm/routing.js +5 -5
- package/esm/search.js +409 -235
- package/esm/search.js.map +1 -1
- package/esm/selectors-82e71d8e.js +116 -0
- package/esm/selectors-82e71d8e.js.map +1 -0
- package/esm/user.js +10 -10
- package/esm/user.js.map +1 -1
- package/esm/util.js +24 -10
- package/esm/util.js.map +1 -1
- package/esm/version-59c8f9be.js +15 -0
- package/esm/version-59c8f9be.js.map +1 -0
- package/esm/{version-64906b26.js → version-cb9cd09d.js} +133 -76
- package/esm/version-cb9cd09d.js.map +1 -0
- package/models/app/pages/VersionInfo/components/VersionInfo.d.ts +1 -1
- package/models/config.d.ts +2 -0
- package/models/redux/appstate.d.ts +85 -0
- package/models/redux/index.d.ts +1 -0
- package/models/redux/reducers/navigation.d.ts +6 -2
- package/models/redux/reducers/version.d.ts +5 -2
- package/models/redux/store/store.d.ts +4 -1
- package/models/redux/util.d.ts +2 -0
- package/models/routing/components/RouteLoader.d.ts +20 -2
- package/models/routing/redux/reducers.d.ts +21 -3
- package/models/routing/redux/selectors.d.ts +29 -25
- package/models/routing/routes.d.ts +10 -2
- package/models/search/hooks/useMinilist.hook.d.ts +5 -5
- package/models/search/models/Search.d.ts +8 -1
- package/models/search/models/SearchActions.d.ts +3 -4
- package/models/search/models/SearchState.d.ts +25 -9
- package/models/search/models/WithSearch.d.ts +61 -0
- package/models/search/redux/getIn.d.ts +3 -0
- package/models/search/redux/reducers.d.ts +346 -2
- package/models/search/redux/sagas.d.ts +2 -2
- package/models/search/redux/schema.d.ts +56 -8
- package/models/search/redux/selectors.d.ts +75 -66
- package/models/search/redux/util.d.ts +1 -1
- package/models/search/search/util.d.ts +2 -3
- package/models/user/components/Login.d.ts +10 -1
- package/models/user/containers/ChangePassword.container.d.ts +4 -1
- package/models/user/containers/ForgotPassword.container.d.ts +4 -1
- package/models/user/containers/Login.container.d.ts +4 -1
- package/models/user/containers/Registration.container.d.ts +4 -1
- package/models/user/hocs/withLogin.d.ts +9 -1
- package/models/user/hocs/withRegistration.d.ts +9 -1
- 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 +45 -7
- package/models/user/hooks/useRegistration.d.ts +4 -4
- package/models/user/redux/reducers.d.ts +54 -3
- package/models/user/redux/selectors.d.ts +72 -27
- package/models/util/ToJs.d.ts +4 -1
- package/package-lock.json +1126 -533
- package/package.json +8 -9
- package/cjs/App-fbd91490.js.map +0 -1
- package/cjs/RouteLoader-f99cd734.js.map +0 -1
- package/cjs/ToJs-d72e5b10.js +0 -167
- package/cjs/ToJs-d72e5b10.js.map +0 -1
- package/cjs/actions-e9f69947.js.map +0 -1
- package/cjs/login-4f274c6a.js.map +0 -1
- package/cjs/reducers-cb531715.js.map +0 -1
- package/cjs/selectors-1295124a.js +0 -139
- package/cjs/selectors-1295124a.js.map +0 -1
- package/cjs/version-2193b4a2.js +0 -24
- package/cjs/version-2193b4a2.js.map +0 -1
- package/cjs/version-3a808c12.js.map +0 -1
- package/esm/App-fbef99b3.js.map +0 -1
- package/esm/RouteLoader-281d47e1.js.map +0 -1
- package/esm/ToJs-6e7b247c.js +0 -136
- package/esm/ToJs-6e7b247c.js.map +0 -1
- package/esm/actions-ddd9c623.js.map +0 -1
- package/esm/login-1f9ad133.js.map +0 -1
- package/esm/reducers-feab84fc.js.map +0 -1
- package/esm/selectors-68799788.js +0 -117
- package/esm/selectors-68799788.js.map +0 -1
- package/esm/version-64906b26.js.map +0 -1
- package/esm/version-7fdbd2d5.js +0 -19
- package/esm/version-7fdbd2d5.js.map +0 -1
|
@@ -3,7 +3,7 @@ import { InitListingAction, TriggerSearchAction } from '../models/SearchActions'
|
|
|
3
3
|
import { Mappers } from '../models/Search';
|
|
4
4
|
import { Context } from '../models/Enums';
|
|
5
5
|
export declare const searchSagas: import("redux-saga/effects").ForkEffect<never>[];
|
|
6
|
-
export declare function setRouteFilters(action: InitListingAction): Generator<import("redux-saga/effects").SelectEffect | import("redux-saga/effects").PutEffect<InitListingAction> | import("redux-saga/effects").CallEffect<void>, void,
|
|
6
|
+
export declare function setRouteFilters(action: InitListingAction): Generator<import("redux-saga/effects").SelectEffect | import("redux-saga/effects").PutEffect<InitListingAction> | import("redux-saga/effects").CallEffect<void>, void, any>;
|
|
7
7
|
export declare function doSearch(action: TriggerSearchAction): Generator<import("redux-saga/effects").SelectEffect | import("redux-saga/effects").PutEffect<{
|
|
8
8
|
type: string;
|
|
9
9
|
config?: import("../models/Search").Listing | import("../models/Search").Facet | undefined;
|
|
@@ -17,4 +17,4 @@ export declare function doSearch(action: TriggerSearchAction): Generator<import(
|
|
|
17
17
|
params?: {
|
|
18
18
|
[key: string]: string;
|
|
19
19
|
} | undefined;
|
|
20
|
-
}> | import("redux-saga/effects").PutEffect<InitListingAction> | import("redux-saga/effects").CallEffect<void>, void,
|
|
20
|
+
}> | import("redux-saga/effects").PutEffect<InitListingAction> | import("redux-saga/effects").CallEffect<void>, void, any>;
|
|
@@ -1,9 +1,57 @@
|
|
|
1
|
-
import { List, Map, OrderedMap } from 'immutable';
|
|
2
1
|
import { CustomWhereClause } from '../models/Search';
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare const
|
|
2
|
+
import { Filter, FilterItem, SearchState } from '../models/SearchState';
|
|
3
|
+
export declare const entries: {
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
isError: boolean;
|
|
6
|
+
items: never[];
|
|
7
|
+
};
|
|
8
|
+
export declare const pagingInfo: {
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
pageCount: number;
|
|
11
|
+
pageIndex: number;
|
|
12
|
+
pageSize: number;
|
|
13
|
+
pagesLoaded: never[];
|
|
14
|
+
prevPageIndex: number;
|
|
15
|
+
totalCount: number;
|
|
16
|
+
};
|
|
17
|
+
export declare const searchFacet: {
|
|
18
|
+
title: null;
|
|
19
|
+
featuredEntries: {
|
|
20
|
+
isLoading: boolean;
|
|
21
|
+
isError: boolean;
|
|
22
|
+
items: never[];
|
|
23
|
+
};
|
|
24
|
+
featuredResults: never[];
|
|
25
|
+
entries: {
|
|
26
|
+
isLoading: boolean;
|
|
27
|
+
isError: boolean;
|
|
28
|
+
items: never[];
|
|
29
|
+
};
|
|
30
|
+
results: never[];
|
|
31
|
+
queryParams: {};
|
|
32
|
+
filters: {};
|
|
33
|
+
queryDuration: number;
|
|
34
|
+
pagingInfo: {
|
|
35
|
+
isLoading: boolean;
|
|
36
|
+
pageCount: number;
|
|
37
|
+
pageIndex: number;
|
|
38
|
+
pageSize: number;
|
|
39
|
+
pagesLoaded: never[];
|
|
40
|
+
prevPageIndex: number;
|
|
41
|
+
totalCount: number;
|
|
42
|
+
};
|
|
43
|
+
projectId: string;
|
|
44
|
+
};
|
|
45
|
+
export declare const searchTab: {
|
|
46
|
+
currentFacet: undefined;
|
|
47
|
+
facets: {};
|
|
48
|
+
id: number;
|
|
49
|
+
label: undefined;
|
|
50
|
+
totalCount: string;
|
|
51
|
+
};
|
|
52
|
+
export declare const filtering: Omit<Filter, "customWhere" | "items"> & {
|
|
53
|
+
customWhere?: CustomWhereClause[] | undefined;
|
|
54
|
+
items?: FilterItem[] | undefined;
|
|
55
|
+
};
|
|
56
|
+
export declare const filterItem: FilterItem;
|
|
57
|
+
export declare const initialState: SearchState;
|
|
@@ -1,112 +1,121 @@
|
|
|
1
|
-
import { List, Map, OrderedMap } from 'immutable';
|
|
2
1
|
import { Context } from '../models/Enums';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { QueryParams as QueryParams2 } from '../models/Queries';
|
|
3
|
+
import { CustomApi, QueryParams } from '../models/Search';
|
|
4
|
+
import { AppState, Facet, Facets, Filters, Paging, Tab } from '../models/SearchState';
|
|
5
|
+
declare type StateType = 'immutable' | 'js';
|
|
6
6
|
export declare const getSearchContext: (state: AppState) => Context;
|
|
7
|
-
export declare const getCurrent: (state:
|
|
7
|
+
export declare const getCurrent: (state: AppState, context?: Context) => string;
|
|
8
8
|
export declare const getCurrentFacet: (state: AppState) => string;
|
|
9
9
|
export declare const getCurrentListing: (state: AppState) => string;
|
|
10
10
|
export declare const getCurrentTab: (state: AppState) => Map<string, Tab[keyof Tab]>;
|
|
11
|
-
export declare const getFacets: (state: AppState) =>
|
|
12
|
-
export declare const getTabFacets: (state: AppState) =>
|
|
11
|
+
export declare const getFacets: (state: AppState, returnType?: StateType | undefined) => Facets;
|
|
12
|
+
export declare const getTabFacets: (state: AppState) => {
|
|
13
|
+
[k: string]: Facet;
|
|
14
|
+
};
|
|
13
15
|
export declare const getFacetTitles: (state: AppState) => {
|
|
14
16
|
key: string;
|
|
15
17
|
title: string | undefined;
|
|
16
18
|
totalCount: number;
|
|
17
19
|
}[];
|
|
18
|
-
export declare const getFacet: (state: AppState, facetName?: string, context?: Context) =>
|
|
19
|
-
export declare const getListing: (state: AppState, listing?: string) =>
|
|
20
|
-
export declare const getFilters: (state: AppState, facet: string, context?: Context) =>
|
|
21
|
-
export declare const getRenderableFilters: (state: AppState, facet?: string, context?: Context) =>
|
|
22
|
-
export declare const getFiltersToLoad: (state: AppState, facet: string, context?: Context) =>
|
|
23
|
-
export declare const getSelectedFilters: (state: AppState, facet?: string, context?: Context) =>
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
export declare const getFacet: (state: AppState, facetName?: string, context?: Context, returnType?: StateType | undefined) => Facet;
|
|
21
|
+
export declare const getListing: (state: AppState, listing?: string) => Facet;
|
|
22
|
+
export declare const getFilters: (state: AppState, facet: string, context?: Context, returnType?: StateType | undefined) => Filters;
|
|
23
|
+
export declare const getRenderableFilters: (state: AppState, facet?: string, context?: Context) => Filters;
|
|
24
|
+
export declare const getFiltersToLoad: (state: AppState, facet: string, context?: Context, returnType?: StateType | undefined) => string[];
|
|
25
|
+
export declare const getSelectedFilters: (state: AppState, facet?: string, context?: Context, returnType?: StateType | undefined) => {
|
|
26
|
+
[k: string]: string[];
|
|
27
|
+
};
|
|
28
|
+
export declare const getResults: (state: AppState, current?: string, context?: Context, returnType?: StateType | undefined) => any[];
|
|
29
|
+
export declare const getIsInternalPaging: (state: AppState, current: string, context?: Context) => boolean;
|
|
26
30
|
export declare const getIsLoaded: (state: AppState, context?: Context, facet?: string | undefined) => boolean;
|
|
27
|
-
export declare const getIsLoading: (state: AppState, context?: Context, facet?: string | undefined) =>
|
|
31
|
+
export declare const getIsLoading: (state: AppState, context?: Context, facet?: string | undefined) => boolean;
|
|
28
32
|
export declare const getIsSsr: (state: AppState) => boolean;
|
|
29
|
-
export declare const getFeaturedResults: (state: AppState, current?: string, context?: Context) => any;
|
|
30
|
-
export declare const getPaging: (state: AppState, current?: string, context?: Context) =>
|
|
33
|
+
export declare const getFeaturedResults: (state: AppState, current?: string, context?: Context) => any[];
|
|
34
|
+
export declare const getPaging: (state: AppState, current?: string, context?: Context, returnType?: StateType | undefined) => Paging;
|
|
31
35
|
export declare const getPageIndex: (state: AppState, current?: string, context?: Context) => number;
|
|
32
|
-
export declare const getPrevPageIndex: (state: AppState, current?: string, context?: Context) =>
|
|
33
|
-
export declare const getPageIsLoading: (state: AppState, current?: string, context?: Context) =>
|
|
34
|
-
export declare const getPagesLoaded: (state: AppState, current?: string, context?: Context) =>
|
|
35
|
-
export declare const getTotalCount: (state: AppState, current?: string, context?: Context) =>
|
|
36
|
-
export declare const
|
|
37
|
-
export declare const
|
|
38
|
-
export declare const
|
|
39
|
-
export declare const
|
|
40
|
-
export declare const getQueryParams: (state: AppState, current?: string, context?: Context) => Map<string, any>;
|
|
41
|
-
export declare const getQueryParameter: ({ state, facet, context, }: {
|
|
36
|
+
export declare const getPrevPageIndex: (state: AppState, current?: string, context?: Context) => number;
|
|
37
|
+
export declare const getPageIsLoading: (state: AppState, current?: string, context?: Context) => boolean;
|
|
38
|
+
export declare const getPagesLoaded: (state: AppState, current?: string, context?: Context) => number[];
|
|
39
|
+
export declare const getTotalCount: (state: AppState, current?: string, context?: Context) => number;
|
|
40
|
+
export declare const getSearchTerm: (state: AppState) => string;
|
|
41
|
+
export declare const getSearchTabs: (state: AppState, returnType?: StateType | undefined) => Tab[];
|
|
42
|
+
export declare const getQueryParams: (state: AppState, current?: string, context?: Context) => Record<string, any>;
|
|
43
|
+
export declare const getQueryParameter: <K extends keyof QueryParams, K2 extends "internalPaging" | "linkDepth" | "loadMorePaging" | keyof import("../models/Queries").SearchQueryOptions | "env" | "internalPageIndex" | "pagesLoaded" | "prevPageIndex" | "projectId" | "selectedFilters">({ state, facet, context, }: {
|
|
42
44
|
state: AppState;
|
|
43
45
|
facet?: string | undefined;
|
|
44
46
|
context?: Context | undefined;
|
|
45
|
-
}, key:
|
|
46
|
-
export declare const getCustomApi: (state: AppState, current: string, context?: Context) =>
|
|
47
|
+
}, key: K | K2, ifnull?: any) => QueryParams[K] | QueryParams2[K2];
|
|
48
|
+
export declare const getCustomApi: (state: AppState, current: string, context?: Context, returnType?: StateType | undefined) => CustomApi;
|
|
47
49
|
export declare const getCustomEnv: (state: AppState, current: string, context?: Context) => any;
|
|
48
|
-
export declare const getTabsAndFacets: (state: AppState
|
|
50
|
+
export declare const getTabsAndFacets: (state: AppState, returnType?: StateType | undefined) => any;
|
|
49
51
|
export declare const getSearchTotalCount: (state: AppState) => any;
|
|
50
52
|
export declare const getFacetsTotalCount: (state: AppState) => number;
|
|
51
53
|
export declare const selectFacets: {
|
|
52
54
|
getCurrent: (state: AppState) => string;
|
|
53
55
|
getCurrentTab: (state: AppState) => Map<string, Tab[keyof Tab]>;
|
|
54
|
-
getCustomApi: (state: AppState, current: string, context?: Context) =>
|
|
56
|
+
getCustomApi: (state: AppState, current: string, context?: Context, returnType?: StateType | undefined) => CustomApi;
|
|
55
57
|
getCustomEnv: (state: AppState, current: string, context?: Context) => any;
|
|
56
|
-
getFacet: (state: AppState, facetName?: string, context?: Context) =>
|
|
58
|
+
getFacet: (state: AppState, facetName?: string, context?: Context, returnType?: StateType | undefined) => Facet;
|
|
57
59
|
getFacetTitles: (state: AppState) => {
|
|
58
60
|
key: string;
|
|
59
61
|
title: string | undefined;
|
|
60
62
|
totalCount: number;
|
|
61
63
|
}[];
|
|
62
|
-
getFacets: (state: AppState) =>
|
|
64
|
+
getFacets: (state: AppState, returnType?: StateType | undefined) => Facets;
|
|
63
65
|
getFacetsTotalCount: (state: AppState) => number;
|
|
64
|
-
getFeaturedResults: (state: AppState, current?: string, context?: Context) => any;
|
|
65
|
-
getFilters: (state: AppState, facet: string, context?: Context) =>
|
|
66
|
-
getFiltersToLoad: (state: AppState, facet: string, context?: Context) =>
|
|
66
|
+
getFeaturedResults: (state: AppState, current?: string, context?: Context) => any[];
|
|
67
|
+
getFilters: (state: AppState, facet: string, context?: Context, returnType?: StateType | undefined) => Filters;
|
|
68
|
+
getFiltersToLoad: (state: AppState, facet: string, context?: Context, returnType?: StateType | undefined) => string[];
|
|
67
69
|
getIsLoaded: (state: AppState, context?: Context, facet?: string | undefined) => boolean;
|
|
68
|
-
getIsLoading: (state: AppState, context?: Context, facet?: string | undefined) =>
|
|
70
|
+
getIsLoading: (state: AppState, context?: Context, facet?: string | undefined) => boolean;
|
|
69
71
|
getPageIndex: (state: AppState, current?: string, context?: Context) => number;
|
|
70
|
-
getPageIsLoading: (state: AppState, current?: string, context?: Context) =>
|
|
71
|
-
getPagesLoaded: (state: AppState, current?: string, context?: Context) =>
|
|
72
|
-
getPaging: (state: AppState, current?: string, context?: Context) =>
|
|
73
|
-
getQueryParams: (state: AppState, facet: string) =>
|
|
72
|
+
getPageIsLoading: (state: AppState, current?: string, context?: Context) => boolean;
|
|
73
|
+
getPagesLoaded: (state: AppState, current?: string, context?: Context) => number[];
|
|
74
|
+
getPaging: (state: AppState, current?: string, context?: Context, returnType?: StateType | undefined) => Paging;
|
|
75
|
+
getQueryParams: (state: AppState, facet: string) => Record<string, any>;
|
|
74
76
|
getQueryParameter: ({ state, facet }: {
|
|
75
77
|
state: AppState;
|
|
76
78
|
facet: string;
|
|
77
|
-
}, key:
|
|
78
|
-
getRenderableFilters: (state: AppState, facet?: string, context?: Context) =>
|
|
79
|
-
getResults: (state: AppState, current?: string, context?: Context) =>
|
|
80
|
-
getTabFacets: (state: AppState) =>
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
79
|
+
}, key: keyof QueryParams | keyof QueryParams2, ifnull: any) => any;
|
|
80
|
+
getRenderableFilters: (state: AppState, facet?: string, context?: Context) => Filters;
|
|
81
|
+
getResults: (state: AppState, current?: string, context?: Context, returnType?: StateType | undefined) => any[];
|
|
82
|
+
getTabFacets: (state: AppState) => {
|
|
83
|
+
[k: string]: Facet;
|
|
84
|
+
};
|
|
85
|
+
getTabsAndFacets: (state: AppState, returnType?: StateType | undefined) => any;
|
|
86
|
+
getTotalCount: (state: AppState, current?: string, context?: Context) => number;
|
|
87
|
+
getSearchTabs: (state: AppState, returnType?: StateType | undefined) => Tab[];
|
|
88
|
+
getSearchTerm: (state: AppState) => string;
|
|
85
89
|
getSearchTotalCount: (state: AppState) => any;
|
|
86
|
-
getSelectedFilters: (state: AppState, facet?: string, context?: Context) =>
|
|
90
|
+
getSelectedFilters: (state: AppState, facet?: string, context?: Context, returnType?: StateType | undefined) => {
|
|
91
|
+
[k: string]: string[];
|
|
92
|
+
};
|
|
87
93
|
};
|
|
88
94
|
export declare const selectListing: {
|
|
89
95
|
getCurrent: (state: AppState) => string;
|
|
90
|
-
getFeaturedResults: (state: AppState, listing?: string) => any;
|
|
91
|
-
getFilters: (state: AppState, listing?: string) =>
|
|
92
|
-
getFiltersToLoad: (state: AppState, listing?: string) =>
|
|
93
|
-
getListing: (state: AppState, listing?: string) =>
|
|
96
|
+
getFeaturedResults: (state: AppState, listing?: string) => any[];
|
|
97
|
+
getFilters: (state: AppState, listing?: string) => Filters;
|
|
98
|
+
getFiltersToLoad: (state: AppState, listing?: string) => string[];
|
|
99
|
+
getListing: (state: AppState, listing?: string) => Facet;
|
|
94
100
|
getIsLoaded: (state: AppState) => boolean;
|
|
95
|
-
getIsLoading: (state: AppState) =>
|
|
101
|
+
getIsLoading: (state: AppState) => boolean;
|
|
96
102
|
getPageIndex: (state: AppState, listing?: string) => number;
|
|
97
|
-
getPaging: (state: AppState, listing?: string) =>
|
|
98
|
-
getPageIsLoading: (state: AppState, listing?: string) =>
|
|
99
|
-
getPagesLoaded: (state: AppState, listing?: string) =>
|
|
100
|
-
getQueryParams: (state: AppState, listing?: string) =>
|
|
103
|
+
getPaging: (state: AppState, listing?: string) => Paging;
|
|
104
|
+
getPageIsLoading: (state: AppState, listing?: string) => boolean;
|
|
105
|
+
getPagesLoaded: (state: AppState, listing?: string) => number[];
|
|
106
|
+
getQueryParams: (state: AppState, listing?: string) => Record<string, any>;
|
|
101
107
|
getQueryParameter: ({ state, facet }: {
|
|
102
108
|
state: AppState;
|
|
103
109
|
facet?: string | undefined;
|
|
104
|
-
}, key:
|
|
105
|
-
getRenderableFilters: (state: AppState, listing?: string) =>
|
|
106
|
-
getResults: (state: AppState, listing?: string) =>
|
|
107
|
-
getSearchTerm: (state: AppState) =>
|
|
108
|
-
getTotalCount: (state: AppState, listing?: string) =>
|
|
109
|
-
getSelectedFilters: (state: AppState, listing?: string) =>
|
|
110
|
+
}, key: keyof QueryParams | keyof QueryParams2, ifnull: any) => any;
|
|
111
|
+
getRenderableFilters: (state: AppState, listing?: string) => Filters;
|
|
112
|
+
getResults: (state: AppState, listing?: string) => any[];
|
|
113
|
+
getSearchTerm: (state: AppState) => string;
|
|
114
|
+
getTotalCount: (state: AppState, listing?: string) => number;
|
|
115
|
+
getSelectedFilters: (state: AppState, listing?: string) => {
|
|
116
|
+
[k: string]: string[];
|
|
117
|
+
};
|
|
110
118
|
};
|
|
111
119
|
export declare const selectCurrentPath: (state: AppState) => any;
|
|
112
120
|
export declare const selectVersionStatus: (state: AppState) => any;
|
|
121
|
+
export {};
|
|
@@ -5,7 +5,7 @@ import { EnsureSearchAction, SetSearchEntriesAction } from '../models/SearchActi
|
|
|
5
5
|
* 1, Generates all the parameters required to run the search query.
|
|
6
6
|
* 2, Tells us if we should run the search.
|
|
7
7
|
* @param {object} action
|
|
8
|
-
* @param {
|
|
8
|
+
* @param {AppState} state
|
|
9
9
|
* @returns [queryParams, runSearch]
|
|
10
10
|
*/
|
|
11
11
|
export declare const generateQueryParams: (action: EnsureSearchAction | SetSearchEntriesAction, state: AppState) => [SearchQueryOptions, boolean];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Map } from 'immutable';
|
|
2
1
|
import { Entry } from 'contensis-delivery-api/lib/models';
|
|
3
2
|
import { PagedList, Query } from 'contensis-core-api';
|
|
4
3
|
import { CustomApi } from '../models/Search';
|
|
@@ -13,9 +12,9 @@ export declare const extractQuotedPhrases: (searchTerm: string) => string[];
|
|
|
13
12
|
export declare const buildUrl: (route: string, params: {
|
|
14
13
|
[key: string]: string;
|
|
15
14
|
}) => string;
|
|
16
|
-
export declare const callCustomApi: <T>(customApi:
|
|
15
|
+
export declare const callCustomApi: <T>(customApi: CustomApi, filters: {
|
|
17
16
|
[key: string]: string;
|
|
18
17
|
}) => Promise<T>;
|
|
19
18
|
export declare const removeEmptyAttributes: (obj: any) => any;
|
|
20
|
-
export declare const toArray: (obj: string, seperator?: string) => string[] |
|
|
19
|
+
export declare const toArray: (obj: string | null, seperator?: string) => string[] | null;
|
|
21
20
|
export declare const areArraysEqualSets: (a1: any[], a2: any[]) => boolean;
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
declare var _default:
|
|
1
|
+
declare var _default: React.ComponentType<{
|
|
2
|
+
error: any;
|
|
3
|
+
authenticationError: any;
|
|
4
|
+
isAuthenticated: any;
|
|
5
|
+
isLoading: any;
|
|
6
|
+
user: any;
|
|
7
|
+
loginUser: any;
|
|
8
|
+
logoutUser: any;
|
|
9
|
+
}>;
|
|
2
10
|
export default _default;
|
|
11
|
+
import React from "react";
|
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
export default withLogin;
|
|
2
|
-
declare function withLogin(WrappedComponent: any): import("react-redux").ConnectedComponent<
|
|
2
|
+
declare function withLogin(WrappedComponent: any): import("react-redux").ConnectedComponent<import("react").ComponentType<{
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>, import("react-redux").Omit<{
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}, "error" | "isLoading" | "authenticationError" | "user" | "loginUser" | "logoutUser" | "isAuthenticated"> | import("react-redux").Omit<import("react").ClassAttributes<import("react").Component<{
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}, any, any>> & {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}, "error" | "isLoading" | "authenticationError" | "user" | "loginUser" | "logoutUser" | "isAuthenticated">>;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
export default withRegistration;
|
|
2
|
-
declare function withRegistration(WrappedComponent: any): import("react-redux").ConnectedComponent<
|
|
2
|
+
declare function withRegistration(WrappedComponent: any): import("react-redux").ConnectedComponent<import("react").ComponentType<{
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>, import("react-redux").Omit<{
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}, "error" | "isLoading" | "user" | "registerUser" | "isSuccess"> | import("react-redux").Omit<import("react").ClassAttributes<import("react").Component<{
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}, any, any>> & {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}, "error" | "isLoading" | "user" | "registerUser" | "isSuccess">>;
|
|
@@ -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: boolean | undefined;
|
|
4
|
+
isSuccess: boolean | undefined;
|
|
5
|
+
userId: string;
|
|
6
|
+
isLoggedIn: boolean;
|
|
7
|
+
error: Error | null | undefined;
|
|
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: boolean | undefined;
|
|
4
|
+
isSuccess: boolean | undefined;
|
|
5
|
+
error: Error | null | undefined;
|
|
6
6
|
requestPasswordReset: (userEmailObject: any) => any;
|
|
7
7
|
setNewPassword: {
|
|
8
8
|
queryString: any;
|
|
9
|
-
isLoading:
|
|
10
|
-
isSuccess:
|
|
11
|
-
error:
|
|
9
|
+
isLoading: boolean | undefined;
|
|
10
|
+
isSuccess: boolean | undefined;
|
|
11
|
+
error: Error | null | undefined;
|
|
12
12
|
submit: (resetPasswordObject: any) => any;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
@@ -2,11 +2,49 @@ export default useLogin;
|
|
|
2
2
|
declare function useLogin(): {
|
|
3
3
|
loginUser: (username: any, password: any) => any;
|
|
4
4
|
logoutUser: (redirectPath: any) => any;
|
|
5
|
-
authenticationError:
|
|
6
|
-
authenticationErrorMessage:
|
|
7
|
-
error:
|
|
8
|
-
errorMessage:
|
|
9
|
-
isAuthenticated:
|
|
10
|
-
isLoading:
|
|
11
|
-
user:
|
|
5
|
+
authenticationError: boolean;
|
|
6
|
+
authenticationErrorMessage: string | null;
|
|
7
|
+
error: boolean;
|
|
8
|
+
errorMessage: string | null;
|
|
9
|
+
isAuthenticated: boolean;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
user: {
|
|
12
|
+
authenticationState: {
|
|
13
|
+
authenticated: boolean;
|
|
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;
|
|
12
50
|
};
|
|
@@ -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: boolean | Error;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
isSuccess: boolean;
|
|
7
|
+
user: {};
|
|
8
8
|
};
|
|
@@ -1,4 +1,55 @@
|
|
|
1
|
-
export const initialUserState:
|
|
2
|
-
|
|
1
|
+
export declare const initialUserState: {
|
|
2
|
+
authenticationState: {
|
|
3
|
+
authenticated: boolean;
|
|
4
|
+
authenticationError: boolean;
|
|
5
|
+
authenticationErrorMessage: null;
|
|
6
|
+
clientCredentials: null;
|
|
7
|
+
error: boolean;
|
|
8
|
+
errorMessage: null;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
};
|
|
11
|
+
passwordResetRequest: {
|
|
12
|
+
isSending: boolean;
|
|
13
|
+
sent: boolean;
|
|
14
|
+
error: null;
|
|
15
|
+
};
|
|
16
|
+
resetPassword: {
|
|
17
|
+
isSending: boolean;
|
|
18
|
+
sent: boolean;
|
|
19
|
+
error: null;
|
|
20
|
+
};
|
|
21
|
+
changePassword: {
|
|
22
|
+
isSending: boolean;
|
|
23
|
+
sent: boolean;
|
|
24
|
+
error: null;
|
|
25
|
+
};
|
|
26
|
+
groups: never[];
|
|
27
|
+
};
|
|
28
|
+
declare const _default: <Base extends {
|
|
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;
|
|
3
55
|
export default _default;
|
|
4
|
-
import { Map } from "immutable";
|