* Wip * WIP * Removed concole log * Add relations to workspace init (#2511) * Add relations to workspace init * remove logs * update prefill * add missing isSystem * comment relation fields * Migrate v2 core models to graphql schema (#2509) * migrate v2 core models to graphql schema * Migrate to new workspace member schema * Continue work * migrated-main * Finished accountOwner nested field integration on companies * Introduce bug * Fix --------- Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com> Co-authored-by: Weiko <corentin@twenty.com>
55 lines
1.1 KiB
TypeScript
55 lines
1.1 KiB
TypeScript
const apiKeyMetadata = {
|
|
nameSingular: 'apiKeyV2',
|
|
namePlural: 'apiKeysV2',
|
|
labelSingular: 'Api Key',
|
|
labelPlural: 'Api Keys',
|
|
targetTableName: 'apiKey',
|
|
description: 'An api key',
|
|
icon: 'IconRobot',
|
|
isActive: true,
|
|
isSystem: true,
|
|
fields: [
|
|
{
|
|
isCustom: false,
|
|
isActive: true,
|
|
type: 'TEXT',
|
|
name: 'name',
|
|
label: 'Name',
|
|
targetColumnMap: {
|
|
value: 'name',
|
|
},
|
|
description: 'ApiKey name',
|
|
icon: 'IconLink',
|
|
isNullable: false,
|
|
},
|
|
{
|
|
isCustom: false,
|
|
isActive: true,
|
|
type: 'DATE',
|
|
name: 'expiresAt',
|
|
label: 'Expiration date',
|
|
targetColumnMap: {
|
|
value: 'expiresAt',
|
|
},
|
|
description: 'ApiKey expiration date',
|
|
icon: 'IconCalendar',
|
|
isNullable: false,
|
|
},
|
|
{
|
|
isCustom: false,
|
|
isActive: true,
|
|
type: 'DATE',
|
|
name: 'revokedAt',
|
|
label: 'Revocation date',
|
|
targetColumnMap: {
|
|
value: 'revokedAt',
|
|
},
|
|
description: 'ApiKey revocation date',
|
|
icon: 'IconCalendar',
|
|
isNullable: true,
|
|
},
|
|
],
|
|
};
|
|
|
|
export default apiKeyMetadata;
|