+
+const buildUuidFilter = (type?: ResourceKind): ResourceKind[] => {
+ return type ? [type] : [ResourceKind.PROJECT, ResourceKind.COLLECTION, ResourceKind.PROCESS];
+};
+
+const buildDateFilter = (date?: string): string => {
+ return date ? date : '';
+};
+
+export const initAdvanceFormProjectsTree = () =>
+ (dispatch: Dispatch) => {
+ dispatch<any>(initUserProject(SEARCH_BAR_ADVANCE_FORM_PICKER_ID));
+ };
+
+export const changeAdvanceFormProperty = (property: string, value: PropertyValues[] | string = '') =>
+ (dispatch: Dispatch) => {
+ dispatch(change(SEARCH_BAR_ADVANCE_FORM_NAME, property, value));
+ };
+
+export const updateAdvanceFormProperties = (propertyValues: PropertyValues) =>
+ (dispatch: Dispatch) => {
+ dispatch(arrayPush(SEARCH_BAR_ADVANCE_FORM_NAME, 'properties', propertyValues));
+ };
+
+export const moveUp = () =>
+ (dispatch: Dispatch) => {
+ dispatch(searchBarActions.MOVE_UP());
+ };
+
+export const moveDown = () =>
+ (dispatch: Dispatch) => {
+ dispatch(searchBarActions.MOVE_DOWN());
+ };