@zengenti/contensis-react-base 3.0.0-beta.7 → 3.0.0-beta.72
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 +1 -1
- package/cjs/{App-3324f784.js → App-80a696bc.js} +210 -179
- package/cjs/App-80a696bc.js.map +1 -0
- package/cjs/{RouteLoader-c7957b14.js → RouteLoader-2675e1c9.js} +31 -23
- package/cjs/RouteLoader-2675e1c9.js.map +1 -0
- package/cjs/ToJs-a9a8522b.js +129 -0
- package/cjs/ToJs-a9a8522b.js.map +1 -0
- package/cjs/VersionInfo-4c9dfa6a.js +181 -0
- package/cjs/VersionInfo-4c9dfa6a.js.map +1 -0
- package/cjs/{actions-a24bf46e.js → actions-8dc9e8de.js} +5 -4
- package/cjs/actions-8dc9e8de.js.map +1 -0
- package/cjs/client.js +17 -22
- package/cjs/client.js.map +1 -1
- package/cjs/contensis-react-base.js +3761 -156
- package/cjs/contensis-react-base.js.map +1 -1
- package/cjs/forms.js +181 -100
- package/cjs/forms.js.map +1 -1
- package/cjs/{fromJSLeaveImmer-c00d597f.js → fromJSLeaveImmer-e74c673c.js} +2 -16
- package/cjs/fromJSLeaveImmer-e74c673c.js.map +1 -0
- package/cjs/{login-c810cc4c.js → login-6b9de6a1.js} +92 -55
- package/cjs/login-6b9de6a1.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 +6 -5
- package/cjs/redux.js.map +1 -1
- package/cjs/routing.js +5 -4
- package/cjs/routing.js.map +1 -1
- package/cjs/sagas-24f5607f.js +2052 -0
- package/cjs/sagas-24f5607f.js.map +1 -0
- package/cjs/search.js +283 -1909
- package/cjs/search.js.map +1 -1
- package/cjs/{selectors-0ec95076.js → selectors-656da4b7.js} +8 -3
- package/cjs/selectors-656da4b7.js.map +1 -0
- package/cjs/user.js +21 -12
- package/cjs/user.js.map +1 -1
- package/cjs/util.js +55 -212
- package/cjs/util.js.map +1 -1
- package/cjs/{version-4f0f5fa6.js → version-330551f5.js} +34 -22
- package/cjs/version-330551f5.js.map +1 -0
- package/cjs/{version-085d203d.js → version-eba6d09b.js} +5 -5
- package/cjs/version-eba6d09b.js.map +1 -0
- package/esm/{App-1b05ab11.js → App-af0670fa.js} +210 -180
- package/esm/App-af0670fa.js.map +1 -0
- package/esm/{RouteLoader-e5f0e8cb.js → RouteLoader-f96a61c1.js} +31 -23
- package/esm/RouteLoader-f96a61c1.js.map +1 -0
- package/esm/ToJs-affd73f1.js +99 -0
- package/esm/ToJs-affd73f1.js.map +1 -0
- package/esm/VersionInfo-f5403b09.js +172 -0
- package/esm/VersionInfo-f5403b09.js.map +1 -0
- package/esm/{actions-927d9698.js → actions-fcfc8704.js} +5 -4
- package/esm/actions-fcfc8704.js.map +1 -0
- package/esm/client.js +18 -23
- package/esm/client.js.map +1 -1
- package/esm/contensis-react-base.js +3759 -155
- package/esm/contensis-react-base.js.map +1 -1
- package/esm/forms.js +182 -102
- package/esm/forms.js.map +1 -1
- package/esm/{fromJSLeaveImmer-392af4e3.js → fromJSLeaveImmer-0114ffcf.js} +2 -16
- package/esm/fromJSLeaveImmer-0114ffcf.js.map +1 -0
- package/esm/{login-f8ba3aeb.js → login-ca2dc2f7.js} +92 -55
- package/esm/login-ca2dc2f7.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 +8 -7
- package/esm/redux.js.map +1 -1
- package/esm/routing.js +5 -4
- package/esm/routing.js.map +1 -1
- package/esm/sagas-489c29ca.js +1966 -0
- package/esm/sagas-489c29ca.js.map +1 -0
- package/esm/search.js +243 -1850
- package/esm/search.js.map +1 -1
- package/esm/{selectors-b98d5c76.js → selectors-337be432.js} +7 -4
- package/esm/selectors-337be432.js.map +1 -0
- package/esm/user.js +23 -14
- package/esm/user.js.map +1 -1
- package/esm/util.js +54 -209
- package/esm/util.js.map +1 -1
- package/esm/version-6dd7b2cd.js +15 -0
- package/esm/version-6dd7b2cd.js.map +1 -0
- package/esm/{version-16aa83eb.js → version-c7268214.js} +33 -22
- package/esm/version-c7268214.js.map +1 -0
- package/models/app/pages/VersionInfo/components/VersionInfo.d.ts +1 -1
- package/models/forms/index.d.ts +3 -1
- package/models/index.d.ts +1 -0
- package/models/redux/appstate.d.ts +5 -10
- package/models/redux/selectors/navigation.d.ts +2 -1
- package/models/routing/components/RouteLoader.d.ts +2 -19
- package/models/routing/redux/actions.d.ts +1 -1
- package/models/routing/redux/selectors.d.ts +1 -1
- package/models/routing/routes.d.ts +9 -3
- 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/useFacets.hook.d.ts +3 -0
- 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 +4 -1
- package/models/search/models/Queries.d.ts +8 -5
- package/models/search/models/Search.d.ts +60 -28
- package/models/search/models/SearchActions.d.ts +4 -3
- package/models/search/models/SearchProps.d.ts +52 -7
- package/models/search/models/SearchState.d.ts +5 -1
- package/models/search/models/index.d.ts +3 -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 +19 -22
- package/models/search/search/ContensisDeliveryApi.d.ts +1 -0
- package/models/search/search/expressions.d.ts +3 -6
- package/models/search/{redux → search}/queries.d.ts +0 -0
- 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/queryParams-to-customapi.mapper.d.ts +3 -0
- package/models/search/transformations/state-to-searchuri.d.ts +2 -13
- package/models/server/features/linkdepth-api/api.d.ts +12 -0
- package/models/server/features/linkdepth-api/events-api.config.d.ts +37 -0
- package/models/server/middleware/bundleManipulation.d.ts +2 -1
- package/models/server/util/bundles.d.ts +17 -21
- package/models/server/util/getVersionInfo.d.ts +1 -0
- package/models/server/util/headers.d.ts +3 -2
- 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 +4 -2
- package/models/user/hocs/withRegistration.d.ts +4 -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 +4 -5
- 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/ContensisDeliveryApi.d.ts +1 -3
- package/models/util/json-mapper.d.ts +9 -3
- package/models/util/merge.d.ts +1 -0
- package/package.json +60 -55
- package/CHANGELOG.md +0 -293
- package/cjs/App-3324f784.js.map +0 -1
- package/cjs/RouteLoader-c7957b14.js.map +0 -1
- package/cjs/ToJs-a38fa20e.js +0 -230
- package/cjs/ToJs-a38fa20e.js.map +0 -1
- package/cjs/actions-a24bf46e.js.map +0 -1
- package/cjs/fromJSLeaveImmer-c00d597f.js.map +0 -1
- package/cjs/login-c810cc4c.js.map +0 -1
- package/cjs/reducers-fde41d6b.js.map +0 -1
- package/cjs/selectors-0ec95076.js.map +0 -1
- package/cjs/version-085d203d.js.map +0 -1
- package/cjs/version-4f0f5fa6.js.map +0 -1
- package/esm/App-1b05ab11.js.map +0 -1
- package/esm/RouteLoader-e5f0e8cb.js.map +0 -1
- package/esm/ToJs-879a5a85.js +0 -199
- package/esm/ToJs-879a5a85.js.map +0 -1
- package/esm/actions-927d9698.js.map +0 -1
- package/esm/fromJSLeaveImmer-392af4e3.js.map +0 -1
- package/esm/login-f8ba3aeb.js.map +0 -1
- package/esm/reducers-d6c0edb1.js.map +0 -1
- package/esm/selectors-b98d5c76.js.map +0 -1
- package/esm/version-16aa83eb.js.map +0 -1
- package/esm/version-3833e8b5.js +0 -15
- package/esm/version-3833e8b5.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
- package/package-lock.json +0 -14093
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { Context } from '../models/Enums';
|
|
2
2
|
import { QueryParams as QueryParams2 } from '../models/Queries';
|
|
3
|
-
import { CustomApi,
|
|
4
|
-
import { AppState, Facet, Facets, Filters, Paging, Tab } from '../models/SearchState';
|
|
3
|
+
import { CustomApi, SearchQueryParams } from '../models/Search';
|
|
4
|
+
import { AppState, Facet, Facets, Filters, Paging, SelectedFilters, Tab } from '../models/SearchState';
|
|
5
5
|
declare type StateType = 'immutable' | 'js';
|
|
6
6
|
export declare const getSearchContext: (state: AppState) => Context;
|
|
7
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
|
-
export declare const getCurrentTab: (state: AppState) =>
|
|
10
|
+
export declare const getCurrentTab: (state: AppState) => number;
|
|
11
11
|
export declare const getFacets: (state: AppState, returnType?: StateType | undefined) => Facets;
|
|
12
12
|
export declare const getTabFacets: (state: AppState) => {
|
|
13
13
|
[k: string]: Facet;
|
|
14
14
|
};
|
|
15
15
|
export declare const getFacetTitles: (state: AppState) => {
|
|
16
|
+
isSelected: boolean;
|
|
16
17
|
key: string;
|
|
17
18
|
title: string | undefined;
|
|
18
19
|
totalCount: number;
|
|
@@ -22,15 +23,13 @@ export declare const getListing: (state: AppState, listing?: string) => Facet;
|
|
|
22
23
|
export declare const getFilters: (state: AppState, facet: string, context?: Context, returnType?: StateType | undefined) => Filters;
|
|
23
24
|
export declare const getRenderableFilters: (state: AppState, facet?: string, context?: Context) => Filters;
|
|
24
25
|
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
|
-
};
|
|
26
|
+
export declare const getSelectedFilters: (state: AppState, facet?: string, context?: Context, returnType?: StateType | undefined) => SelectedFilters;
|
|
28
27
|
export declare const getResults: (state: AppState, current?: string, context?: Context, returnType?: StateType | undefined) => any[];
|
|
29
28
|
export declare const getIsInternalPaging: (state: AppState, current: string, context?: Context) => boolean;
|
|
30
29
|
export declare const getIsLoaded: (state: AppState, context?: Context, facet?: string | undefined) => boolean;
|
|
31
30
|
export declare const getIsLoading: (state: AppState, context?: Context, facet?: string | undefined) => boolean;
|
|
32
31
|
export declare const getIsSsr: (state: AppState) => boolean;
|
|
33
|
-
export declare const getFeaturedResults: (state: AppState, current?: string, context?: Context) => any[];
|
|
32
|
+
export declare const getFeaturedResults: (state: AppState, current?: string, context?: Context, returnType?: StateType | undefined) => any[];
|
|
34
33
|
export declare const getPaging: (state: AppState, current?: string, context?: Context, returnType?: StateType | undefined) => Paging;
|
|
35
34
|
export declare const getPageIndex: (state: AppState, current?: string, context?: Context) => number;
|
|
36
35
|
export declare const getPrevPageIndex: (state: AppState, current?: string, context?: Context) => number;
|
|
@@ -40,30 +39,31 @@ export declare const getTotalCount: (state: AppState, current?: string, context?
|
|
|
40
39
|
export declare const getSearchTerm: (state: AppState) => string;
|
|
41
40
|
export declare const getSearchTabs: (state: AppState, returnType?: StateType | undefined) => Tab[];
|
|
42
41
|
export declare const getQueryParams: (state: AppState, current?: string, context?: Context) => Record<string, any>;
|
|
43
|
-
export declare const getQueryParameter: <K extends keyof
|
|
42
|
+
export declare const getQueryParameter: <K extends keyof SearchQueryParams, K2 extends "internalPaging" | "linkDepth" | "loadMorePaging" | keyof import("../models/Queries").SearchQueryOptions | "env" | "internalPageIndex" | "pagesLoaded" | "prevPageIndex" | "projectId" | "selectedFilters">({ state, facet, context, }: {
|
|
44
43
|
state: AppState;
|
|
45
44
|
facet?: string | undefined;
|
|
46
45
|
context?: Context | undefined;
|
|
47
|
-
}, key: K | K2, ifnull?: any) =>
|
|
46
|
+
}, key: K | K2, ifnull?: any) => SearchQueryParams[K] | QueryParams2[K2];
|
|
48
47
|
export declare const getCustomApi: (state: AppState, current: string, context?: Context, returnType?: StateType | undefined) => CustomApi;
|
|
49
48
|
export declare const getCustomEnv: (state: AppState, current: string, context?: Context) => any;
|
|
50
49
|
export declare const getTabsAndFacets: (state: AppState, returnType?: StateType | undefined) => any;
|
|
51
|
-
export declare const getSearchTotalCount: (state: AppState) =>
|
|
50
|
+
export declare const getSearchTotalCount: (state: AppState) => number;
|
|
52
51
|
export declare const getFacetsTotalCount: (state: AppState) => number;
|
|
53
52
|
export declare const selectFacets: {
|
|
54
53
|
getCurrent: (state: AppState) => string;
|
|
55
|
-
getCurrentTab: (state: AppState) =>
|
|
54
|
+
getCurrentTab: (state: AppState) => number;
|
|
56
55
|
getCustomApi: (state: AppState, current: string, context?: Context, returnType?: StateType | undefined) => CustomApi;
|
|
57
56
|
getCustomEnv: (state: AppState, current: string, context?: Context) => any;
|
|
58
57
|
getFacet: (state: AppState, facetName?: string, context?: Context, returnType?: StateType | undefined) => Facet;
|
|
59
58
|
getFacetTitles: (state: AppState) => {
|
|
59
|
+
isSelected: boolean;
|
|
60
60
|
key: string;
|
|
61
61
|
title: string | undefined;
|
|
62
62
|
totalCount: number;
|
|
63
63
|
}[];
|
|
64
64
|
getFacets: (state: AppState, returnType?: StateType | undefined) => Facets;
|
|
65
65
|
getFacetsTotalCount: (state: AppState) => number;
|
|
66
|
-
getFeaturedResults: (state: AppState, current?: string, context?: Context) => any[];
|
|
66
|
+
getFeaturedResults: (state: AppState, current?: string, context?: Context, returnType?: StateType | undefined) => any[];
|
|
67
67
|
getFilters: (state: AppState, facet: string, context?: Context, returnType?: StateType | undefined) => Filters;
|
|
68
68
|
getFiltersToLoad: (state: AppState, facet: string, context?: Context, returnType?: StateType | undefined) => string[];
|
|
69
69
|
getIsLoaded: (state: AppState, context?: Context, facet?: string | undefined) => boolean;
|
|
@@ -75,8 +75,8 @@ export declare const selectFacets: {
|
|
|
75
75
|
getQueryParams: (state: AppState, facet: string) => Record<string, any>;
|
|
76
76
|
getQueryParameter: ({ state, facet }: {
|
|
77
77
|
state: AppState;
|
|
78
|
-
facet
|
|
79
|
-
}, key: keyof
|
|
78
|
+
facet?: string | undefined;
|
|
79
|
+
}, key: keyof SearchQueryParams | keyof QueryParams2, ifnull: any) => any;
|
|
80
80
|
getRenderableFilters: (state: AppState, facet?: string, context?: Context) => Filters;
|
|
81
81
|
getResults: (state: AppState, current?: string, context?: Context, returnType?: StateType | undefined) => any[];
|
|
82
82
|
getTabFacets: (state: AppState) => {
|
|
@@ -86,10 +86,8 @@ export declare const selectFacets: {
|
|
|
86
86
|
getTotalCount: (state: AppState, current?: string, context?: Context) => number;
|
|
87
87
|
getSearchTabs: (state: AppState, returnType?: StateType | undefined) => Tab[];
|
|
88
88
|
getSearchTerm: (state: AppState) => string;
|
|
89
|
-
getSearchTotalCount: (state: AppState) =>
|
|
90
|
-
getSelectedFilters: (state: AppState, facet?: string, context?: Context, returnType?: StateType | undefined) =>
|
|
91
|
-
[k: string]: string[];
|
|
92
|
-
};
|
|
89
|
+
getSearchTotalCount: (state: AppState) => number;
|
|
90
|
+
getSelectedFilters: (state: AppState, facet?: string, context?: Context, returnType?: StateType | undefined) => SelectedFilters;
|
|
93
91
|
};
|
|
94
92
|
export declare const selectListing: {
|
|
95
93
|
getCurrent: (state: AppState) => string;
|
|
@@ -107,15 +105,14 @@ export declare const selectListing: {
|
|
|
107
105
|
getQueryParameter: ({ state, facet }: {
|
|
108
106
|
state: AppState;
|
|
109
107
|
facet?: string | undefined;
|
|
110
|
-
}, key: keyof
|
|
108
|
+
}, key: keyof SearchQueryParams | keyof QueryParams2, ifnull: any) => any;
|
|
111
109
|
getRenderableFilters: (state: AppState, listing?: string) => Filters;
|
|
112
110
|
getResults: (state: AppState, listing?: string) => any[];
|
|
113
111
|
getSearchTerm: (state: AppState) => string;
|
|
114
112
|
getTotalCount: (state: AppState, listing?: string) => number;
|
|
115
|
-
getSelectedFilters: (state: AppState, listing?: string) =>
|
|
116
|
-
[k: string]: string[];
|
|
117
|
-
};
|
|
113
|
+
getSelectedFilters: (state: AppState, listing?: string) => SelectedFilters;
|
|
118
114
|
};
|
|
119
115
|
export declare const selectCurrentPath: (state: AppState) => any;
|
|
116
|
+
export declare const selectCurrentProject: (state: AppState) => any;
|
|
120
117
|
export declare const selectVersionStatus: (state: AppState) => any;
|
|
121
118
|
export {};
|
|
@@ -16,6 +16,7 @@ declare class CachedSearch {
|
|
|
16
16
|
request(key: any, execute: any): any;
|
|
17
17
|
extendTaxonomyNode(node: any): any;
|
|
18
18
|
getTaxonomyId(node: any): any;
|
|
19
|
+
fetch(uri: any, opts?: {}): any;
|
|
19
20
|
}
|
|
20
21
|
import { Client } from "contensis-delivery-api";
|
|
21
22
|
declare class LruCache {
|
|
@@ -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[], isOptional?: boolean) => 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;
|
|
@@ -17,6 +13,7 @@ export declare const featuredResultsExpression: ({ contentTypeId, fieldId, field
|
|
|
17
13
|
export declare const languagesExpression: (languages: string[]) => IExpression[];
|
|
18
14
|
export declare const includeInSearchExpressions: (webpageTemplates: string[], includeInSearchFields: string[]) => IExpression[];
|
|
19
15
|
export declare const defaultExpressions: (versionStatus: VersionStatus) => IExpression[];
|
|
16
|
+
export declare const includeIdsExpression: (includeIds: string[]) => IExpression[];
|
|
20
17
|
export declare const excludeIdsExpression: (excludeIds: string[]) => ILogicalExpression[];
|
|
21
18
|
export declare const orderByExpression: (orderBy: string[]) => import("contensis-core-api").ContensisQueryOrderBy;
|
|
22
19
|
/**
|
|
File without changes
|
|
@@ -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;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Express } from 'express';
|
|
2
|
+
import { LinkDepthApiConfig } from './api.d';
|
|
3
|
+
/**
|
|
4
|
+
* Make a LinkDepth api at the uri specified in middlewareConfig.
|
|
5
|
+
* The api supports a GET request and specified filters are supplied as query-string parameters.
|
|
6
|
+
* The response should be a normal Delivery API response.
|
|
7
|
+
* @param app Express app instance
|
|
8
|
+
* @param middlewareConfig Middleware configuration that represents the content types we want to search within, any filters that are required and any linkFields we wish to search within to derive a set of search results from the entries that contain the linkFields. Each key inside of linkFields represents another "linkDepth" of entries and we can specify all the same contentTypeId, filters, and linkFields of their own. There is no currently no limit on how deep these linkFields can go
|
|
9
|
+
* @returns Returns nothing if uri, contentTypeId or linkFields is not set in middlewareConfig
|
|
10
|
+
*/
|
|
11
|
+
declare const makeLinkDepthApi: (app: Express, middlewareConfig: LinkDepthApiConfig) => void;
|
|
12
|
+
export default makeLinkDepthApi;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare const eventsApiConfig: {
|
|
2
|
+
uri: string;
|
|
3
|
+
contentTypeId: string;
|
|
4
|
+
filters: {
|
|
5
|
+
eventTag: string;
|
|
6
|
+
researchEntity: string;
|
|
7
|
+
staffTag: string;
|
|
8
|
+
studentTag: string;
|
|
9
|
+
subject: string;
|
|
10
|
+
};
|
|
11
|
+
sharedFilters: {
|
|
12
|
+
selectedDate: {
|
|
13
|
+
fieldId: string;
|
|
14
|
+
fieldOperator: string;
|
|
15
|
+
};
|
|
16
|
+
futureEventDates: {
|
|
17
|
+
fieldId: string;
|
|
18
|
+
fieldOperator: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
linkFields: {
|
|
22
|
+
eventDates: {
|
|
23
|
+
contentTypeId: string;
|
|
24
|
+
sharedFilters: {
|
|
25
|
+
selectedDate: {
|
|
26
|
+
fieldId: string;
|
|
27
|
+
fieldOperator: string;
|
|
28
|
+
};
|
|
29
|
+
futureEventDates: {
|
|
30
|
+
fieldId: string;
|
|
31
|
+
fieldOperator: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export default eventsApiConfig;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'express';
|
|
2
|
-
export declare const bundleManipulationMiddleware: ({ appRootPath, maxage, staticRoutePath, }: {
|
|
2
|
+
export declare const bundleManipulationMiddleware: ({ appRootPath, maxage, staticFolderPath, staticRoutePath, }: {
|
|
3
3
|
appRootPath: string;
|
|
4
4
|
maxage: string;
|
|
5
|
+
staticFolderPath: string;
|
|
5
6
|
staticRoutePath: string;
|
|
6
7
|
}) => RequestHandler;
|
|
@@ -1,48 +1,44 @@
|
|
|
1
1
|
import { ChunkExtractor } from '@loadable/server';
|
|
2
2
|
import { ServerConfig } from "../../config";
|
|
3
|
-
export declare const loadableBundleData: ({ stats, templates }: {
|
|
4
|
-
stats: any;
|
|
5
|
-
templates: any;
|
|
6
|
-
}, staticRoutePath: string, build?: string | undefined) => {
|
|
3
|
+
export declare const loadableBundleData: ({ stats, templates }: ServerConfig, staticRoutePath: string, build?: string | undefined) => {
|
|
7
4
|
stats?: string | null | undefined;
|
|
8
5
|
templates?: {
|
|
9
|
-
templateHTML:
|
|
10
|
-
templateHTMLStatic:
|
|
11
|
-
templateHTMLFragment:
|
|
6
|
+
templateHTML: string;
|
|
7
|
+
templateHTMLStatic: string;
|
|
8
|
+
templateHTMLFragment: string;
|
|
12
9
|
} | null | undefined;
|
|
13
10
|
};
|
|
14
11
|
declare type LoadableChunkExtractors = {
|
|
15
|
-
legacy
|
|
16
|
-
modern
|
|
12
|
+
legacy?: ChunkExtractor;
|
|
13
|
+
modern?: ChunkExtractor;
|
|
17
14
|
commonLoadableExtractor: ChunkExtractor;
|
|
18
|
-
}
|
|
15
|
+
};
|
|
19
16
|
export declare const loadableChunkExtractors: () => LoadableChunkExtractors;
|
|
20
|
-
export declare const getBundleData: (config:
|
|
17
|
+
export declare const getBundleData: (config: ServerConfig, staticRoutePath: string) => {
|
|
21
18
|
default: {
|
|
22
19
|
stats?: string | null | undefined;
|
|
23
20
|
templates?: {
|
|
24
|
-
templateHTML:
|
|
25
|
-
templateHTMLStatic:
|
|
26
|
-
templateHTMLFragment:
|
|
21
|
+
templateHTML: string;
|
|
22
|
+
templateHTMLStatic: string;
|
|
23
|
+
templateHTMLFragment: string;
|
|
27
24
|
} | null | undefined;
|
|
28
25
|
};
|
|
29
26
|
legacy: {
|
|
30
27
|
stats?: string | null | undefined;
|
|
31
28
|
templates?: {
|
|
32
|
-
templateHTML:
|
|
33
|
-
templateHTMLStatic:
|
|
34
|
-
templateHTMLFragment:
|
|
29
|
+
templateHTML: string;
|
|
30
|
+
templateHTMLStatic: string;
|
|
31
|
+
templateHTMLFragment: string;
|
|
35
32
|
} | null | undefined;
|
|
36
33
|
};
|
|
37
34
|
modern: {
|
|
38
35
|
stats?: string | null | undefined;
|
|
39
36
|
templates?: {
|
|
40
|
-
templateHTML:
|
|
41
|
-
templateHTMLStatic:
|
|
42
|
-
templateHTMLFragment:
|
|
37
|
+
templateHTML: string;
|
|
38
|
+
templateHTMLStatic: string;
|
|
39
|
+
templateHTMLFragment: string;
|
|
43
40
|
} | null | undefined;
|
|
44
41
|
};
|
|
45
42
|
};
|
|
46
|
-
export declare const buildBundleTags: (bundles: any, differentialBundles?: boolean, staticRoutePath?: string, attributes?: string) => any;
|
|
47
43
|
export declare const getBundleTags: (loadableExtractor: LoadableChunkExtractors, scripts: ServerConfig['scripts'], staticRoutePath?: string) => string;
|
|
48
44
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getVersionInfo: (staticFolderPath: string) => any;
|
|
@@ -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,10 @@ 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
|
-
}
|
|
6
|
+
} & {
|
|
7
|
+
children?: import("react").ReactNode;
|
|
8
|
+
}, "isError" | "isLoading" | "error" | "user" | "isAuthenticated" | "isAuthenticationError" | "loginUser" | "logoutUser" | "authenticationError"> | import("react-redux").Omit<import("react").ClassAttributes<import("react").Component<{
|
|
7
9
|
[key: string]: any;
|
|
8
10
|
}, any, any>> & {
|
|
9
11
|
[key: string]: any;
|
|
10
|
-
}, "
|
|
12
|
+
}, "isError" | "isLoading" | "error" | "user" | "isAuthenticated" | "isAuthenticationError" | "loginUser" | "logoutUser" | "authenticationError">>;
|
|
@@ -3,8 +3,10 @@ declare function withRegistration(WrappedComponent: any): import("react-redux").
|
|
|
3
3
|
[key: string]: any;
|
|
4
4
|
}>, import("react-redux").Omit<{
|
|
5
5
|
[key: string]: any;
|
|
6
|
-
}
|
|
6
|
+
} & {
|
|
7
|
+
children?: import("react").ReactNode;
|
|
8
|
+
}, "isLoading" | "error" | "user" | "registerUser" | "isSuccess"> | import("react-redux").Omit<import("react").ClassAttributes<import("react").Component<{
|
|
7
9
|
[key: string]: any;
|
|
8
10
|
}, any, any>> & {
|
|
9
11
|
[key: string]: any;
|
|
10
|
-
}, "
|
|
12
|
+
}, "isLoading" | "error" | "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: 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;
|
|
@@ -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>;
|