From 9fb09c8a8f3928e199878c8fb8803537e6d3ef79 Mon Sep 17 00:00:00 2001 From: yu zhao Date: Thu, 30 Jul 2020 16:05:12 -0400 Subject: [PATCH] Modified API for DataTable component (#332) --- ui-packages/package.json | 1 + ui-packages/packages/common/index.ts | 39 +- .../Organisms/DataTable/DataTable.tsx | 57 +- .../DataTable/tests/DataTable.test.tsx | 33 +- .../__snapshots__/DataTable.test.tsx.snap | 632 +++++++++--------- .../UserTaskDataTableContainer.tsx | 33 +- .../UserTaskDataTableContainer.test.tsx.snap | 48 +- ui-packages/yarn.lock | 28 +- 8 files changed, 448 insertions(+), 423 deletions(-) diff --git a/ui-packages/package.json b/ui-packages/package.json index db2353d39d..7b4fc3177d 100644 --- a/ui-packages/package.json +++ b/ui-packages/package.json @@ -36,6 +36,7 @@ "axios": "^0.19.0", "camel-case": "^3.0.0", "graphql": "^14.6.0", + "jsonpath": "^1.0.2", "keycloak-js": "^8.0.0", "lodash": "^4.17.15", "lower-case": "^1.1.4", diff --git a/ui-packages/packages/common/index.ts b/ui-packages/packages/common/index.ts index d82a37f61c..a4808986d4 100644 --- a/ui-packages/packages/common/index.ts +++ b/ui-packages/packages/common/index.ts @@ -1,27 +1,14 @@ export { - default as DataTable + default as DataTable, + DataTableColumn } from './src/components/Organisms/DataTable/DataTable'; -export { - default as KogitoSpinner -} from './src/components/Atoms/KogitoSpinner/KogitoSpinner'; -export { - default as PageToolbar -} from './src/components/Molecules/PageToolbar/PageToolbar'; -export { - default as KogitoPageLayout -} from './src/components/Templates/KogitoPageLayout/KogitoPageLayout'; -export { - default as AboutModalBox -} from './src/components/Molecules/AboutModalBox/AboutModalBox'; -export { - default as EndpointLink -} from './src/components/Atoms/EndpointLink/EndpointLink'; -export { - default as PageNotFound -} from './src/components/Molecules/PageNotFound/PageNotFound'; -export { - default as ServerUnavailable -} from './src/components/Molecules/ServerUnavailable/ServerUnavailable'; +export { default as KogitoSpinner } from './src/components/Atoms/KogitoSpinner/KogitoSpinner'; +export { default as PageToolbar } from './src/components/Molecules/PageToolbar/PageToolbar'; +export { default as KogitoPageLayout } from './src/components/Templates/KogitoPageLayout/KogitoPageLayout'; +export { default as AboutModalBox } from './src/components/Molecules/AboutModalBox/AboutModalBox'; +export { default as EndpointLink } from './src/components/Atoms/EndpointLink/EndpointLink'; +export { default as PageNotFound } from './src/components/Molecules/PageNotFound/PageNotFound'; +export { default as ServerUnavailable } from './src/components/Molecules/ServerUnavailable/ServerUnavailable'; export { default as NoData } from './src/components/Molecules/NoData/NoData'; export { default as ServerErrors @@ -31,11 +18,7 @@ export { } from './src/components/Molecules/ItemDescriptor/ItemDescriptor'; export * from './src/components/Atoms/KogitoEmptyState/KogitoEmptyState'; export { default as LoadMore } from './src/components/Atoms/LoadMore/LoadMore'; -export { - default as DomainExplorer -} from './src/components/Organisms/DomainExplorer/DomainExplorer'; -export { - default as DomainExplorerListDomains -} from './src/components/Organisms/DomainExplorerListDomains/DomainExplorerListDomains'; +export { default as DomainExplorer } from './src/components/Organisms/DomainExplorer/DomainExplorer'; +export { default as DomainExplorerListDomains } from './src/components/Organisms/DomainExplorerListDomains/DomainExplorerListDomains'; export * from './src/utils/OuiaUtils'; export * from './src/graphql/types'; diff --git a/ui-packages/packages/common/src/components/Organisms/DataTable/DataTable.tsx b/ui-packages/packages/common/src/components/Organisms/DataTable/DataTable.tsx index 2a165f0e15..c139561607 100644 --- a/ui-packages/packages/common/src/components/Organisms/DataTable/DataTable.tsx +++ b/ui-packages/packages/common/src/components/Organisms/DataTable/DataTable.tsx @@ -4,8 +4,9 @@ import { Table, TableHeader, TableBody, - ICell, - IRow + IRow, + ITransform, + ICell } from '@patternfly/react-table'; import KogitoSpinner from '../../Atoms/KogitoSpinner/KogitoSpinner'; import { @@ -15,11 +16,17 @@ import { import '@patternfly/patternfly/patternfly-addons.css'; import _ from 'lodash'; import uuidv4 from 'uuid'; +import jp from 'jsonpath'; +export interface DataTableColumn { + path: string; + label: string; + bodyCellTransformer?: (value: any, rowDataObj: object) => any; +} interface IOwnProps { data: any[]; isLoading: boolean; - columns?: ICell[]; + columns?: DataTableColumn[]; networkStatus: any; error: any; refetch: () => void; @@ -27,13 +34,36 @@ interface IOwnProps { ErrorComponent?: React.ReactNode; } -const getColumns = (data: any[], columns: ICell[]) => { +const getCellData = (dataObj: object, path: string) => { + if (dataObj && path) { + return !_.isEmpty(jp.value(dataObj, path)) + ? jp.value(dataObj, path) + : 'N/A'; + } else { + return 'N/A'; + } +}; + +const getColumns = (data: any[], columns: DataTableColumn[]) => { let columnList: ICell[] = []; if (data) { columnList = columns - ? _.filter(columns, column => !_.isEmpty(column.data)) + ? _.filter(columns, column => !_.isEmpty(column.path)).map(column => { + return { + title: column.label, + data: column.path, + cellTransforms: column.bodyCellTransformer + ? [ + ((value, extra) => { + const rowDataObj = data[extra.rowIndex]; + return column.bodyCellTransformer(value, rowDataObj); + }) as ITransform + ] + : undefined + } as ICell; + }) : _.filter(_.keys(_.sample(data)), key => key !== '__typename').map( - key => ({ title: key, data: key } as ICell) + key => ({ title: key, data: `$.${key}` } as ICell) ); } return columnList; @@ -47,18 +77,9 @@ const getRows = (data: any[], columns: ICell[]) => { cells: _.reduce( columns, (result, column: ICell) => { - _.forEach(rowData, (value, key) => { - if ( - column.data && - key.toLowerCase() === column.data.toLowerCase() - ) { - if (_.isEmpty(value) || value === '{}') { - result.push('N/A'); - } else { - result.push(value); - } - } - }); + if (column.data) { + result.push(getCellData(rowData, column.data)); + } return result; }, [] diff --git a/ui-packages/packages/common/src/components/Organisms/DataTable/tests/DataTable.test.tsx b/ui-packages/packages/common/src/components/Organisms/DataTable/tests/DataTable.test.tsx index c2fc207715..bf47527f30 100644 --- a/ui-packages/packages/common/src/components/Organisms/DataTable/tests/DataTable.test.tsx +++ b/ui-packages/packages/common/src/components/Organisms/DataTable/tests/DataTable.test.tsx @@ -1,14 +1,9 @@ import React from 'react'; -import DataTable from '../DataTable'; +import DataTable, { DataTableColumn } from '../DataTable'; import { gql } from 'apollo-boost'; import { MockedProvider } from '@apollo/react-testing'; import { getWrapperAsync } from '@kogito-apps/common'; import { Label } from '@patternfly/react-core'; -import { - ICell, - ITransform, - IFormatterValueType -} from '@patternfly/react-table'; jest.mock('uuid', () => { let value = 1; @@ -73,7 +68,7 @@ const data = [ referenceName: 'ConfirmTravel' } ]; -const stateColumnTransformer: ITransform = (value: IFormatterValueType) => { +const stateColumnTransformer = (value, rowDataObj) => { if (!value) { return null; } @@ -82,27 +77,27 @@ const stateColumnTransformer: ITransform = (value: IFormatterValueType) => { children: }; }; -const columns: ICell[] = [ +const columns: DataTableColumn[] = [ { - title: 'ProcessId', - data: 'processId' + label: 'ProcessId', + path: '$.processId' }, { - title: 'Name', - data: 'name' + label: 'Name', + path: '$.name' }, { - title: 'Priority', - data: 'priority' + label: 'Priority', + path: '$.priority' }, { - title: 'ProcessInstanceId', - data: 'processInstanceId' + label: 'ProcessInstanceId', + path: '$.processInstanceId' }, { - title: 'State', - data: 'state', - cellTransforms: [stateColumnTransformer] + label: 'State', + path: '$.state', + bodyCellTransformer: stateColumnTransformer } ]; const GET_USER_TASKS_BY_STATE = gql` diff --git a/ui-packages/packages/common/src/components/Organisms/DataTable/tests/__snapshots__/DataTable.test.tsx.snap b/ui-packages/packages/common/src/components/Organisms/DataTable/tests/__snapshots__/DataTable.test.tsx.snap index a05217beab..ef55135087 100644 --- a/ui-packages/packages/common/src/components/Organisms/DataTable/tests/__snapshots__/DataTable.test.tsx.snap +++ b/ui-packages/packages/common/src/components/Organisms/DataTable/tests/__snapshots__/DataTable.test.tsx.snap @@ -5,27 +5,25 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` columns={ Array [ Object { - "data": "processId", - "title": "ProcessId", + "label": "ProcessId", + "path": "$.processId", }, Object { - "data": "name", - "title": "Name", + "label": "Name", + "path": "$.name", }, Object { - "data": "priority", - "title": "Priority", + "label": "Priority", + "path": "$.priority", }, Object { - "data": "processInstanceId", - "title": "ProcessInstanceId", + "label": "ProcessInstanceId", + "path": "$.processInstanceId", }, Object { - "cellTransforms": Array [ - [Function], - ], - "data": "state", - "title": "State", + "bodyCellTransformer": [Function], + "label": "State", + "path": "$.state", }, ] } @@ -86,26 +84,30 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` cells={ Array [ Object { - "data": "processId", + "cellTransforms": undefined, + "data": "$.processId", "title": "ProcessId", }, Object { - "data": "name", + "cellTransforms": undefined, + "data": "$.name", "title": "Name", }, Object { - "data": "priority", + "cellTransforms": undefined, + "data": "$.priority", "title": "Priority", }, Object { - "data": "processInstanceId", + "cellTransforms": undefined, + "data": "$.processInstanceId", "title": "ProcessInstanceId", }, Object { "cellTransforms": Array [ [Function], ], - "data": "state", + "data": "$.state", "title": "State", }, ] @@ -142,26 +144,30 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` "aria-label": "Data Table", "cells": Array [ Object { - "data": "processId", + "cellTransforms": undefined, + "data": "$.processId", "title": "ProcessId", }, Object { - "data": "name", + "cellTransforms": undefined, + "data": "$.name", "title": "Name", }, Object { - "data": "priority", + "cellTransforms": undefined, + "data": "$.priority", "title": "Priority", }, Object { - "data": "processInstanceId", + "cellTransforms": undefined, + "data": "$.processInstanceId", "title": "ProcessInstanceId", }, Object { "cellTransforms": Array [ [Function], ], - "data": "state", + "data": "$.state", "title": "State", }, ], @@ -204,26 +210,30 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` cells={ Array [ Object { - "data": "processId", + "cellTransforms": undefined, + "data": "$.processId", "title": "ProcessId", }, Object { - "data": "name", + "cellTransforms": undefined, + "data": "$.name", "title": "Name", }, Object { - "data": "priority", + "cellTransforms": undefined, + "data": "$.priority", "title": "Priority", }, Object { - "data": "processInstanceId", + "cellTransforms": undefined, + "data": "$.processInstanceId", "title": "ProcessInstanceId", }, Object { "cellTransforms": Array [ [Function], ], - "data": "state", + "data": "$.state", "title": "State", }, ] @@ -282,7 +292,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "processId", + "data": "$.processId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -325,7 +335,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "name", + "data": "$.name", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -368,7 +378,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "priority", + "data": "$.priority", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -411,7 +421,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "processInstanceId", + "data": "$.processInstanceId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -455,7 +465,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "state", + "data": "$.state", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -531,7 +541,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "processId", + "data": "$.processId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -574,7 +584,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "name", + "data": "$.name", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -617,7 +627,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "priority", + "data": "$.priority", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -660,7 +670,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "processInstanceId", + "data": "$.processInstanceId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -704,7 +714,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "state", + "data": "$.state", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -780,7 +790,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "processId", + "data": "$.processId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -823,7 +833,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "name", + "data": "$.name", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -866,7 +876,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "priority", + "data": "$.priority", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -909,7 +919,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "processInstanceId", + "data": "$.processInstanceId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -953,7 +963,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "state", + "data": "$.state", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -1090,7 +1100,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "processId", + "data": "$.processId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -1133,7 +1143,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "name", + "data": "$.name", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -1176,7 +1186,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "priority", + "data": "$.priority", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -1219,7 +1229,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "processInstanceId", + "data": "$.processInstanceId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -1263,7 +1273,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "state", + "data": "$.state", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -1543,7 +1553,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "processId", + "data": "$.processId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -1586,7 +1596,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "name", + "data": "$.name", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -1629,7 +1639,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "priority", + "data": "$.priority", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -1672,7 +1682,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "processInstanceId", + "data": "$.processInstanceId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -1716,7 +1726,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "state", + "data": "$.state", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -2084,7 +2094,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "processId", + "data": "$.processId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -2127,7 +2137,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "name", + "data": "$.name", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -2170,7 +2180,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "priority", + "data": "$.priority", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -2213,7 +2223,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "processInstanceId", + "data": "$.processInstanceId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -2257,7 +2267,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "state", + "data": "$.state", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -2679,7 +2689,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "processId", + "data": "$.processId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -2722,7 +2732,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "name", + "data": "$.name", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -2765,7 +2775,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "priority", + "data": "$.priority", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -2808,7 +2818,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "processInstanceId", + "data": "$.processInstanceId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -2852,7 +2862,7 @@ exports[`DataTable component tests Should render DataTable correctly 1`] = ` [Function], ], }, - "data": "state", + "data": "$.state", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -3335,83 +3345,83 @@ exports[`DataTable component tests Should render DataTable correctly even no col cells={ Array [ Object { - "data": "id", + "data": "$.id", "title": "id", }, Object { - "data": "description", + "data": "$.description", "title": "description", }, Object { - "data": "name", + "data": "$.name", "title": "name", }, Object { - "data": "priority", + "data": "$.priority", "title": "priority", }, Object { - "data": "processInstanceId", + "data": "$.processInstanceId", "title": "processInstanceId", }, Object { - "data": "processId", + "data": "$.processId", "title": "processId", }, Object { - "data": "rootProcessInstanceId", + "data": "$.rootProcessInstanceId", "title": "rootProcessInstanceId", }, Object { - "data": "rootProcessId", + "data": "$.rootProcessId", "title": "rootProcessId", }, Object { - "data": "state", + "data": "$.state", "title": "state", }, Object { - "data": "actualOwner", + "data": "$.actualOwner", "title": "actualOwner", }, Object { - "data": "adminGroups", + "data": "$.adminGroups", "title": "adminGroups", }, Object { - "data": "adminUsers", + "data": "$.adminUsers", "title": "adminUsers", }, Object { - "data": "completed", + "data": "$.completed", "title": "completed", }, Object { - "data": "started", + "data": "$.started", "title": "started", }, Object { - "data": "excludedUsers", + "data": "$.excludedUsers", "title": "excludedUsers", }, Object { - "data": "potentialGroups", + "data": "$.potentialGroups", "title": "potentialGroups", }, Object { - "data": "potentialUsers", + "data": "$.potentialUsers", "title": "potentialUsers", }, Object { - "data": "inputs", + "data": "$.inputs", "title": "inputs", }, Object { - "data": "outputs", + "data": "$.outputs", "title": "outputs", }, Object { - "data": "referenceName", + "data": "$.referenceName", "title": "referenceName", }, ] @@ -3438,7 +3448,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col "N/A", "N/A", "{\\"Skippable\\":\\"true\\",\\"trip\\":{\\"city\\":\\"Boston\\",\\"country\\":\\"US\\",\\"begin\\":\\"2020-02-19T23:00:00.000+01:00\\",\\"end\\":\\"2020-02-26T23:00:00.000+01:00\\",\\"visaRequired\\":true},\\"TaskName\\":\\"VisaApplication\\",\\"NodeName\\":\\"Apply for visa\\",\\"traveller\\":{\\"firstName\\":\\"Rachel\\",\\"lastName\\":\\"White\\",\\"email\\":\\"rwhite@gorle.com\\",\\"nationality\\":\\"Polish\\",\\"address\\":{\\"street\\":\\"Cabalone\\",\\"city\\":\\"Zerf\\",\\"zipCode\\":\\"765756\\",\\"country\\":\\"Poland\\"}},\\"Priority\\":\\"1\\"}\\"", - "N/A", + "{}", "VisaApplication", ], "rowKey": 3, @@ -3478,83 +3488,83 @@ exports[`DataTable component tests Should render DataTable correctly even no col "aria-label": "Data Table", "cells": Array [ Object { - "data": "id", + "data": "$.id", "title": "id", }, Object { - "data": "description", + "data": "$.description", "title": "description", }, Object { - "data": "name", + "data": "$.name", "title": "name", }, Object { - "data": "priority", + "data": "$.priority", "title": "priority", }, Object { - "data": "processInstanceId", + "data": "$.processInstanceId", "title": "processInstanceId", }, Object { - "data": "processId", + "data": "$.processId", "title": "processId", }, Object { - "data": "rootProcessInstanceId", + "data": "$.rootProcessInstanceId", "title": "rootProcessInstanceId", }, Object { - "data": "rootProcessId", + "data": "$.rootProcessId", "title": "rootProcessId", }, Object { - "data": "state", + "data": "$.state", "title": "state", }, Object { - "data": "actualOwner", + "data": "$.actualOwner", "title": "actualOwner", }, Object { - "data": "adminGroups", + "data": "$.adminGroups", "title": "adminGroups", }, Object { - "data": "adminUsers", + "data": "$.adminUsers", "title": "adminUsers", }, Object { - "data": "completed", + "data": "$.completed", "title": "completed", }, Object { - "data": "started", + "data": "$.started", "title": "started", }, Object { - "data": "excludedUsers", + "data": "$.excludedUsers", "title": "excludedUsers", }, Object { - "data": "potentialGroups", + "data": "$.potentialGroups", "title": "potentialGroups", }, Object { - "data": "potentialUsers", + "data": "$.potentialUsers", "title": "potentialUsers", }, Object { - "data": "inputs", + "data": "$.inputs", "title": "inputs", }, Object { - "data": "outputs", + "data": "$.outputs", "title": "outputs", }, Object { - "data": "referenceName", + "data": "$.referenceName", "title": "referenceName", }, ], @@ -3585,7 +3595,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col "N/A", "N/A", "{\\"Skippable\\":\\"true\\",\\"trip\\":{\\"city\\":\\"Boston\\",\\"country\\":\\"US\\",\\"begin\\":\\"2020-02-19T23:00:00.000+01:00\\",\\"end\\":\\"2020-02-26T23:00:00.000+01:00\\",\\"visaRequired\\":true},\\"TaskName\\":\\"VisaApplication\\",\\"NodeName\\":\\"Apply for visa\\",\\"traveller\\":{\\"firstName\\":\\"Rachel\\",\\"lastName\\":\\"White\\",\\"email\\":\\"rwhite@gorle.com\\",\\"nationality\\":\\"Polish\\",\\"address\\":{\\"street\\":\\"Cabalone\\",\\"city\\":\\"Zerf\\",\\"zipCode\\":\\"765756\\",\\"country\\":\\"Poland\\"}},\\"Priority\\":\\"1\\"}\\"", - "N/A", + "{}", "VisaApplication", ], "rowKey": 3, @@ -3627,83 +3637,83 @@ exports[`DataTable component tests Should render DataTable correctly even no col cells={ Array [ Object { - "data": "id", + "data": "$.id", "title": "id", }, Object { - "data": "description", + "data": "$.description", "title": "description", }, Object { - "data": "name", + "data": "$.name", "title": "name", }, Object { - "data": "priority", + "data": "$.priority", "title": "priority", }, Object { - "data": "processInstanceId", + "data": "$.processInstanceId", "title": "processInstanceId", }, Object { - "data": "processId", + "data": "$.processId", "title": "processId", }, Object { - "data": "rootProcessInstanceId", + "data": "$.rootProcessInstanceId", "title": "rootProcessInstanceId", }, Object { - "data": "rootProcessId", + "data": "$.rootProcessId", "title": "rootProcessId", }, Object { - "data": "state", + "data": "$.state", "title": "state", }, Object { - "data": "actualOwner", + "data": "$.actualOwner", "title": "actualOwner", }, Object { - "data": "adminGroups", + "data": "$.adminGroups", "title": "adminGroups", }, Object { - "data": "adminUsers", + "data": "$.adminUsers", "title": "adminUsers", }, Object { - "data": "completed", + "data": "$.completed", "title": "completed", }, Object { - "data": "started", + "data": "$.started", "title": "started", }, Object { - "data": "excludedUsers", + "data": "$.excludedUsers", "title": "excludedUsers", }, Object { - "data": "potentialGroups", + "data": "$.potentialGroups", "title": "potentialGroups", }, Object { - "data": "potentialUsers", + "data": "$.potentialUsers", "title": "potentialUsers", }, Object { - "data": "inputs", + "data": "$.inputs", "title": "inputs", }, Object { - "data": "outputs", + "data": "$.outputs", "title": "outputs", }, Object { - "data": "referenceName", + "data": "$.referenceName", "title": "referenceName", }, ] @@ -3744,7 +3754,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col "N/A", "N/A", "{\\"Skippable\\":\\"true\\",\\"trip\\":{\\"city\\":\\"Boston\\",\\"country\\":\\"US\\",\\"begin\\":\\"2020-02-19T23:00:00.000+01:00\\",\\"end\\":\\"2020-02-26T23:00:00.000+01:00\\",\\"visaRequired\\":true},\\"TaskName\\":\\"VisaApplication\\",\\"NodeName\\":\\"Apply for visa\\",\\"traveller\\":{\\"firstName\\":\\"Rachel\\",\\"lastName\\":\\"White\\",\\"email\\":\\"rwhite@gorle.com\\",\\"nationality\\":\\"Polish\\",\\"address\\":{\\"street\\":\\"Cabalone\\",\\"city\\":\\"Zerf\\",\\"zipCode\\":\\"765756\\",\\"country\\":\\"Poland\\"}},\\"Priority\\":\\"1\\"}\\"", - "N/A", + "{}", "VisaApplication", ], "rowKey": 3, @@ -3792,7 +3802,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "id", + "data": "$.id", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -3835,7 +3845,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "description", + "data": "$.description", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -3878,7 +3888,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "name", + "data": "$.name", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -3921,7 +3931,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "priority", + "data": "$.priority", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -3964,7 +3974,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "processInstanceId", + "data": "$.processInstanceId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4007,7 +4017,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "processId", + "data": "$.processId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4050,7 +4060,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "rootProcessInstanceId", + "data": "$.rootProcessInstanceId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4093,7 +4103,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "rootProcessId", + "data": "$.rootProcessId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4136,7 +4146,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "state", + "data": "$.state", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4179,7 +4189,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "actualOwner", + "data": "$.actualOwner", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4222,7 +4232,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "adminGroups", + "data": "$.adminGroups", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4265,7 +4275,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "adminUsers", + "data": "$.adminUsers", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4308,7 +4318,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "completed", + "data": "$.completed", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4351,7 +4361,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "started", + "data": "$.started", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4394,7 +4404,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "excludedUsers", + "data": "$.excludedUsers", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4437,7 +4447,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "potentialGroups", + "data": "$.potentialGroups", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4480,7 +4490,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "potentialUsers", + "data": "$.potentialUsers", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4523,7 +4533,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "inputs", + "data": "$.inputs", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4566,7 +4576,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "outputs", + "data": "$.outputs", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4609,7 +4619,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "referenceName", + "data": "$.referenceName", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4685,7 +4695,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "id", + "data": "$.id", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4728,7 +4738,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "description", + "data": "$.description", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4771,7 +4781,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "name", + "data": "$.name", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4814,7 +4824,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "priority", + "data": "$.priority", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4857,7 +4867,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "processInstanceId", + "data": "$.processInstanceId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4900,7 +4910,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "processId", + "data": "$.processId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4943,7 +4953,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "rootProcessInstanceId", + "data": "$.rootProcessInstanceId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -4986,7 +4996,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "rootProcessId", + "data": "$.rootProcessId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5029,7 +5039,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "state", + "data": "$.state", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5072,7 +5082,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "actualOwner", + "data": "$.actualOwner", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5115,7 +5125,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "adminGroups", + "data": "$.adminGroups", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5158,7 +5168,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "adminUsers", + "data": "$.adminUsers", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5201,7 +5211,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "completed", + "data": "$.completed", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5244,7 +5254,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "started", + "data": "$.started", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5287,7 +5297,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "excludedUsers", + "data": "$.excludedUsers", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5330,7 +5340,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "potentialGroups", + "data": "$.potentialGroups", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5373,7 +5383,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "potentialUsers", + "data": "$.potentialUsers", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5416,7 +5426,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "inputs", + "data": "$.inputs", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5459,7 +5469,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "outputs", + "data": "$.outputs", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5502,7 +5512,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "referenceName", + "data": "$.referenceName", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5578,7 +5588,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "id", + "data": "$.id", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5621,7 +5631,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "description", + "data": "$.description", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5664,7 +5674,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "name", + "data": "$.name", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5707,7 +5717,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "priority", + "data": "$.priority", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5750,7 +5760,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "processInstanceId", + "data": "$.processInstanceId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5793,7 +5803,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "processId", + "data": "$.processId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5836,7 +5846,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "rootProcessInstanceId", + "data": "$.rootProcessInstanceId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5879,7 +5889,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "rootProcessId", + "data": "$.rootProcessId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5922,7 +5932,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "state", + "data": "$.state", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -5965,7 +5975,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "actualOwner", + "data": "$.actualOwner", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -6008,7 +6018,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "adminGroups", + "data": "$.adminGroups", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -6051,7 +6061,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "adminUsers", + "data": "$.adminUsers", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -6094,7 +6104,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "completed", + "data": "$.completed", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -6137,7 +6147,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "started", + "data": "$.started", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -6180,7 +6190,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "excludedUsers", + "data": "$.excludedUsers", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -6223,7 +6233,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "potentialGroups", + "data": "$.potentialGroups", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -6266,7 +6276,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "potentialUsers", + "data": "$.potentialUsers", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -6309,7 +6319,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "inputs", + "data": "$.inputs", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -6352,7 +6362,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "outputs", + "data": "$.outputs", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -6395,7 +6405,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "referenceName", + "data": "$.referenceName", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -6757,7 +6767,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "id", + "data": "$.id", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -6800,7 +6810,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "description", + "data": "$.description", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -6843,7 +6853,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "name", + "data": "$.name", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -6886,7 +6896,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "priority", + "data": "$.priority", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -6929,7 +6939,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "processInstanceId", + "data": "$.processInstanceId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -6972,7 +6982,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "processId", + "data": "$.processId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -7015,7 +7025,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "rootProcessInstanceId", + "data": "$.rootProcessInstanceId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -7058,7 +7068,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "rootProcessId", + "data": "$.rootProcessId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -7101,7 +7111,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "state", + "data": "$.state", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -7144,7 +7154,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "actualOwner", + "data": "$.actualOwner", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -7187,7 +7197,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "adminGroups", + "data": "$.adminGroups", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -7230,7 +7240,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "adminUsers", + "data": "$.adminUsers", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -7273,7 +7283,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "completed", + "data": "$.completed", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -7316,7 +7326,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "started", + "data": "$.started", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -7359,7 +7369,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "excludedUsers", + "data": "$.excludedUsers", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -7402,7 +7412,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "potentialGroups", + "data": "$.potentialGroups", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -7445,7 +7455,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "potentialUsers", + "data": "$.potentialUsers", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -7488,7 +7498,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "inputs", + "data": "$.inputs", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -7531,7 +7541,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "outputs", + "data": "$.outputs", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -7574,7 +7584,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "referenceName", + "data": "$.referenceName", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -7636,7 +7646,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col "N/A", "N/A", "{\\"Skippable\\":\\"true\\",\\"trip\\":{\\"city\\":\\"Boston\\",\\"country\\":\\"US\\",\\"begin\\":\\"2020-02-19T23:00:00.000+01:00\\",\\"end\\":\\"2020-02-26T23:00:00.000+01:00\\",\\"visaRequired\\":true},\\"TaskName\\":\\"VisaApplication\\",\\"NodeName\\":\\"Apply for visa\\",\\"traveller\\":{\\"firstName\\":\\"Rachel\\",\\"lastName\\":\\"White\\",\\"email\\":\\"rwhite@gorle.com\\",\\"nationality\\":\\"Polish\\",\\"address\\":{\\"street\\":\\"Cabalone\\",\\"city\\":\\"Zerf\\",\\"zipCode\\":\\"765756\\",\\"country\\":\\"Poland\\"}},\\"Priority\\":\\"1\\"}\\"", - "N/A", + "{}", "VisaApplication", ], "rowKey": 3, @@ -7712,7 +7722,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col "N/A", "N/A", "{\\"Skippable\\":\\"true\\",\\"trip\\":{\\"city\\":\\"Boston\\",\\"country\\":\\"US\\",\\"begin\\":\\"2020-02-19T23:00:00.000+01:00\\",\\"end\\":\\"2020-02-26T23:00:00.000+01:00\\",\\"visaRequired\\":true},\\"TaskName\\":\\"VisaApplication\\",\\"NodeName\\":\\"Apply for visa\\",\\"traveller\\":{\\"firstName\\":\\"Rachel\\",\\"lastName\\":\\"White\\",\\"email\\":\\"rwhite@gorle.com\\",\\"nationality\\":\\"Polish\\",\\"address\\":{\\"street\\":\\"Cabalone\\",\\"city\\":\\"Zerf\\",\\"zipCode\\":\\"765756\\",\\"country\\":\\"Poland\\"}},\\"Priority\\":\\"1\\"}\\"", - "N/A", + "{}", "VisaApplication", ], "completed": Object { @@ -7761,7 +7771,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col "props": Object { "isVisible": true, }, - "title": "N/A", + "title": "{}", }, "potentialgroups": Object { "props": Object { @@ -8020,7 +8030,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col "N/A", "N/A", "{\\"Skippable\\":\\"true\\",\\"trip\\":{\\"city\\":\\"Boston\\",\\"country\\":\\"US\\",\\"begin\\":\\"2020-02-19T23:00:00.000+01:00\\",\\"end\\":\\"2020-02-26T23:00:00.000+01:00\\",\\"visaRequired\\":true},\\"TaskName\\":\\"VisaApplication\\",\\"NodeName\\":\\"Apply for visa\\",\\"traveller\\":{\\"firstName\\":\\"Rachel\\",\\"lastName\\":\\"White\\",\\"email\\":\\"rwhite@gorle.com\\",\\"nationality\\":\\"Polish\\",\\"address\\":{\\"street\\":\\"Cabalone\\",\\"city\\":\\"Zerf\\",\\"zipCode\\":\\"765756\\",\\"country\\":\\"Poland\\"}},\\"Priority\\":\\"1\\"}\\"", - "N/A", + "{}", "VisaApplication", ], "completed": Object { @@ -8069,7 +8079,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col "props": Object { "isVisible": true, }, - "title": "N/A", + "title": "{}", }, "potentialgroups": Object { "props": Object { @@ -8300,7 +8310,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "id", + "data": "$.id", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -8343,7 +8353,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "description", + "data": "$.description", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -8386,7 +8396,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "name", + "data": "$.name", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -8429,7 +8439,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "priority", + "data": "$.priority", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -8472,7 +8482,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "processInstanceId", + "data": "$.processInstanceId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -8515,7 +8525,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "processId", + "data": "$.processId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -8558,7 +8568,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "rootProcessInstanceId", + "data": "$.rootProcessInstanceId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -8601,7 +8611,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "rootProcessId", + "data": "$.rootProcessId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -8644,7 +8654,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "state", + "data": "$.state", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -8687,7 +8697,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "actualOwner", + "data": "$.actualOwner", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -8730,7 +8740,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "adminGroups", + "data": "$.adminGroups", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -8773,7 +8783,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "adminUsers", + "data": "$.adminUsers", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -8816,7 +8826,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "completed", + "data": "$.completed", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -8859,7 +8869,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "started", + "data": "$.started", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -8902,7 +8912,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "excludedUsers", + "data": "$.excludedUsers", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -8945,7 +8955,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "potentialGroups", + "data": "$.potentialGroups", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -8988,7 +8998,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "potentialUsers", + "data": "$.potentialUsers", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -9031,7 +9041,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "inputs", + "data": "$.inputs", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -9074,7 +9084,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "outputs", + "data": "$.outputs", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -9117,7 +9127,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "referenceName", + "data": "$.referenceName", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -9194,7 +9204,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col "N/A", "N/A", "{\\"Skippable\\":\\"true\\",\\"trip\\":{\\"city\\":\\"Boston\\",\\"country\\":\\"US\\",\\"begin\\":\\"2020-02-19T23:00:00.000+01:00\\",\\"end\\":\\"2020-02-26T23:00:00.000+01:00\\",\\"visaRequired\\":true},\\"TaskName\\":\\"VisaApplication\\",\\"NodeName\\":\\"Apply for visa\\",\\"traveller\\":{\\"firstName\\":\\"Rachel\\",\\"lastName\\":\\"White\\",\\"email\\":\\"rwhite@gorle.com\\",\\"nationality\\":\\"Polish\\",\\"address\\":{\\"street\\":\\"Cabalone\\",\\"city\\":\\"Zerf\\",\\"zipCode\\":\\"765756\\",\\"country\\":\\"Poland\\"}},\\"Priority\\":\\"1\\"}\\"", - "N/A", + "{}", "VisaApplication", ], "completed": Object { @@ -9243,7 +9253,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col "props": Object { "isVisible": true, }, - "title": "N/A", + "title": "{}", }, "potentialgroups": Object { "props": Object { @@ -9517,7 +9527,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col "N/A", "N/A", "{\\"Skippable\\":\\"true\\",\\"trip\\":{\\"city\\":\\"Boston\\",\\"country\\":\\"US\\",\\"begin\\":\\"2020-02-19T23:00:00.000+01:00\\",\\"end\\":\\"2020-02-26T23:00:00.000+01:00\\",\\"visaRequired\\":true},\\"TaskName\\":\\"VisaApplication\\",\\"NodeName\\":\\"Apply for visa\\",\\"traveller\\":{\\"firstName\\":\\"Rachel\\",\\"lastName\\":\\"White\\",\\"email\\":\\"rwhite@gorle.com\\",\\"nationality\\":\\"Polish\\",\\"address\\":{\\"street\\":\\"Cabalone\\",\\"city\\":\\"Zerf\\",\\"zipCode\\":\\"765756\\",\\"country\\":\\"Poland\\"}},\\"Priority\\":\\"1\\"}\\"", - "N/A", + "{}", "VisaApplication", ], "completed": Object { @@ -9566,7 +9576,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col "props": Object { "isVisible": true, }, - "title": "N/A", + "title": "{}", }, "potentialgroups": Object { "props": Object { @@ -9827,7 +9837,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col "N/A", "N/A", "{\\"Skippable\\":\\"true\\",\\"trip\\":{\\"city\\":\\"Boston\\",\\"country\\":\\"US\\",\\"begin\\":\\"2020-02-19T23:00:00.000+01:00\\",\\"end\\":\\"2020-02-26T23:00:00.000+01:00\\",\\"visaRequired\\":true},\\"TaskName\\":\\"VisaApplication\\",\\"NodeName\\":\\"Apply for visa\\",\\"traveller\\":{\\"firstName\\":\\"Rachel\\",\\"lastName\\":\\"White\\",\\"email\\":\\"rwhite@gorle.com\\",\\"nationality\\":\\"Polish\\",\\"address\\":{\\"street\\":\\"Cabalone\\",\\"city\\":\\"Zerf\\",\\"zipCode\\":\\"765756\\",\\"country\\":\\"Poland\\"}},\\"Priority\\":\\"1\\"}\\"", - "N/A", + "{}", "VisaApplication", ], "completed": Object { @@ -9876,7 +9886,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col "props": Object { "isVisible": true, }, - "title": "N/A", + "title": "{}", }, "potentialgroups": Object { "props": Object { @@ -10109,7 +10119,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "id", + "data": "$.id", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -10152,7 +10162,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "description", + "data": "$.description", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -10195,7 +10205,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "name", + "data": "$.name", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -10238,7 +10248,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "priority", + "data": "$.priority", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -10281,7 +10291,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "processInstanceId", + "data": "$.processInstanceId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -10324,7 +10334,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "processId", + "data": "$.processId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -10367,7 +10377,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "rootProcessInstanceId", + "data": "$.rootProcessInstanceId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -10410,7 +10420,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "rootProcessId", + "data": "$.rootProcessId", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -10453,7 +10463,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "state", + "data": "$.state", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -10496,7 +10506,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "actualOwner", + "data": "$.actualOwner", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -10539,7 +10549,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "adminGroups", + "data": "$.adminGroups", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -10582,7 +10592,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "adminUsers", + "data": "$.adminUsers", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -10625,7 +10635,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "completed", + "data": "$.completed", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -10668,7 +10678,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "started", + "data": "$.started", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -10711,7 +10721,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "excludedUsers", + "data": "$.excludedUsers", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -10754,7 +10764,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "potentialGroups", + "data": "$.potentialGroups", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -10797,7 +10807,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "potentialUsers", + "data": "$.potentialUsers", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -10840,7 +10850,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "inputs", + "data": "$.inputs", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -10883,7 +10893,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "outputs", + "data": "$.outputs", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -10926,7 +10936,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col [Function], ], }, - "data": "referenceName", + "data": "$.referenceName", "extraParams": Object { "actionResolver": undefined, "actions": undefined, @@ -11010,7 +11020,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col "N/A", "N/A", "{\\"Skippable\\":\\"true\\",\\"trip\\":{\\"city\\":\\"Boston\\",\\"country\\":\\"US\\",\\"begin\\":\\"2020-02-19T23:00:00.000+01:00\\",\\"end\\":\\"2020-02-26T23:00:00.000+01:00\\",\\"visaRequired\\":true},\\"TaskName\\":\\"VisaApplication\\",\\"NodeName\\":\\"Apply for visa\\",\\"traveller\\":{\\"firstName\\":\\"Rachel\\",\\"lastName\\":\\"White\\",\\"email\\":\\"rwhite@gorle.com\\",\\"nationality\\":\\"Polish\\",\\"address\\":{\\"street\\":\\"Cabalone\\",\\"city\\":\\"Zerf\\",\\"zipCode\\":\\"765756\\",\\"country\\":\\"Poland\\"}},\\"Priority\\":\\"1\\"}\\"", - "N/A", + "{}", "VisaApplication", ], "completed": Object { @@ -11059,7 +11069,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col "props": Object { "isVisible": true, }, - "title": "N/A", + "title": "{}", }, "potentialgroups": Object { "props": Object { @@ -11168,7 +11178,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col "N/A", "N/A", "{\\"Skippable\\":\\"true\\",\\"trip\\":{\\"city\\":\\"Boston\\",\\"country\\":\\"US\\",\\"begin\\":\\"2020-02-19T23:00:00.000+01:00\\",\\"end\\":\\"2020-02-26T23:00:00.000+01:00\\",\\"visaRequired\\":true},\\"TaskName\\":\\"VisaApplication\\",\\"NodeName\\":\\"Apply for visa\\",\\"traveller\\":{\\"firstName\\":\\"Rachel\\",\\"lastName\\":\\"White\\",\\"email\\":\\"rwhite@gorle.com\\",\\"nationality\\":\\"Polish\\",\\"address\\":{\\"street\\":\\"Cabalone\\",\\"city\\":\\"Zerf\\",\\"zipCode\\":\\"765756\\",\\"country\\":\\"Poland\\"}},\\"Priority\\":\\"1\\"}\\"", - "N/A", + "{}", "VisaApplication", ], "completed": Object { @@ -11217,7 +11227,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col "props": Object { "isVisible": true, }, - "title": "N/A", + "title": "{}", }, "potentialgroups": Object { "props": Object { @@ -11425,7 +11435,7 @@ exports[`DataTable component tests Should render DataTable correctly even no col data-label="outputs" isVisible={true} > - N/A + {} , - N/A + {} @@ -29,7 +25,8 @@ const UserTaskLoadingComponent = ( ); -const stateColumnTransformer: ITransform = (value: IFormatterValueType) => { +const stateColumnTransformer = (value, rowDataObj) => { + // rowDataObj is the original data object to render the row if (!value) { return null; } @@ -56,27 +53,27 @@ const UserTaskDataTableContainer: React.FC = ({ notifyOnNetworkStatusChange: true }); - const columns: ICell[] = [ + const columns: DataTableColumn[] = [ { - title: 'ProcessId', - data: 'processId' + label: 'ProcessId', + path: '$.processId' }, { - title: 'Name', - data: 'name' + label: 'Name', + path: '$.name' }, { - title: 'Priority', - data: 'priority' + label: 'Priority', + path: '$.priority' }, { - title: 'ProcessInstanceId', - data: 'processInstanceId' + label: 'ProcessInstanceId', + path: '$.processInstanceId' }, { - title: 'State', - data: 'state', - cellTransforms: [stateColumnTransformer] + label: 'State', + path: '$.state', + bodyCellTransformer: stateColumnTransformer } ]; diff --git a/ui-packages/packages/task-console/src/components/Templates/UserTaskDataTableContainer/tests/__snapshots__/UserTaskDataTableContainer.test.tsx.snap b/ui-packages/packages/task-console/src/components/Templates/UserTaskDataTableContainer/tests/__snapshots__/UserTaskDataTableContainer.test.tsx.snap index e306858f50..4113458180 100644 --- a/ui-packages/packages/task-console/src/components/Templates/UserTaskDataTableContainer/tests/__snapshots__/UserTaskDataTableContainer.test.tsx.snap +++ b/ui-packages/packages/task-console/src/components/Templates/UserTaskDataTableContainer/tests/__snapshots__/UserTaskDataTableContainer.test.tsx.snap @@ -43,27 +43,25 @@ exports[`UserTaskDataTableContainer component tests Should render UserTaskDataTa columns={ Array [ Object { - "data": "processId", - "title": "ProcessId", + "label": "ProcessId", + "path": "$.processId", }, Object { - "data": "name", - "title": "Name", + "label": "Name", + "path": "$.name", }, Object { - "data": "priority", - "title": "Priority", + "label": "Priority", + "path": "$.priority", }, Object { - "data": "processInstanceId", - "title": "ProcessInstanceId", + "label": "ProcessInstanceId", + "path": "$.processInstanceId", }, Object { - "cellTransforms": Array [ - [Function], - ], - "data": "state", - "title": "State", + "bodyCellTransformer": [Function], + "label": "State", + "path": "$.state", }, ] } @@ -179,27 +177,25 @@ exports[`UserTaskDataTableContainer component tests Should render UserTaskDataTa columns={ Array [ Object { - "data": "processId", - "title": "ProcessId", + "label": "ProcessId", + "path": "$.processId", }, Object { - "data": "name", - "title": "Name", + "label": "Name", + "path": "$.name", }, Object { - "data": "priority", - "title": "Priority", + "label": "Priority", + "path": "$.priority", }, Object { - "data": "processInstanceId", - "title": "ProcessInstanceId", + "label": "ProcessInstanceId", + "path": "$.processInstanceId", }, Object { - "cellTransforms": Array [ - [Function], - ], - "data": "state", - "title": "State", + "bodyCellTransformer": [Function], + "label": "State", + "path": "$.state", }, ] } diff --git a/ui-packages/yarn.lock b/ui-packages/yarn.lock index dbbe85d8e8..dd9bdd5885 100644 --- a/ui-packages/yarn.lock +++ b/ui-packages/yarn.lock @@ -8247,7 +8247,7 @@ escape-string-regexp@1.0.5, escape-string-regexp@^1.0.2, escape-string-regexp@^1 resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= -escodegen@^1.11.1: +escodegen@^1.11.1, escodegen@^1.8.1: version "1.14.3" resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.3.tgz#4e7b81fba61581dc97582ed78cab7f0e8d63f503" integrity sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw== @@ -8267,6 +8267,11 @@ eslint-scope@^4.0.3: esrecurse "^4.1.0" estraverse "^4.1.1" +esprima@1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-1.2.2.tgz#76a0fd66fcfe154fd292667dc264019750b1657b" + integrity sha1-dqD9Zvz+FU/SkmZ9wmQBl1CxZXs= + esprima@^4.0.0, esprima@^4.0.1, esprima@~4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" @@ -11575,6 +11580,15 @@ jsonparse@^1.2.0: resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" integrity sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA= +jsonpath@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/jsonpath/-/jsonpath-1.0.2.tgz#e6aae681d03e9a77b4651d5d96eac5fc63b1fd13" + integrity sha512-rmzlgFZiQPc6q4HDyK8s9Qb4oxBnI5sF61y/Co5PV0lc3q2bIuRsNdueVbhoSHdKM4fxeimphOAtfz47yjCfeA== + dependencies: + esprima "1.2.2" + static-eval "2.0.2" + underscore "1.7.0" + jsonwebtoken@^8.1.0: version "8.5.1" resolved "https://registry.yarnpkg.com/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz#00e71e0b8df54c2121a1f26137df2280673bcc0d" @@ -16581,6 +16595,13 @@ start-server-and-test@^1.10.8: ps-tree "1.2.0" wait-on "5.1.0" +static-eval@2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/static-eval/-/static-eval-2.0.2.tgz#2d1759306b1befa688938454c546b7871f806a42" + integrity sha512-N/D219Hcr2bPjLxPiV+TQE++Tsmrady7TqAJugLy7Xk1EumfDWS/f5dtBbkRCGE7wKKXuYockQoj8Rm2/pVKyg== + dependencies: + escodegen "^1.8.1" + static-extend@^0.1.1: version "0.1.2" resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" @@ -17688,6 +17709,11 @@ undefsafe@^2.0.2: dependencies: debug "^2.2.0" +underscore@1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.7.0.tgz#6bbaf0877500d36be34ecaa584e0db9fef035209" + integrity sha1-a7rwh3UA02vjTsqlhODbn+8DUgk= + unfetch@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/unfetch/-/unfetch-4.1.0.tgz#6ec2dd0de887e58a4dee83a050ded80ffc4137db"