feat: Implement get step connection API endpoint

This commit is contained in:
Faruk AYDIN
2024-03-13 15:24:50 +01:00
parent d6923a2ff0
commit 9a0434be32
7 changed files with 186 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
const getConnectionMock = async (connection) => {
const data = {
id: connection.id,
key: connection.key,
verified: connection.verified,
reconnectable: connection.reconnectable,
appAuthClientId: connection.appAuthClientId,
formattedData: {
screenName: connection.formattedData.screenName,
},
createdAt: connection.createdAt.getTime(),
updatedAt: connection.updatedAt.getTime(),
};
return {
data: data,
meta: {
count: 1,
currentPage: null,
isArray: false,
totalPages: null,
type: 'Connection',
},
};
};
export default getConnectionMock;