Files
twenty/packages/twenty-zapier/src/authentication.ts
Lakshay saini e0405edb38 feat: added webhook list section and updated api key section (#3567)
* 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>
2024-01-25 17:39:17 +01:00

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: {},
};