feat: write REST API endpoint to update step

This commit is contained in:
Ali BARIN
2024-09-18 14:06:30 +00:00
committed by Faruk AYDIN
parent b29c6105a1
commit 5f7d1f9219
6 changed files with 300 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
const updateStepMock = (step) => {
const data = {
id: step.id,
type: step.type || 'action',
key: step.key || null,
appKey: step.appKey || null,
iconUrl: step.iconUrl || null,
webhookUrl: step.webhookUrl || null,
status: step.status || 'incomplete',
position: step.position,
parameters: step.parameters || {},
};
return {
data,
meta: {
type: 'Step',
count: 1,
isArray: false,
currentPage: null,
totalPages: null,
},
};
};
export default updateStepMock;