@zengenti/contensis-react-base 3.0.0-beta.6 → 3.0.0-beta.60
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-3324f784.js → App-36c7bf3a.js} +124 -140
- package/cjs/App-36c7bf3a.js.map +1 -0
- package/cjs/{RouteLoader-c7957b14.js → RouteLoader-ece762dc.js} +31 -23
- package/cjs/RouteLoader-ece762dc.js.map +1 -0
- package/cjs/ToJs-09204afd.js +129 -0
- package/cjs/ToJs-09204afd.js.map +1 -0
- package/cjs/VersionInfo-df35c917.js +181 -0
- package/cjs/VersionInfo-df35c917.js.map +1 -0
- package/cjs/{actions-a24bf46e.js → actions-6b9ef168.js} +5 -4
- package/cjs/actions-6b9ef168.js.map +1 -0
- package/cjs/client.js +16 -21
- package/cjs/client.js.map +1 -1
- package/cjs/contensis-react-base.js +3583 -38
- package/cjs/contensis-react-base.js.map +1 -1
- package/cjs/forms.js +4114 -195
- 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-d67b82aa.js} +92 -55
- 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 +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-8cf21563.js +2038 -0
- package/cjs/sagas-8cf21563.js.map +1 -0
- package/cjs/search.js +280 -1907
- package/cjs/search.js.map +1 -1
- package/cjs/{selectors-0ec95076.js → selectors-2c1b1183.js} +7 -3
- package/cjs/selectors-2c1b1183.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-ca4173a8.js} +28 -20
- package/cjs/version-ca4173a8.js.map +1 -0
- package/cjs/{version-085d203d.js → version-dcfdafd9.js} +5 -5
- package/cjs/version-dcfdafd9.js.map +1 -0
- package/esm/{App-1b05ab11.js → App-61bf1832.js} +124 -141
- package/esm/App-61bf1832.js.map +1 -0
- package/esm/{RouteLoader-e5f0e8cb.js → RouteLoader-7749ad3f.js} +31 -23
- package/esm/RouteLoader-7749ad3f.js.map +1 -0
- package/esm/ToJs-2627ce21.js +99 -0
- package/esm/ToJs-2627ce21.js.map +1 -0
- package/esm/VersionInfo-add96cdb.js +172 -0
- package/esm/VersionInfo-add96cdb.js.map +1 -0
- package/esm/{actions-927d9698.js → actions-5437f43d.js} +5 -4
- package/esm/actions-5437f43d.js.map +1 -0
- package/esm/client.js +17 -22
- package/esm/client.js.map +1 -1
- package/esm/contensis-react-base.js +3581 -37
- package/esm/contensis-react-base.js.map +1 -1
- package/esm/forms.js +4114 -198
- 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-f6dfbe1b.js} +92 -55
- 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 +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-a22fc54a.js +1952 -0
- package/esm/sagas-a22fc54a.js.map +1 -0
- package/esm/search.js +240 -1848
- package/esm/search.js.map +1 -1
- package/esm/{selectors-b98d5c76.js → selectors-65f0f31c.js} +7 -4
- package/esm/selectors-65f0f31c.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-16aa83eb.js → version-1d46bde8.js} +27 -20
- package/esm/version-1d46bde8.js.map +1 -0
- package/esm/version-696796d7.js +15 -0
- package/esm/version-696796d7.js.map +1 -0
- package/models/app/pages/VersionInfo/components/VersionInfo.d.ts +1 -1
- package/models/forms/index.d.ts +2 -0
- 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 +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/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/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-lock.json +2690 -3400
- package/package.json +60 -55
- 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
|
@@ -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,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>;
|
|
@@ -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;
|