* feat: added webhook list section and updated api key ui * Fix style * Fix webhook style * Update setting path * Add soon pill on not developped features * Code review returns --------- Co-authored-by: Lakshay saini <lakshay.saini@finmo.net> Co-authored-by: martmull <martmull@hotmail.fr>
30 lines
692 B
TypeScript
30 lines
692 B
TypeScript
import { Bundle, ZObject } from 'zapier-platform-core';
|
|
|
|
import requestDb from './utils/requestDb';
|
|
|
|
const testAuthentication = async (z: ZObject, bundle: Bundle) => {
|
|
return await requestDb(
|
|
z,
|
|
bundle,
|
|
'query currentWorkspace {currentWorkspace {id displayName}}',
|
|
);
|
|
};
|
|
|
|
export default {
|
|
type: 'custom',
|
|
test: testAuthentication,
|
|
fields: [
|
|
{
|
|
computed: false,
|
|
key: 'apiKey',
|
|
required: true,
|
|
label: 'Api Key',
|
|
type: 'string',
|
|
helpText:
|
|
'Create an API key in [your twenty workspace](https://app.twenty.com/settings/developers)',
|
|
},
|
|
],
|
|
connectionLabel: '{{data.currentWorkspace.displayName}}',
|
|
customConfig: {},
|
|
};
|