Skip to content

Instantly share code, notes, and snippets.

@sanusart
Last active April 18, 2019 10:21
Show Gist options
  • Save sanusart/6a84a6bec048d3ceea26614ebe22f155 to your computer and use it in GitHub Desktop.
Save sanusart/6a84a6bec048d3ceea26614ebe22f155 to your computer and use it in GitHub Desktop.
faker
import faker from 'faker';
export const dataStreamEntities = {
data: [
{
id: 6248,
name: 'Data Stream',
enabled: true,
sourceDisplayName: 'Google Analytics',
lastRunStatus: false,
lastRowsRetrieved: 0,
lastUpdate: 1527692909141,
type: 'TOTAL_CONNECT',
retrievalEnabled: false,
processStatsCounts: 0,
pendingStatsCount: 0,
dataSourceId: 100045
},
{
id: 9587,
name: 'Data Stream',
enabled: true,
sourceDisplayName: 'Google Analytics',
lastRunStatus: false,
lastRowsRetrieved: 0,
lastUpdate: 1527654209141,
type: 'TOTAL_CONNECT',
retrievalEnabled: true,
processStatsCounts: 0,
pendingStatsCount: 0,
dataSourceId: 100005
},
{
id: 14345,
name: 'Data Stream',
enabled: true,
sourceDisplayName: 'Google Analytics',
lastRunStatus: false,
lastRowsRetrieved: 0,
lastUpdate: 1527652209141,
type: 'TOTAL_CONNECT',
retrievalEnabled: false,
processStatsCounts: 0,
pendingStatsCount: 0,
dataSourceId: 100021
},
{
id: 5139,
name: 'Data Stream',
enabled: true,
sourceDisplayName: 'Google Analytics',
lastRunStatus: false,
lastRowsRetrieved: 0,
lastUpdate: 1527654339141,
type: 'TOTAL_CONNECT',
retrievalEnabled: true,
processStatsCounts: 0,
pendingStatsCount: 0,
dataSourceId: 100067
},
{
id: 21423235,
name: 'Data Stream',
enabled: true,
sourceDisplayName: 'Facebook-Ads',
lastRunStatus: false,
lastRowsRetrieved: 0,
lastUpdate: 1527654109141,
type: 'API',
retrievalEnabled: true,
processStatsCounts: 0,
pendingStatsCount: 0,
dataSourceId: 100091
},
{
id: 94932,
name: 'Data Stream',
enabled: true,
sourceDisplayName: 'Facebook-Ads',
lastRunStatus: true,
lastRowsRetrieved: 0,
lastUpdate: 1527654209141,
type: 'API',
retrievalEnabled: true,
processStatsCounts: 0,
pendingStatsCount: 0,
dataSourceId: 100049
},
{
id: 4561,
name: 'Data Stream',
enabled: true,
sourceDisplayName: 'Facebook-Ads',
lastRunStatus: true,
lastRowsRetrieved: 0,
lastUpdate: 1527654809141,
type: 'API',
retrievalEnabled: true,
processStatsCounts: 0,
pendingStatsCount: 0,
dataSourceId: 100035
},
{
id: 394,
name: 'Data Stream',
enabled: true,
sourceDisplayName: 'Twitter Competitive',
lastRunStatus: true,
lastRowsRetrieved: 4068,
lastUpdate: 1527654201241,
type: 'LITE_CONNECT',
retrievalEnabled: true,
processStatsCounts: 0,
pendingStatsCount: 0,
dataSourceId: 100071
},
{
id: 23,
name: 'Data Stream',
enabled: true,
sourceDisplayName: 'Twitter Competitive',
lastRunStatus: true,
lastRowsRetrieved: 22,
lastUpdate: 1527654287141,
type: 'LITE_CONNECT',
retrievalEnabled: true,
processStatsCounts: 0,
pendingStatsCount: 0,
dataSourceId: 100045
},
{
id: 9039,
name: 'Data Stream',
enabled: true,
sourceDisplayName: 'Twitter Competitive',
lastRunStatus: true,
lastRowsRetrieved: 545,
lastUpdate: 1527652209141,
type: 'TOTAL_CONNECT',
retrievalEnabled: true,
processStatsCounts: 0,
pendingStatsCount: 0,
dataSourceId: 100045
},
{
id: 21421,
name: 'Data Stream',
enabled: true,
sourceDisplayName: 'Twitter Competitive',
lastRunStatus: true,
lastRowsRetrieved: 95,
lastUpdate: 1527154209141,
type: 'API',
retrievalEnabled: true,
processStatsCounts: 0,
pendingStatsCount: 0,
dataSourceId: 100045
},
{
id: 3142323,
name: 'Data Stream',
enabled: true,
sourceDisplayName: 'Twitter Competitive',
lastRunStatus: true,
lastRowsRetrieved: 800,
lastUpdate: 1527654209541,
type: 'API',
retrievalEnabled: true,
processStatsCounts: 0,
pendingStatsCount: 0,
dataSourceId: 100045
},
{
id: 2112323,
name: 'Data Stream',
enabled: true,
sourceDisplayName: 'Twitter Competitive',
lastRunStatus: true,
lastRowsRetrieved: 43,
lastUpdate: 1527654204141,
type: 'API',
retrievalEnabled: true,
processStatsCounts: 0,
pendingStatsCount: 0,
dataSourceId: 100045
},
{
id: 2145323,
name: 'Data Stream',
enabled: true,
sourceDisplayName: 'Twitter Competitive',
lastRunStatus: true,
lastRowsRetrieved: 949,
lastUpdate: 1527654201141,
type: 'API',
retrievalEnabled: true,
processStatsCounts: 0,
pendingStatsCount: 0,
dataSourceId: 100051
},
{
id: 2142313,
name: 'Data Stream',
enabled: true,
sourceDisplayName: 'Twitter Competitive',
lastRunStatus: true,
lastRowsRetrieved: 4068,
lastUpdate: 1527659209141,
type: 'TOTAL_CONNECT',
retrievalEnabled: false,
processStatsCounts: 0,
pendingStatsCount: 0,
dataSourceId: 100022
},
{
id: 2142323,
name: 'Data Stream',
enabled: true,
sourceDisplayName: 'Twitter Competitive',
lastRunStatus: true,
lastRowsRetrieved: 108,
lastUpdate: 1527624209141,
type: 'TOTAL_CONNECT',
retrievalEnabled: true,
processStatsCounts: 0,
pendingStatsCount: 0,
dataSourceId: 100045
}
]
};
export const workflowEntities = {
data: [...Array(1000).keys()].map(id => ({
id,
name: faker.company.companyName(),
enabled: faker.random.boolean(),
status: faker.helpers.shuffle(['FAILED', 'COMPLETED'])[0],
lastRunDate: new Date(faker.date.past()).getTime() / 1000,
executableEntitySchedulingDto: {
periodType: faker.helpers.shuffle(['WEEKLY', 'MONTHLY', 'DAILY'])[0]
}
}))
};
const workflowStats = {
data: [...Array(1000).keys()].map(id => ({
id,
workflowId: id,
status: faker.helpers.shuffle(['FAILED', 'SUCCESS'])[0],
reason: faker.helpers.shuffle(['FAILED_TO_DELIVER', null])[0],
executionStartDate: new Date(faker.date.past()).getTime() / 1000
}))
};
export const reportEntities = {
data: [
{
id: 123,
name: 'Report#123',
exportFormat: 'EXCEL',
active: true,
reportSchedules: [
{
active: true,
deliveryMethod: 'EMAIL'
}
]
},
{
id: 6,
name: 'Report#6',
exportFormat: 'EXCEL',
active: true,
reportSchedules: [
{
active: true,
deliveryMethod: 'EMAIL'
},
{
active: true,
deliveryMethod: 'FTP'
}
]
},
{
id: 7,
name: 'Report#7',
exportFormat: 'EXCEL',
active: true,
reportSchedules: [
{
active: true,
deliveryMethod: 'EMAIL'
},
{
active: true,
deliveryMethod: 'HTTP'
}
]
},
{
id: 25,
name: 'Report#25',
exportFormat: 'EXCEL',
active: true,
reportSchedules: [
{
active: true,
deliveryMethod: 'EMAIL'
}
]
},
{
id: 98,
name: 'Report#98',
exportFormat: 'EXCEL',
active: true,
reportSchedules: [
{
active: true,
deliveryMethod: 'SFTP'
}
]
},
{
id: 4,
name: 'Report#4',
exportFormat: 'EXCEL',
active: true,
reportSchedules: [
{
active: true,
deliveryMethod: 'SFTP'
}
]
},
{
id: 3,
name: 'Report#3',
exportFormat: 'EXCEL',
active: true,
reportSchedules: [
{
active: true,
deliveryMethod: 'EMAIL'
}
]
},
{
id: 34,
name: 'Report#34',
exportFormat: 'EXCEL',
active: true,
reportSchedules: [
{
active: true,
deliveryMethod: 'AWS'
},
{
active: true,
deliveryMethod: 'EMAIL'
},
{
active: true,
deliveryMethod: 'EMAIL'
},
{
active: false,
deliveryMethod: 'lkasfnaslk'
}
]
},
{
id: 72,
name: 'Report#72',
exportFormat: 'PDF',
active: true,
reportSchedules: [
{
active: true,
deliveryMethod: 'EMAIL'
}
]
},
{
id: 90,
name: 'Report#90',
exportFormat: 'CSV',
active: true,
reportSchedules: [
{
active: true,
deliveryMethod: 'FTP'
}
]
},
{
id: 63,
name: 'Report#63',
exportFormat: 'EXCEL',
active: true,
reportSchedules: [
{
active: true,
deliveryMethod: 'FTP'
}
]
},
{
id: 27,
name: 'Report#27',
exportFormat: 'CSV',
active: true,
reportSchedules: [
{
active: true,
deliveryMethod: 'FTP'
}
]
}
]
};
export const actionEntities = {
data: [
{
id: 123,
name: 'Action#123',
enabled: true,
newConfig: {
typeDisplayName: 'Email'
}
},
{
id: 12,
name: 'Action#12',
enabled: true,
newConfig: {
typeDisplayName: 'Email'
}
},
{
id: 6,
name: 'Action#6',
enabled: true,
newConfig: {
actionSubType: 'Google Ads | Campaign'
}
},
{
id: 7,
name: 'Action#7',
enabled: true,
newConfig: {
actionSubType: 'Google Ads | Campaign'
}
},
{
id: 25,
name: 'Action#25',
enabled: true,
newConfig: {
typeDisplayName: 'Slack'
}
},
{
id: 98,
name: 'Action#98',
enabled: true,
newConfig: {
actionSubType: 'Google Ads | Campaign'
}
},
{
id: 4,
name: 'Action#4',
enabled: true,
newConfig: {
typeDisplayName: 'Slack'
}
},
{
id: 3,
name: 'Action#3',
enabled: true,
newConfig: {
actionSubType: 'Google Ads | Campaign'
}
},
{
id: 34,
name: 'Action#34',
enabled: true,
newConfig: {
actionSubType: 'Google Ads | Campaign'
}
},
{
id: 72,
name: 'Action#72',
enabled: true,
newConfig: {
typeDisplayName: 'Slack'
}
},
{
id: 90,
name: 'Action#90',
enabled: true,
newConfig: {
actionSubType: 'Google Ads | Campaign'
}
},
{
id: 63,
name: 'Action#63',
enabled: true,
newConfig: {
actionSubType: 'Google Ads | Campaign'
}
},
{
id: 27,
name: 'Action#27',
enabled: true,
newConfig: {
typeDisplayName: 'Slack'
}
}
]
};
const dataStreamStats = {
data: [
{
id: 1,
dataStreamId: 6248,
status: 'FAIL',
statusReason: 'MISSING_FIELD',
startExecutionTime: 1535015998231
},
{
id: 1,
dataStreamId: 9587,
status: 'FAIL',
statusReason: 'MISSING_FIELD',
startExecutionTime: 1535015998231
},
{
id: 1,
dataStreamId: 14345,
status: 'FAIL',
statusReason: 'MISSING_FIELD',
startExecutionTime: 1535015998231
},
{
id: 1,
dataStreamId: 5139,
status: 'FAIL',
statusReason: 'MISSING_FIELD',
startExecutionTime: 1535015998231
},
{
id: 1,
dataStreamId: 21423235,
status: 'FAIL',
statusReason: 'MISSING_FIELD',
startExecutionTime: 1535015998231
},
{
id: 0,
dataStreamId: 94932,
status: 'SUCCESS',
statusReason: null,
startExecutionTime: 1535015998231
},
{
id: 1,
dataStreamId: 94932,
status: 'FAIL',
statusReason: 'MISSING_FIELD',
startExecutionTime: 1535015998231
},
{
id: 0,
dataStreamId: 4561,
status: 'SUCCESS',
statusReason: null,
startExecutionTime: 1535015998231
},
{
id: 1,
dataStreamId: 4561,
status: 'FAIL',
statusReason: 'MISSING_FIELD',
startExecutionTime: 1535015998231
},
{
id: 0,
dataStreamId: 394,
status: 'SUCCESS',
statusReason: null,
startExecutionTime: 1535015998231
},
{
id: 1,
dataStreamId: 394,
status: 'FAIL',
statusReason: 'MISSING_FIELD',
startExecutionTime: 1535015998231
},
{
id: 0,
dataStreamId: 23,
status: 'SUCCESS',
statusReason: null,
startExecutionTime: 1535015998231
},
{
id: 1,
dataStreamId: 23,
status: 'FAIL',
statusReason: 'MISSING_FIELD',
startExecutionTime: 1535015998231
},
{
id: 0,
dataStreamId: 9039,
status: 'SUCCESS',
statusReason: null,
startExecutionTime: 1535015998231
},
{
id: 1,
dataStreamId: 9039,
status: 'FAIL',
statusReason: 'MISSING_FIELD',
startExecutionTime: 1535015998231
},
{
id: 1,
dataStreamId: 21421,
status: 'FAIL',
statusReason: 'MISSING_FIELD',
startExecutionTime: 1535015998231
},
{
id: 0,
dataStreamId: 3142323,
status: 'SUCCESS',
statusReason: null,
startExecutionTime: 1535015998231
},
{
id: 1,
dataStreamId: 3142323,
status: 'FAIL',
statusReason: 'UNKNOWN',
startExecutionTime: 1535015998231
},
{
id: 0,
dataStreamId: 2112323,
status: 'SUCCESS',
statusReason: null,
startExecutionTime: 1535015998231
},
{
id: 1,
dataStreamId: 2112323,
status: 'FAIL',
statusReason: 'MISSING_FIELD',
startExecutionTime: 1535015998231
},
{
id: 0,
dataStreamId: 2145323,
status: 'SUCCESS',
statusReason: null,
startExecutionTime: 1535015998231
},
{
id: 1,
dataStreamId: 2145323,
status: 'FAIL',
statusReason: 'UNKNOWN',
startExecutionTime: 1535015998231
},
{
id: 0,
dataStreamId: 2142313,
status: 'SUCCESS',
statusReason: null,
startExecutionTime: 1535015998231
},
{
id: 1,
dataStreamId: 2142313,
status: 'FAIL',
statusReason: 'UNKNOWN',
startExecutionTime: 1535015998231
},
{
id: 0,
dataStreamId: 2142323,
status: 'SUCCESS',
statusReason: null,
startExecutionTime: 1535015998231
},
{
id: 1,
dataStreamId: 2142323,
status: 'FAIL',
statusReason: 'UNKNOWN',
startExecutionTime: 1535015998231
}
]
};
const reportStats = {
data: [
{
id: 1,
reportId: 123,
startTime: 1552477851234,
status: 'SUCCESS',
statusReason: null,
source: 'DATA_STREAM'
},
{
id: 1,
reportId: 6,
startTime: 1552477851234,
status: 'FAILURE',
statusReason: 'COMPLETED_TO_DELIVER',
source: 'DATA_STREAM'
},
{
id: 1,
reportId: 7,
startTime: 1552477851234,
status: 'SUCCESS',
statusReason: null,
source: 'DATA_STREAM'
},
{
id: 1,
reportId: 25,
startTime: 1552477851234,
status: 'FAILURE',
statusReason: 'UNKNOWN',
source: 'AUTOMATIC'
},
{
id: 1,
reportId: 98,
startTime: 1552477851234,
status: 'FAILURE',
statusReason: 'QUERY_TIMEOUT',
source: 'AUTOMATIC'
},
{
id: 1,
reportId: 4,
startTime: 1552477851234,
status: 'FAILURE',
statusReason: 'FAILED_TO_DELIVER',
source: 'AUTOMATIC'
},
{
id: 1,
reportId: 3,
startTime: 1552477851234,
status: 'FAILURE',
statusReason: 'QUERY_TIMEOUT',
source: 'AUTOMATIC'
},
{
id: 1,
reportId: 34,
startTime: 1552477851234,
status: 'FAILURE',
statusReason: 'UNKNOWN',
source: 'AUTOMATIC'
},
{
id: 1,
reportId: 72,
startTime: 1552477851234,
status: 'FAILURE',
statusReason: 'FAILED_TO_DELIVER',
source: 'AUTOMATIC'
},
{
id: 0,
reportId: 72,
startTime: 1552477861234,
status: 'FAILURE',
statusReason: 'FAILED_TO_DELIVER',
source: 'AUTOMATIC'
},
{
id: 1,
reportId: 90,
startTime: 1552477851234,
status: 'FAILURE',
statusReason: 'QUERY_TIMEOUT',
source: 'WORKFLOW'
},
{
id: 0,
reportId: 90,
startTime: 1552477861234,
status: 'FAILURE',
statusReason: 'FAILED_TO_DELIVER',
source: 'WORKFLOW'
},
{
id: 1,
reportId: 63,
startTime: 1552477851234,
status: 'FAILURE',
statusReason: 'FAILED_TO_DELIVER',
source: 'WORKFLOW'
},
{
id: 0,
reportId: 63,
startTime: 1552477851234,
status: 'SUCCESS',
statusReason: null,
source: 'AUTOMATIC'
},
{
id: 0,
reportId: 27,
startTime: 1552477851234,
status: 'SUCCESS',
statusReason: null,
source: 'WORKFLOW'
},
{
id: 1,
reportId: 27,
startTime: 1552477851234,
status: 'SUCCESS',
statusReason: null,
source: 'DATA_STREAM'
}
]
};
const actionStats = {
data: [
{
id: 1,
actionId: 123,
createTime: 1552477853240,
source: 'GOAL',
status: 'SUCCESS',
statusReason: null
},
{
id: 0,
actionId: 123,
createTime: 1552477851240,
source: 'GOAL',
status: 'SUCCESS',
statusReason: null
},
{
id: 1,
actionId: 12,
createTime: 1552477853234,
source: 'GOAL',
status: 'SUCCESS',
statusReason: null
},
{
id: 0,
actionId: 12,
createTime: 1552477851234,
status: 'SUCCESS',
source: 'GOAL',
statusReason: null
},
{
id: 0,
actionId: 6,
createTime: 1552477853234,
source: 'GOAL',
status: 'SUCCESS',
statusReason: null
},
{
id: 1,
actionId: 6,
createTime: 1552477851240,
source: 'RULE',
status: 'FAIL',
statusReason: 'FAILED_TO_DELIVER'
},
{
id: 1,
actionId: 7,
createTime: 1552477851240,
source: 'RULE',
status: 'FAIL',
statusReason: 'FAILED_TO_DELIVER'
},
{
id: 1,
actionId: 25,
createTime: 1552477851240,
source: 'GOAL',
status: 'FAIL',
statusReason: 'UNKNOWN'
},
{
id: 1,
actionId: 98,
createTime: 1552477851234,
status: 'FAIL',
source: 'GOAL',
statusReason: 'FAILED_TO_DELIVER'
},
{
id: 1,
actionId: 4,
createTime: 1552477851240,
source: 'RULE',
status: 'FAIL',
statusReason: 'FAILED_TO_DELIVER'
},
{
id: 0,
actionId: 72,
createTime: 1552477851240,
source: 'RULE',
status: 'SUCCESS',
statusReason: null
},
{
id: 1,
actionId: 72,
createTime: 1552477861240,
source: 'GOAL',
status: 'FAIL',
statusReason: 'QUERY_TIMEOUT'
},
{
id: 1,
actionId: 3,
createTime: 1552477871240,
source: 'GOAL',
status: 'SUCCESS',
statusReason: null
},
{
id: 0,
actionId: 34,
createTime: 1552477851240,
source: 'RULE',
status: 'SUCCESS',
statusReason: null
},
{
id: 1,
actionId: 34,
createTime: 1552477871240,
source: 'GOAL',
status: 'SUCCESS',
statusReason: null
},
{
id: 0,
actionId: 90,
createTime: 1552477851240,
source: 'RULE',
status: 'SUCCESS',
statusReason: null
},
{
id: 1,
actionId: 90,
createTime: 1552477851340,
source: 'GOAL',
status: 'FAIL',
statusReason: 'QUERY_TIMEOUT'
},
{
id: 0,
actionId: 63,
createTime: 1552477851240,
source: 'RULE',
status: 'SUCCESS',
statusReason: null
},
{
id: 1,
actionId: 63,
createTime: 1552477851210,
source: 'RULE',
status: 'FAIL',
statusReason: 'FAILED_TO_DELIVER'
},
{
id: 0,
actionId: 27,
createTime: 1552477851240,
source: 'RULE',
status: 'SUCCESS',
statusReason: null
},
{
id: 1,
actionId: 27,
createTime: 1552477851220,
source: 'GOAL',
status: 'FAIL',
statusReason: 'FAILED_TO_DELIVER'
}
]
};
// const workflowStats = {
// data: [
// {
// id: 1,
// workflowId: 123,
// status: 'FAILED',
// reason: 'FAILED_TO_DELIVER',
// executionStartDate: 1552487820161
// },
// {
// id: 1,
// workflowId: 12,
// status: 'SUCCESS',
// reason: 'SUCCESS_TO_DELIVER',
// executionStartDate: 1552487520161
// },
// {
// id: 0,
// workflowId: 12,
// status: 'SUCCESS',
// statusReason: null,
// executionStartDate: 1552487520161
// },
// {
// id: 0,
// workflowId: 7,
// status: 'SUCCESS',
// reason: null,
// executionStartDate: 1552487620161
// },
// {
// id: 1,
// workflowId: 7,
// status: 'SUCCESS',
// reason: 'SUCCESS_TO_DELIVER',
// executionStartDate: 1552487520161
// },
// {
// id: 0,
// workflowId: 6,
// status: 'SUCCESS',
// reason: null,
// executionStartDate: 1552487120161
// },
// {
// id: 1,
// workflowId: 6,
// status: 'SUCCESS',
// reason: 'SUCCESS_TO_DELIVER',
// executionStartDate: 1552487520161
// },
// {
// id: 1,
// workflowId: 25,
// status: 'SUCCESS',
// reason: 'SUCCESS_TO_DELIVER',
// executionStartDate: 1552487520161
// },
// {
// id: 1,
// workflowId: 98,
// status: 'SUCCESS',
// reason: 'SUCCESS_TO_DELIVER',
// executionStartDate: 1552487520161
// },
// {
// id: 0,
// workflowId: 4,
// status: 'SUCCESS',
// reason: null,
// executionStartDate: 1552487220161
// },
// {
// id: 1,
// workflowId: 4,
// status: 'SUCCESS',
// reason: 'SUCCESS_TO_DELIVER',
// executionStartDate: 1552487520161
// },
// {
// id: 0,
// workflowId: 3,
// status: 'SUCCESS',
// reason: null,
// executionStartDate: 1552488520161
// },
// {
// id: 1,
// workflowId: 3,
// status: 'SUCCESS',
// reason: 'SUCCESS_TO_DELIVER',
// executionStartDate: 1552487520161
// },
// {
// id: 0,
// workflowId: 34,
// status: 'FAILED',
// reason: 'FAILED_TO_DELIVER',
// executionStartDate: 1552487521161
// },
// {
// id: 1,
// workflowId: 34,
// status: 'FAILED',
// reason: 'FAILED_TO_DELIVER',
// executionStartDate: 1552487520161
// },
// {
// id: 1,
// workflowId: 72,
// status: 'FAILED',
// reason: 'FAILED_TO_DELIVER',
// executionStartDate: 1552487521161
// },
// {
// id: 0,
// workflowId: 90,
// status: 'SUCCESS',
// reason: null,
// executionStartDate: 1552487320161
// },
// {
// id: 0,
// workflowId: 63,
// status: 'SUCCESS',
// reason: null,
// executionStartDate: 1552487521161
// },
// {
// id: 1,
// workflowId: 63,
// status: 'FAILED',
// reason: 'FAILED_TO_DELIVER',
// executionStartDate: 1552487520161
// },
// {
// id: 0,
// workflowId: 27,
// status: 'SUCCESS',
// reason: null,
// executionStartDate: 1552487620161
// }
// ]
// };
export const disableEntity = id => ({
// TODO: add proper response
data: {
id
}
});
export const reRunEntity = id => ({
// TODO: add proper response
meta: {
entityId: id
},
data: {
id
}
});
export default {
dataStreamEntities,
reportEntities,
actionEntities,
workflowEntities,
dataStreamStats,
reportStats,
actionStats,
workflowStats,
disableEntity,
reRunEntity
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment