feat: Implement create dynamic fields API endpoint

This commit is contained in:
Faruk AYDIN
2024-03-22 02:55:23 +01:00
parent de77488f7e
commit 7664b58553
6 changed files with 255 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
const createDynamicFieldsMock = async () => {
const data = [
{
label: 'Bot name',
key: 'botName',
type: 'string',
required: true,
value: 'Automatisch',
description:
'Specify the bot name which appears as a bold username above the message inside Slack. Defaults to Automatisch.',
variables: true,
},
{
label: 'Bot icon',
key: 'botIcon',
type: 'string',
required: false,
description:
'Either an image url or an emoji available to your team (surrounded by :). For example, https://example.com/icon_256.png or :robot_face:',
variables: true,
},
];
return {
data: data,
meta: {
count: data.length,
currentPage: null,
isArray: true,
totalPages: null,
type: 'Object',
},
};
};
export default createDynamicFieldsMock;