Add description for Developers/webhook page (#6327)
- Add optional description field to webhook page in developer settings. Fix https://github.com/twentyhq/twenty/issues/6236 --------- Co-authored-by: Thomas Trompette <thomas.trompette@sfr.fr>
This commit is contained in:
committed by
GitHub
parent
ee4f1da956
commit
50f1cd352d
@ -22,6 +22,10 @@ export const computeWebhooks = (
|
||||
type: 'string',
|
||||
example: 'https://example.com/incomingWebhook',
|
||||
},
|
||||
description: {
|
||||
type: 'string',
|
||||
example: 'A sample description',
|
||||
},
|
||||
eventType: {
|
||||
type: 'string',
|
||||
enum: [
|
||||
|
||||
@ -325,6 +325,7 @@ export const VIEW_STANDARD_FIELD_IDS = {
|
||||
export const WEBHOOK_STANDARD_FIELD_IDS = {
|
||||
targetUrl: '20202020-1229-45a8-8cf4-85c9172aae12',
|
||||
operation: '20202020-15b7-458e-bf30-74770a54410c',
|
||||
description: '20202020-15b7-458e-bf30-74770a54410d',
|
||||
};
|
||||
|
||||
export const WORKFLOW_EVENT_LISTENER_STANDARD_FIELD_IDS = {
|
||||
|
||||
@ -3,6 +3,7 @@ import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity
|
||||
import { WorkspaceEntity } from 'src/engine/twenty-orm/decorators/workspace-entity.decorator';
|
||||
import { WorkspaceField } from 'src/engine/twenty-orm/decorators/workspace-field.decorator';
|
||||
import { WorkspaceIsNotAuditLogged } from 'src/engine/twenty-orm/decorators/workspace-is-not-audit-logged.decorator';
|
||||
import { WorkspaceIsNullable } from 'src/engine/twenty-orm/decorators/workspace-is-nullable.decorator';
|
||||
import { WorkspaceIsSystem } from 'src/engine/twenty-orm/decorators/workspace-is-system.decorator';
|
||||
import { WEBHOOK_STANDARD_FIELD_IDS } from 'src/engine/workspace-manager/workspace-sync-metadata/constants/standard-field-ids';
|
||||
import { STANDARD_OBJECT_IDS } from 'src/engine/workspace-manager/workspace-sync-metadata/constants/standard-object-ids';
|
||||
@ -36,4 +37,14 @@ export class WebhookWorkspaceEntity extends BaseWorkspaceEntity {
|
||||
icon: 'IconCheckbox',
|
||||
})
|
||||
operation: string;
|
||||
|
||||
@WorkspaceField({
|
||||
standardId: WEBHOOK_STANDARD_FIELD_IDS.description,
|
||||
type: FieldMetadataType.TEXT,
|
||||
label: 'Description',
|
||||
description: undefined,
|
||||
icon: 'IconInfo',
|
||||
})
|
||||
@WorkspaceIsNullable()
|
||||
description: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user